Implemented interface member:
method
Decrypt
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor.Decrypt(System.ArraySegment<System.Byte>, System.ArraySegment<System.Byte>)
5 references to Decrypt
Microsoft.AspNetCore.DataProtection.Tests (5)
Cng\CbcAuthenticatedEncryptorTests.cs (5)
40
byte[] decipheredtext = encryptor.
Decrypt
(new ArraySegment<byte>(ciphertext), aad);
65
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_tooShort), aad);
74
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_manipulated), aad);
82
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_tooLong), aad);
89
encryptor.
Decrypt
(new ArraySegment<byte>(validCiphertext), new ArraySegment<byte>(Encoding.UTF8.GetBytes("different aad")));