2 instantiations of RSAEncryptionPadding
mscorlib (2)
system\security\cryptography\RSAEncryptionPadding.cs (2)
14
private static readonly RSAEncryptionPadding s_pkcs1 = new
RSAEncryptionPadding
(RSAEncryptionPaddingMode.Pkcs1, default(HashAlgorithmName));
65
return new
RSAEncryptionPadding
(RSAEncryptionPaddingMode.Oaep, hashAlgorithm);
40 references to RSAEncryptionPadding
mscorlib (34)
system\security\cryptography\rsa.cs (2)
85
public virtual byte[] Encrypt(byte[] data,
RSAEncryptionPadding
padding) {
89
public virtual byte[] Decrypt(byte[] data,
RSAEncryptionPadding
padding) {
system\security\cryptography\rsacryptoserviceprovider.cs (6)
571
public override byte[] Encrypt(byte[] data,
RSAEncryptionPadding
padding) {
579
if (padding ==
RSAEncryptionPadding
.Pkcs1) {
581
} else if (padding ==
RSAEncryptionPadding
.OaepSHA1) {
588
public override byte[] Decrypt(byte[] data,
RSAEncryptionPadding
padding) {
596
if (padding ==
RSAEncryptionPadding
.Pkcs1) {
598
} else if (padding ==
RSAEncryptionPadding
.OaepSHA1) {
system\security\cryptography\RSAEncryptionPadding.cs (18)
12
public sealed class RSAEncryptionPadding : IEquatable<
RSAEncryptionPadding
>
14
private static readonly
RSAEncryptionPadding
s_pkcs1 = new RSAEncryptionPadding(RSAEncryptionPaddingMode.Pkcs1, default(HashAlgorithmName));
15
private static readonly
RSAEncryptionPadding
s_oaepSHA1 = CreateOaep(HashAlgorithmName.SHA1);
16
private static readonly
RSAEncryptionPadding
s_oaepSHA256 = CreateOaep(HashAlgorithmName.SHA256);
17
private static readonly
RSAEncryptionPadding
s_oaepSHA384 = CreateOaep(HashAlgorithmName.SHA384);
18
private static readonly
RSAEncryptionPadding
s_oaepSHA512 = CreateOaep(HashAlgorithmName.SHA512);
23
public static
RSAEncryptionPadding
Pkcs1 { get { return s_pkcs1; } }
28
public static
RSAEncryptionPadding
OaepSHA1 { get { return s_oaepSHA1; } }
33
public static
RSAEncryptionPadding
OaepSHA256 { get { return s_oaepSHA256; } }
38
public static
RSAEncryptionPadding
OaepSHA384 { get { return s_oaepSHA384; } }
43
public static
RSAEncryptionPadding
OaepSHA512 { get { return s_oaepSHA512; } }
58
public static
RSAEncryptionPadding
CreateOaep(HashAlgorithmName hashAlgorithm)
100
return Equals(obj as
RSAEncryptionPadding
);
103
public bool Equals(
RSAEncryptionPadding
other)
110
public static bool operator ==(
RSAEncryptionPadding
left,
RSAEncryptionPadding
right)
120
public static bool operator !=(
RSAEncryptionPadding
left,
RSAEncryptionPadding
right)
system\security\cryptography\rsaoaepkeyexchangedeformatter.cs (2)
47
return _rsaKey.Decrypt(rgbData,
RSAEncryptionPadding
.OaepSHA1);
64
_rsaOverridesDecrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Decrypt", new Type[] { typeof(byte[]), typeof(
RSAEncryptionPadding
) });
system\security\cryptography\rsaoaepkeyexchangeformatter.cs (2)
77
return _rsaKey.Encrypt(rgbData,
RSAEncryptionPadding
.OaepSHA1);
90
_rsaOverridesEncrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Encrypt", new Type[] { typeof(byte[]), typeof(
RSAEncryptionPadding
) });
system\security\cryptography\rsapkcs1keyexchangedeformatter.cs (2)
52
rgbOut = _rsaKey.Decrypt(rgbIn,
RSAEncryptionPadding
.Pkcs1);
93
_rsaOverridesDecrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Decrypt", new Type[] { typeof(byte[]), typeof(
RSAEncryptionPadding
) });
system\security\cryptography\rsapkcs1keyexchangeformatter.cs (2)
63
rgbKeyEx = _rsaKey.Encrypt(rgbData,
RSAEncryptionPadding
.Pkcs1);
105
_rsaOverridesEncrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Encrypt", new Type[] { typeof(byte[]), typeof(
RSAEncryptionPadding
) });
System.Core (4)
System\Security\Cryptography\RsaCng.cs (4)
400
public override byte[] Decrypt(byte[] data,
RSAEncryptionPadding
padding)
414
if (padding ==
RSAEncryptionPadding
.Pkcs1)
430
public override byte[] Encrypt(byte[] data,
RSAEncryptionPadding
padding)
441
if (padding ==
RSAEncryptionPadding
.Pkcs1)
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (2)
321
return rsaCngProvider.Encrypt(columnEncryptionKey,
RSAEncryptionPadding
.OaepSHA1);
335
return rsaCngProvider.Decrypt(encryptedColumnEncryptionKey,
RSAEncryptionPadding
.OaepSHA1);