3 overrides of Decrypt
System.Security.Cryptography (3)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
82
public override byte[]
Decrypt
(byte[] data, RSAEncryptionPadding padding)
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
53
public override byte[]
Decrypt
(byte[] data, RSAEncryptionPadding padding)
System\Security\Cryptography\RSAWrapper.cs (1)
54
public override byte[]
Decrypt
(byte[] data, RSAEncryptionPadding padding) => _wrapped.Decrypt(data, padding);
11 references to Decrypt
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (2)
CertificateManagerTests.cs (2)
189
Assert.Equal("plaintext", Encoding.ASCII.GetString(exportedCertificate.GetRSAPrivateKey().
Decrypt
(exportedCertificate.GetRSAPrivateKey().Encrypt(Encoding.ASCII.GetBytes(message), RSAEncryptionPadding.OaepSHA256), RSAEncryptionPadding.OaepSHA256)));
351
Assert.Equal("plaintext", Encoding.ASCII.GetString(exportedCertificate.GetRSAPrivateKey().
Decrypt
(exportedCertificate.GetRSAPrivateKey().Encrypt(Encoding.ASCII.GetBytes(message), RSAEncryptionPadding.OaepSHA256), RSAEncryptionPadding.OaepSHA256)));
System.Security.Cryptography (9)
System\Security\Cryptography\RSA.cs (5)
104
byte[] result =
Decrypt
(data.ToArray(), padding);
242
/// This implementation has not implemented one of <see cref="
Decrypt
(byte[], RSAEncryptionPadding)" /> or
245
/// <seealso cref="
Decrypt
(byte[], RSAEncryptionPadding)" />
288
/// This implementation has not implemented one of <see cref="
Decrypt
(byte[], RSAEncryptionPadding)" /> or
291
/// <seealso cref="
Decrypt
(byte[], RSAEncryptionPadding)" />
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
50
return _impl.
Decrypt
(rgb, fOAEP ? RSAEncryptionPadding.OaepSHA1 : RSAEncryptionPadding.Pkcs1);
System\Security\Cryptography\RSAOAEPKeyExchangeDeformatter.cs (1)
29
return _rsaKey.
Decrypt
(rgbData, RSAEncryptionPadding.OaepSHA1);
System\Security\Cryptography\RSAPKCS1KeyExchangeDeformatter.cs (1)
39
return _rsaKey.
Decrypt
(rgbIn, RSAEncryptionPadding.Pkcs1);
System\Security\Cryptography\RSAWrapper.cs (1)
54
public override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding) => _wrapped.
Decrypt
(data, padding);