5 implementations of Encrypt
KeyManagementSimulator (1)
Program.cs (1)
284public 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)
252public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
Cng\CngGcmAuthenticatedEncryptor.cs (1)
218public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
Managed\AesGcmAuthenticatedEncryptor.cs (1)
216public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination)
Managed\ManagedAuthenticatedEncryptor.cs (1)
169public 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)
64defaultEncryptor.Encrypt(plaintext, aad, ref destination);
Microsoft.AspNetCore.DataProtection.Tests (1)
Internal\RoundtripEncryptionHelpers.cs (1)
33spanAuthenticatedEncryptor.Encrypt(plaintext, aad, ref buffer);