4 implementations of Encrypt
Microsoft.AspNetCore.DataProtection (4)
Cng\CbcAuthenticatedEncryptor.cs (1)
252
public void
Encrypt
<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
Cng\CngGcmAuthenticatedEncryptor.cs (1)
218
public void
Encrypt
<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
Managed\AesGcmAuthenticatedEncryptor.cs (1)
216
public void
Encrypt
<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination)
Managed\ManagedAuthenticatedEncryptor.cs (1)
169
public void
Encrypt
<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination)
2 references to Encrypt
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ISpanAuthenticatedEncryptor.cs (1)
47
/// The same AAD must have been specified in the corresponding call to <see cref="
Encrypt
{TWriter}"/>.
KeyManagement\KeyRingBasedSpanDataProtector.cs (1)
78
spanEncryptor.
Encrypt
(plaintext, aad, ref destination);