5 implementations of Decrypt
KeyManagementSimulator (1)
Program.cs (1)
291
public byte[]
Decrypt
(ArraySegment<byte> ciphertext, ArraySegment<byte> _additionalAuthenticatedData) => ciphertext.ToArray();
Microsoft.AspNetCore.DataProtection (4)
Cng\CbcAuthenticatedEncryptor.cs (1)
175
public byte[]
Decrypt
(ArraySegment<byte> ciphertext, ArraySegment<byte> additionalAuthenticatedData)
Cng\CngGcmAuthenticatedEncryptor.cs (1)
142
public byte[]
Decrypt
(ArraySegment<byte> ciphertext, ArraySegment<byte> additionalAuthenticatedData)
Managed\AesGcmAuthenticatedEncryptor.cs (1)
145
public byte[]
Decrypt
(ArraySegment<byte> ciphertext, ArraySegment<byte> additionalAuthenticatedData)
Managed\ManagedAuthenticatedEncryptor.cs (1)
466
public byte[]
Decrypt
(ArraySegment<byte> protectedPayload, ArraySegment<byte> additionalAuthenticatedData)
18 references to Decrypt
Microsoft.AspNetCore.DataProtection (4)
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.
AuthenticatedEncryption\ISpanAuthenticatedEncryptor.cs (1)
51
/// This method provides an optimized, streaming alternative to <see cref="IAuthenticatedEncryptor.
Decrypt
(System.ArraySegment{byte}, System.ArraySegment{byte})"/>.
KeyManagement\KeyRingBasedDataProtector.cs (1)
292
return requestedEncryptor.
Decrypt
(ciphertext, additionalAuthenticatedData)
Microsoft.AspNetCore.DataProtection.Tests (14)
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 = encryptor.
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));
Internal\RoundtripEncryptionHelpers.cs (2)
17
/// as <see cref="IAuthenticatedEncryptor.Encrypt"/> and <see cref="IAuthenticatedEncryptor.
Decrypt
"/> APIs.
28
byte[] decipheredtext = encryptor.
Decrypt
(new ArraySegment<byte>(ciphertext), aad);
KeyManagement\KeyRingBasedDataProtectorTests.cs (3)
430
.Setup(o => o.
Decrypt
(It.IsAny<ArraySegment<byte>>(), It.IsAny<ArraySegment<byte>>()))
477
.Setup(o => o.
Decrypt
(It.IsAny<ArraySegment<byte>>(), It.IsAny<ArraySegment<byte>>()))
526
.Setup(o => o.
Decrypt
(It.IsAny<ArraySegment<byte>>(), It.IsAny<ArraySegment<byte>>()))