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

◆ VerifyData() [2/8]

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

Definition at line 380 of file DSA.cs.

381 {
382 if (data == null)
383 {
384 throw new ArgumentNullException("data");
385 }
386 if (signature == null)
387 {
388 throw new ArgumentNullException("signature");
389 }
390 if (string.IsNullOrEmpty(hashAlgorithm.Name))
391 {
393 }
394 if (!signatureFormat.IsKnownValue())
395 {
396 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
397 }
398 return VerifyDataCore(data, signature, hashAlgorithm, signatureFormat);
399 }
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().