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

◆ VerifyData() [5/8]

virtual bool System.Security.Cryptography.ECDsa.VerifyData ( ReadOnlySpan< byte > data,
ReadOnlySpan< byte > signature,
HashAlgorithmName hashAlgorithm )
inlinevirtualinherited

Definition at line 358 of file ECDsa.cs.

359 {
360 if (string.IsNullOrEmpty(hashAlgorithm.Name))
361 {
363 }
364 Span<byte> tmp = stackalloc byte[128];
365 ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, tmp);
366 return VerifyHash(hash, signature);
367 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
ReadOnlySpan< byte > HashSpanToTmp(ReadOnlySpan< byte > data, HashAlgorithmName hashAlgorithm, Span< byte > tmp)
Definition ECDsa.cs:538
bool VerifyHash(byte[] hash, byte[] signature)

References System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.ECDsa.HashSpanToTmp(), System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.ECDsa.VerifyHash().