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

◆ VerifyData() [2/8]

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

Definition at line 337 of file ECDsa.cs.

338 {
339 if (data == null)
340 {
341 throw new ArgumentNullException("data");
342 }
343 if (signature == null)
344 {
345 throw new ArgumentNullException("signature");
346 }
347 if (string.IsNullOrEmpty(hashAlgorithm.Name))
348 {
350 }
351 if (!signatureFormat.IsKnownValue())
352 {
353 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
354 }
355 return VerifyDataCore(data, signature, hashAlgorithm, signatureFormat);
356 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
virtual bool VerifyDataCore(ReadOnlySpan< byte > data, ReadOnlySpan< byte > signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
Definition ECDsa.cs:382

References System.Security.Cryptography.DSASignatureFormatHelpers.CreateUnknownValueException(), System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.ECDsa.VerifyDataCore().