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

◆ VerifySignature() [3/4]

unsafe override bool System.Security.Cryptography.DSACng.VerifySignature ( ReadOnlySpan< byte > hash,
ReadOnlySpan< byte > signature )
inlinevirtual

Reimplemented from System.Security.Cryptography.DSA.

Definition at line 425 of file DSACng.cs.

426 {
427 Span<byte> stackBuf = stackalloc byte[32];
428 ReadOnlySpan<byte> hash2 = AdjustHashSizeIfNecessary(hash, stackBuf);
430 return keyHandle.VerifyHash(hash2, signature, global::Interop.NCrypt.AsymmetricPaddingMode.None, null);
431 }
ReadOnlySpan< byte > AdjustHashSizeIfNecessary(ReadOnlySpan< byte > hash, Span< byte > stackBuf)
Definition DSACng.cs:433
SafeNCryptKeyHandle GetDuplicatedKeyHandle()
Definition DSACng.cs:96

References System.Security.Cryptography.DSACng.AdjustHashSizeIfNecessary(), and System.Security.Cryptography.DSACng.GetDuplicatedKeyHandle().