Implemented interface member:
method
Decrypt
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor.Decrypt(System.ArraySegment<System.Byte>, System.ArraySegment<System.Byte>)
13 references to Decrypt
Microsoft.AspNetCore.DataProtection.Tests (13)
Cng\CbcAuthenticatedEncryptorTests.cs (5)
29
byte[] decipheredtext = encryptor.
Decrypt
(new ArraySegment<byte>(ciphertext), aad);
54
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_tooShort), aad);
63
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_manipulated), aad);
71
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_tooLong), aad);
78
encryptor.
Decrypt
(new ArraySegment<byte>(validCiphertext), new ArraySegment<byte>(Encoding.UTF8.GetBytes("different aad")));
Cng\CngAuthenticatedEncryptorBaseTests.cs (3)
29
var retVal = encryptorMock.Object.
Decrypt
(ciphertext, aad);
54
var retVal = encryptorMock.Object.
Decrypt
(ciphertext, aad);
79
var retVal = encryptorMock.Object.
Decrypt
(ciphertext, aad);
Cng\GcmAuthenticatedEncryptorTests.cs (5)
26
byte[] decipheredtext = encryptor.
Decrypt
(new ArraySegment<byte>(ciphertext), aad);
48
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_tooShort), aad);
57
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_manipulated), aad);
65
encryptor.
Decrypt
(new ArraySegment<byte>(invalidCiphertext_tooLong), aad);
72
encryptor.
Decrypt
(new ArraySegment<byte>(validCiphertext), new ArraySegment<byte>(Encoding.UTF8.GetBytes("different aad")));