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)
29byte[] decipheredtext = encryptor.Decrypt(new ArraySegment<byte>(ciphertext), aad); 54encryptor.Decrypt(new ArraySegment<byte>(invalidCiphertext_tooShort), aad); 63encryptor.Decrypt(new ArraySegment<byte>(invalidCiphertext_manipulated), aad); 71encryptor.Decrypt(new ArraySegment<byte>(invalidCiphertext_tooLong), aad); 78encryptor.Decrypt(new ArraySegment<byte>(validCiphertext), new ArraySegment<byte>(Encoding.UTF8.GetBytes("different aad")));
Cng\CngAuthenticatedEncryptorBaseTests.cs (3)
29var retVal = encryptorMock.Object.Decrypt(ciphertext, aad); 54var retVal = encryptorMock.Object.Decrypt(ciphertext, aad); 79var retVal = encryptorMock.Object.Decrypt(ciphertext, aad);
Cng\GcmAuthenticatedEncryptorTests.cs (5)
26byte[] decipheredtext = encryptor.Decrypt(new ArraySegment<byte>(ciphertext), aad); 48encryptor.Decrypt(new ArraySegment<byte>(invalidCiphertext_tooShort), aad); 57encryptor.Decrypt(new ArraySegment<byte>(invalidCiphertext_manipulated), aad); 65encryptor.Decrypt(new ArraySegment<byte>(invalidCiphertext_tooLong), aad); 72encryptor.Decrypt(new ArraySegment<byte>(validCiphertext), new ArraySegment<byte>(Encoding.UTF8.GetBytes("different aad")));