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

◆ VerifyData() [6/8]

bool System.Security.Cryptography.ECDsa.VerifyData ( ReadOnlySpan< byte > data,
ReadOnlySpan< byte > signature,
HashAlgorithmName hashAlgorithm,
DSASignatureFormat signatureFormat )
inlineinherited

Definition at line 369 of file ECDsa.cs.

370 {
371 if (string.IsNullOrEmpty(hashAlgorithm.Name))
372 {
374 }
375 if (!signatureFormat.IsKnownValue())
376 {
377 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
378 }
379 return VerifyDataCore(data, signature, hashAlgorithm, signatureFormat);
380 }
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().