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)
47byte[] ciphertext = control.Encrypt(new ArraySegment<byte>(plaintext), new ArraySegment<byte>(aad)); 73byte[] ciphertext = control.Encrypt(new ArraySegment<byte>(plaintext), new ArraySegment<byte>(aad)); 99byte[] ciphertext = control.Encrypt(new ArraySegment<byte>(plaintext), new ArraySegment<byte>(aad));
Cng\CbcAuthenticatedEncryptorTests.cs (2)
28byte[] ciphertext = encryptor.Encrypt(plaintext, aad); 47byte[] validCiphertext = encryptor.Encrypt(plaintext, aad);
Cng\GcmAuthenticatedEncryptorTests.cs (2)
25byte[] ciphertext = encryptor.Encrypt(plaintext, aad); 41byte[] validCiphertext = encryptor.Encrypt(plaintext, aad);