3 overrides of Encrypt
System.Security.Cryptography (3)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
205public override byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
92public override byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
System\Security\Cryptography\RSAWrapper.cs (1)
52public override byte[] Encrypt(byte[] data, RSAEncryptionPadding padding) => _wrapped.Encrypt(data, padding);
12 references to Encrypt
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))); 351Assert.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)
119byte[] result = Encrypt(data.ToArray(), padding); 155/// This implementation has not implemented one of <see cref="Encrypt(byte[], RSAEncryptionPadding)" /> or 158/// <seealso cref="Encrypt(byte[], RSAEncryptionPadding)" /> 205/// This implementation has not implemented one of <see cref="Encrypt(byte[], RSAEncryptionPadding)" /> or 208/// <seealso cref="Encrypt(byte[], RSAEncryptionPadding)" />
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
89return _impl.Encrypt(rgb, fOAEP ? RSAEncryptionPadding.OaepSHA1 : RSAEncryptionPadding.Pkcs1);
System\Security\Cryptography\RSAOAEPKeyExchangeFormatter.cs (1)
72return _rsaKey.Encrypt(rgbData, RSAEncryptionPadding.OaepSHA1);
System\Security\Cryptography\RSAPKCS1KeyExchangeFormatter.cs (1)
53return _rsaKey.Encrypt(rgbData, RSAEncryptionPadding.Pkcs1);
System\Security\Cryptography\RSAWrapper.cs (1)
52public override byte[] Encrypt(byte[] data, RSAEncryptionPadding padding) => _wrapped.Encrypt(data, padding);
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
173ktri.EncryptedKey = rsa.Encrypt(cek, padding);