3 overrides of Decrypt
System.Security.Cryptography (3)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
84public override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
53public override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
System\Security\Cryptography\RSAWrapper.cs (1)
54public override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding) => _wrapped.Decrypt(data, padding);
11 references to Decrypt
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (2)
CertificateManagerTests.cs (2)
189Assert.Equal("plaintext", Encoding.ASCII.GetString(exportedCertificate.GetRSAPrivateKey().Decrypt(exportedCertificate.GetRSAPrivateKey().Encrypt(Encoding.ASCII.GetBytes(message), RSAEncryptionPadding.OaepSHA256), RSAEncryptionPadding.OaepSHA256))); 310Assert.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)
104byte[] 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)
50return _impl.Decrypt(rgb, fOAEP ? RSAEncryptionPadding.OaepSHA1 : RSAEncryptionPadding.Pkcs1);
System\Security\Cryptography\RSAOAEPKeyExchangeDeformatter.cs (1)
29return _rsaKey.Decrypt(rgbData, RSAEncryptionPadding.OaepSHA1);
System\Security\Cryptography\RSAPKCS1KeyExchangeDeformatter.cs (1)
39return _rsaKey.Decrypt(rgbIn, RSAEncryptionPadding.Pkcs1);
System\Security\Cryptography\RSAWrapper.cs (1)
54public override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding) => _wrapped.Decrypt(data, padding);