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

◆ VerifySignature() [1/2]

override bool System.Security.Cryptography.RSAPKCS1SignatureDeformatter.VerifySignature ( byte[] rgbHash,
byte[] rgbSignature )
inline

Definition at line 47 of file RSAPKCS1SignatureDeformatter.cs.

48 {
49 if (rgbHash == null)
50 {
51 throw new ArgumentNullException("rgbHash");
52 }
53 if (rgbSignature == null)
54 {
55 throw new ArgumentNullException("rgbSignature");
56 }
57 if (_algName == null)
58 {
59 throw new CryptographicUnexpectedOperationException(System.SR.Cryptography_MissingOID);
60 }
61 if (_rsaKey == null)
62 {
63 throw new CryptographicUnexpectedOperationException(System.SR.Cryptography_MissingKey);
64 }
65 return _rsaKey.VerifyHash(rgbHash, rgbSignature, new HashAlgorithmName(_algName), RSASignaturePadding.Pkcs1);
66 }
static string Cryptography_MissingOID
Definition SR.cs:116
static string Cryptography_MissingKey
Definition SR.cs:114
Definition SR.cs:7
virtual bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
Definition RSA.cs:75

References System.Security.Cryptography.RSAPKCS1SignatureDeformatter._algName, System.Security.Cryptography.RSAPKCS1SignatureDeformatter._rsaKey, System.SR.Cryptography_MissingKey, System.SR.Cryptography_MissingOID, System.Security.Cryptography.RSASignaturePadding.Pkcs1, and System.Security.Cryptography.RSA.VerifyHash().