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

◆ VerifyData() [8/8]

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

Definition at line 401 of file DSA.cs.

402 {
403 if (data == null)
404 {
405 throw new ArgumentNullException("data");
406 }
407 if (signature == null)
408 {
409 throw new ArgumentNullException("signature");
410 }
411 if (string.IsNullOrEmpty(hashAlgorithm.Name))
412 {
414 }
415 if (!signatureFormat.IsKnownValue())
416 {
417 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
418 }
419 return VerifyDataCore(data, signature, hashAlgorithm, signatureFormat);
420 }
virtual bool VerifyDataCore(Stream data, ReadOnlySpan< byte > signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
Definition DSA.cs:422
static Exception HashAlgorithmNameNullOrEmpty()
Definition DSA.cs:524

References System.Security.Cryptography.DSASignatureFormatHelpers.CreateUnknownValueException(), System.Security.Cryptography.DSA.HashAlgorithmNameNullOrEmpty(), System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.DSA.VerifyDataCore().