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

◆ VerifyDataCore() [1/2]

virtual bool System.Security.Cryptography.ECDsa.VerifyDataCore ( ReadOnlySpan< byte > data,
ReadOnlySpan< byte > signature,
HashAlgorithmName hashAlgorithm,
DSASignatureFormat signatureFormat )
inlineprotectedvirtualinherited

Definition at line 382 of file ECDsa.cs.

383 {
384 Span<byte> span = stackalloc byte[64];
385 span = ((!TryHashData(data, span, hashAlgorithm, out var bytesWritten)) ? ((Span<byte>)HashData(data.ToArray(), 0, data.Length, hashAlgorithm)) : span.Slice(0, bytesWritten));
386 return VerifyHashCore(span, signature, signatureFormat);
387 }
virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
Definition ECDsa.cs:438
virtual bool TryHashData(ReadOnlySpan< byte > data, Span< byte > destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
Definition ECDsa.cs:448
virtual bool VerifyHashCore(ReadOnlySpan< byte > hash, ReadOnlySpan< byte > signature, DSASignatureFormat signatureFormat)
Definition ECDsa.cs:528

References System.Security.Cryptography.ECDsa.HashData(), System.ReadOnlySpan< T >.Length, System.Span< T >.Slice(), System.ReadOnlySpan< T >.ToArray(), System.Security.Cryptography.ECDsa.TryHashData(), and System.Security.Cryptography.ECDsa.VerifyHashCore().

Referenced by System.Security.Cryptography.ECDsa.VerifyData(), System.Security.Cryptography.ECDsa.VerifyData(), System.Security.Cryptography.ECDsa.VerifyData(), and System.Security.Cryptography.ECDsa.VerifyData().