Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ VerifyHash() [1/4]

override bool System.Security.Cryptography.RSACryptoServiceProvider.VerifyHash ( byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding )
inlinevirtual

Reimplemented from System.Security.Cryptography.RSA.

Definition at line 506 of file RSACryptoServiceProvider.cs.

507 {
508 if (hash == null)
509 {
510 throw new ArgumentNullException("hash");
511 }
512 if (signature == null)
513 {
514 throw new ArgumentNullException("signature");
515 }
516 if (string.IsNullOrEmpty(hashAlgorithm.Name))
517 {
519 }
520 if (padding == null)
521 {
522 throw new ArgumentNullException("padding");
523 }
524 if (padding != RSASignaturePadding.Pkcs1)
525 {
527 }
528 return VerifyHash(hash, GetAlgorithmId(hashAlgorithm), signature);
529 }
bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
static int GetAlgorithmId(HashAlgorithmName hashAlgorithm)

References System.Security.Cryptography.RSACryptoServiceProvider.GetAlgorithmId(), System.Security.Cryptography.RSACryptoServiceProvider.HashAlgorithmNameNullOrEmpty(), System.Security.Cryptography.HashAlgorithmName.Name, System.Security.Cryptography.RSACryptoServiceProvider.PaddingModeNotSupported(), System.Security.Cryptography.RSASignaturePadding.Pkcs1, and System.Security.Cryptography.RSACryptoServiceProvider.VerifyHash().