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

◆ VerifyData() [8/8]

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

Definition at line 407 of file ECDsa.cs.

408 {
409 if (data == null)
410 {
411 throw new ArgumentNullException("data");
412 }
413 if (signature == null)
414 {
415 throw new ArgumentNullException("signature");
416 }
417 if (string.IsNullOrEmpty(hashAlgorithm.Name))
418 {
420 }
421 if (!signatureFormat.IsKnownValue())
422 {
423 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
424 }
425 return VerifyDataCore(data, signature, hashAlgorithm, signatureFormat);
426 }
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().