Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ VerifyData() [4/8]

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

Definition at line 308 of file ECDsa.cs.

309 {
310 if (data == null)
311 {
312 throw new ArgumentNullException("data");
313 }
314 if (offset < 0 || offset > data.Length)
315 {
316 throw new ArgumentOutOfRangeException("offset");
317 }
318 if (count < 0 || count > data.Length - offset)
319 {
320 throw new ArgumentOutOfRangeException("count");
321 }
322 if (signature == null)
323 {
324 throw new ArgumentNullException("signature");
325 }
326 if (string.IsNullOrEmpty(hashAlgorithm.Name))
327 {
329 }
330 if (!signatureFormat.IsKnownValue())
331 {
332 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
333 }
334 return VerifyDataCore(new ReadOnlySpan<byte>(data, offset, count), signature, hashAlgorithm, signatureFormat);
335 }
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.count, System.Security.Cryptography.DSASignatureFormatHelpers.CreateUnknownValueException(), System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.HashAlgorithmName.Name, System.offset, and System.Security.Cryptography.ECDsa.VerifyDataCore().