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

◆ VerifyData() [3/8]

virtual bool System.Security.Cryptography.ECDsa.VerifyData ( byte[] data,
int offset,
int count,
byte[] signature,
HashAlgorithmName hashAlgorithm )
inlinevirtualinherited

Definition at line 282 of file ECDsa.cs.

283 {
284 if (data == null)
285 {
286 throw new ArgumentNullException("data");
287 }
288 if (offset < 0 || offset > data.Length)
289 {
290 throw new ArgumentOutOfRangeException("offset");
291 }
292 if (count < 0 || count > data.Length - offset)
293 {
294 throw new ArgumentOutOfRangeException("count");
295 }
296 if (signature == null)
297 {
298 throw new ArgumentNullException("signature");
299 }
300 if (string.IsNullOrEmpty(hashAlgorithm.Name))
301 {
303 }
304 byte[] hash = HashData(data, offset, count, hashAlgorithm);
305 return VerifyHash(hash, signature);
306 }
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.count, System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.ECDsa.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, System.offset, and System.Security.Cryptography.ECDsa.VerifyHash().