4 implementations of Decrypt
KeyManagementSimulator (1)
Program.cs (1)
282
byte[] IAuthenticatedEncryptor.
Decrypt
(ArraySegment<byte> ciphertext, ArraySegment<byte> _additionalAuthenticatedData) => ciphertext.ToArray();
Microsoft.AspNetCore.DataProtection (3)
Cng\Internal\CngAuthenticatedEncryptorBase.cs (1)
14
public byte[]
Decrypt
(ArraySegment<byte> ciphertext, ArraySegment<byte> additionalAuthenticatedData)
Managed\AesGcmAuthenticatedEncryptor.cs (1)
69
public byte[]
Decrypt
(ArraySegment<byte> ciphertext, ArraySegment<byte> additionalAuthenticatedData)
Managed\ManagedAuthenticatedEncryptor.cs (1)
159
public byte[]
Decrypt
(ArraySegment<byte> protectedPayload, ArraySegment<byte> additionalAuthenticatedData)
15 references to Decrypt
Microsoft.AspNetCore.DataProtection (3)
AuthenticatedEncryption\AuthenticatedEncryptorExtensions.cs (1)
48
var roundTrippedData = encryptor.
Decrypt
(new ArraySegment<byte>(protectedData), new ArraySegment<byte>(aad));
AuthenticatedEncryption\IAuthenticatedEncryptorFactory.cs (1)
21
/// method should be consumable by the other's <see cref="IAuthenticatedEncryptor.
Decrypt
(ArraySegment{byte}, ArraySegment{byte})"/> method.
KeyManagement\KeyRingBasedDataProtector.cs (1)
282
return requestedEncryptor.
Decrypt
(ciphertext, additionalAuthenticatedData)
Microsoft.AspNetCore.DataProtection.Tests (12)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
40
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (4)
48
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
74
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
100
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
138
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
47
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
44
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (2)
48
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
82
byte[] roundTripPlaintext = test.
Decrypt
(new ArraySegment<byte>(ciphertext), new ArraySegment<byte>(aad));
KeyManagement\KeyRingBasedDataProtectorTests.cs (3)
423
.Setup(o => o.
Decrypt
(It.IsAny<ArraySegment<byte>>(), It.IsAny<ArraySegment<byte>>()))
470
.Setup(o => o.
Decrypt
(It.IsAny<ArraySegment<byte>>(), It.IsAny<ArraySegment<byte>>()))
519
.Setup(o => o.
Decrypt
(It.IsAny<ArraySegment<byte>>(), It.IsAny<ArraySegment<byte>>()))