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

◆ VerifyData() [4/4]

bool System.Security.Cryptography.RSA.VerifyData ( Stream data,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding )
inlineinherited

Definition at line 283 of file RSA.cs.

284 {
285 if (data == null)
286 {
287 throw new ArgumentNullException("data");
288 }
289 if (signature == null)
290 {
291 throw new ArgumentNullException("signature");
292 }
293 if (string.IsNullOrEmpty(hashAlgorithm.Name))
294 {
296 }
297 if (padding == null)
298 {
299 throw new ArgumentNullException("padding");
300 }
301 byte[] hash = HashData(data, hashAlgorithm);
302 return VerifyHash(hash, signature, hashAlgorithm, padding);
303 }
static Exception HashAlgorithmNameNullOrEmpty()
Definition RSA.cs:672
virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
Definition RSA.cs:80
virtual bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
Definition RSA.cs:75

References System.Security.Cryptography.RSA.HashAlgorithmNameNullOrEmpty(), System.Security.Cryptography.RSA.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.RSA.VerifyHash().