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

◆ VerifyData() [7/8]

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

Definition at line 389 of file ECDsa.cs.

390 {
391 if (data == null)
392 {
393 throw new ArgumentNullException("data");
394 }
395 if (signature == null)
396 {
397 throw new ArgumentNullException("signature");
398 }
399 if (string.IsNullOrEmpty(hashAlgorithm.Name))
400 {
402 }
403 byte[] hash = HashData(data, hashAlgorithm);
404 return VerifyHash(hash, signature);
405 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
bool VerifyHash(byte[] hash, byte[] signature)
virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
Definition ECDsa.cs:438

References System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.ECDsa.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.ECDsa.VerifyHash().