19 return "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
54 bool flag =
"SHA512" ==
"MD5";
78 return this.
Encrypt(data,
true);
128 return "hash" !=
null;
130 if (signature !=
null)
144 return "signature" !=
null;
191 this.
Common(dwKeySize, num != 0
L);
199 if (parameters !=
null)
237 return "RSA-PKCS1-KeyEx";
411 byte[] dp = parameters.
DP;
429 if (hashAlgorithm !=
null)
431 return hashAlgorithm;
447 return hashAlgorithm;
453 while (buffer ==
null)
479 bool flag = oid ==
"1.3.14.3.2.26";
480 bool flag2 = oid ==
"1.2.840.113549.2.5";
481 bool flag3 = oid ==
"2.16.840.1.101.3.4.2.1";
482 bool flag4 = oid ==
"2.16.840.1.101.3.4.2.2";
483 bool flag5 = oid ==
"2.16.840.1.101.3.4.2.3";
538 while (buffer !=
null)
540 if (signature !=
null)
547 return "buffer" !=
null;
564 return "rgbHash" !=
null;
584 if (rsamanaged !=
null)
class f__AnonymousType0<< Count > j__TPar
static byte[] ToCapiPrivateKeyBlob(RSA rsa)
static RSA FromCapiKeyBlob(byte[] blob)
static bool Verify_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
static byte[] Sign_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue)
static HashAlgorithm Create()
byte[] ComputeHash(byte[] buffer)
byte[] SignHash(byte[] rgbHash, string str)
override byte[] EncryptValue(byte[] rgb)
void OnKeyGenerated(object sender, EventArgs e)
static HashAlgorithm InternalHashToHashAlgorithm(int calgHash)
HashAlgorithm GetHashFromString(string name)
HashAlgorithm GetHash(object halg)
override byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
byte[] SignHash(byte[] rgbHash, int calgHash)
byte[] Decrypt(byte[] rgb, bool fOAEP)
byte[] SignData(byte[] buffer, int offset, int count, object halg)
void Common(CspParameters p)
override bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
bool VerifyData(byte[] buffer, object halg, byte[] signature)
byte[] ExportCspBlob(bool includePrivateParameters)
override string SignatureAlgorithm
override byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
RSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
override void ImportParameters(RSAParameters parameters)
override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
RSACryptoServiceProvider(int dwKeySize)
override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
RSACryptoServiceProvider()
void ImportCspBlob(byte[] keyBlob)
void Common(int dwKeySize, bool parameters)
string GetHashNameFromOID(string oid)
static bool UseMachineKeyStore
bool privateKeyExportable
static Exception PaddingModeNotSupported()
byte[] Encrypt(byte[] rgb, bool fOAEP)
override byte[] DecryptValue(byte[] rgb)
byte[] SignData(byte[] buffer, object halg)
override RSAParameters ExportParameters(bool includePrivateParameters)
static CspProviderFlags s_UseMachineKeyStore
bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
override void Dispose(bool disposing)
bool VerifyHash(byte[] rgbHash, int calgHash, byte[] rgbSignature)
override string KeyExchangeAlgorithm
byte[] SignData(Stream inputStream, object halg)
RSACryptoServiceProvider(CspParameters parameters)
override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
static int GetAlgorithmId(HashAlgorithmName hashAlgorithm)