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

◆ SignHash() [1/3]

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

Reimplemented from System.Security.Cryptography.RSA.

Definition at line 485 of file RSACryptoServiceProvider.cs.

486 {
487 if (hash == null)
488 {
489 throw new ArgumentNullException("hash");
490 }
491 if (string.IsNullOrEmpty(hashAlgorithm.Name))
492 {
494 }
495 if (padding == null)
496 {
497 throw new ArgumentNullException("padding");
498 }
499 if (padding != RSASignaturePadding.Pkcs1)
500 {
502 }
503 return SignHash(hash, GetAlgorithmId(hashAlgorithm));
504 }
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.SignHash().