5 implementations of Encrypt
KeyManagementSimulator (1)
Program.cs (1)
284
public void
Encrypt
<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : System.Buffers.IBufferWriter<byte>, allows ref struct
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)
3 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)
64
defaultEncryptor.
Encrypt
(plaintext, aad, ref destination);
Microsoft.AspNetCore.DataProtection.Tests (1)
Internal\RoundtripEncryptionHelpers.cs (1)
33
spanAuthenticatedEncryptor.
Encrypt
(plaintext, aad, ref buffer);