Implemented interface member:
method
Encrypt
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor.Encrypt(System.ArraySegment<System.Byte>, System.ArraySegment<System.Byte>)
7 references to Encrypt
Microsoft.AspNetCore.DataProtection.Tests (7)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (3)
47
byte[] ciphertext = control.
Encrypt
(new ArraySegment<byte>(plaintext), new ArraySegment<byte>(aad));
73
byte[] ciphertext = control.
Encrypt
(new ArraySegment<byte>(plaintext), new ArraySegment<byte>(aad));
99
byte[] ciphertext = control.
Encrypt
(new ArraySegment<byte>(plaintext), new ArraySegment<byte>(aad));
Cng\CbcAuthenticatedEncryptorTests.cs (2)
28
byte[] ciphertext = encryptor.
Encrypt
(plaintext, aad);
47
byte[] validCiphertext = encryptor.
Encrypt
(plaintext, aad);
Cng\GcmAuthenticatedEncryptorTests.cs (2)
25
byte[] ciphertext = encryptor.
Encrypt
(plaintext, aad);
41
byte[] validCiphertext = encryptor.
Encrypt
(plaintext, aad);