2 instantiations of RSASignaturePadding
mscorlib (2)
system\security\cryptography\RSASignaturePadding.cs (2)
18
private static readonly RSASignaturePadding s_pkcs1 = new
RSASignaturePadding
(RSASignaturePaddingMode.Pkcs1);
19
private static readonly RSASignaturePadding s_pss = new
RSASignaturePadding
(RSASignaturePaddingMode.Pss);
35 references to RSASignaturePadding
mscorlib (27)
system\security\cryptography\rsa.cs (8)
93
public virtual byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
97
public virtual bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
109
public byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
116
public virtual byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
137
public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
152
public bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
159
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
183
public bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
system\security\cryptography\rsacryptoserviceprovider.cs (4)
605
public override byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
615
if (padding !=
RSASignaturePadding
.Pkcs1) {
622
public override bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding) {
635
if (padding !=
RSASignaturePadding
.Pkcs1) {
system\security\cryptography\rsapkcs1signaturedeformatter.cs (2)
82
return _rsaKey.VerifyHash(rgbHash, rgbSignature, hashAlgorithmName,
RSASignaturePadding
.Pkcs1);
97
_rsaOverridesVerifyHash = Utils.DoesRsaKeyOverride(_rsaKey, "VerifyHash", new Type[] { typeof(byte[]), typeof(byte[]), typeof(HashAlgorithmName), typeof(
RSASignaturePadding
) });
system\security\cryptography\rsapkcs1signatureformatter.cs (2)
73
return _rsaKey.SignHash(rgbHash, hashAlgorithmName,
RSASignaturePadding
.Pkcs1);
87
_rsaOverridesSignHash = Utils.DoesRsaKeyOverride(_rsaKey, "SignHash", new Type[] { typeof(byte[]), typeof(HashAlgorithmName), typeof(
RSASignaturePadding
) });
system\security\cryptography\RSASignaturePadding.cs (11)
16
public sealed class RSASignaturePadding : IEquatable<
RSASignaturePadding
>
18
private static readonly
RSASignaturePadding
s_pkcs1 = new RSASignaturePadding(RSASignaturePaddingMode.Pkcs1);
19
private static readonly
RSASignaturePadding
s_pss = new RSASignaturePadding(RSASignaturePaddingMode.Pss);
31
public static
RSASignaturePadding
Pkcs1
39
public static
RSASignaturePadding
Pss
59
return Equals(obj as
RSASignaturePadding
);
62
public bool Equals(
RSASignaturePadding
other)
67
public static bool operator ==(
RSASignaturePadding
left,
RSASignaturePadding
right)
77
public static bool operator !=(
RSASignaturePadding
left,
RSASignaturePadding
right)
System.Core (6)
System\Security\Cryptography\RsaCng.cs (6)
463
public override byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding)
482
if (padding ==
RSASignaturePadding
.Pkcs1)
486
else if (padding ==
RSASignaturePadding
.Pss)
499
public override bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm,
RSASignaturePadding
padding)
518
if (padding ==
RSASignaturePadding
.Pkcs1)
522
else if (padding ==
RSASignaturePadding
.Pss)
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (2)
349
return rsaCngProvider.SignData(dataToSign, HashAlgorithmName.SHA256,
RSASignaturePadding
.Pkcs1);
365
return rsaCngProvider.VerifyData(dataToVerify, signature, HashAlgorithmName.SHA256,
RSASignaturePadding
.Pkcs1);