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

◆ CreateSignature() [1/2]

unsafe override byte[] System.Security.Cryptography.DSAImplementation.DSACng.CreateSignature ( byte[] rgbHash)
inline

Definition at line 385 of file DSAImplementation.cs.

386 {
387 if (rgbHash == null)
388 {
389 throw new ArgumentNullException("rgbHash");
390 }
391 Span<byte> stackBuf = stackalloc byte[32];
392 ReadOnlySpan<byte> hash = AdjustHashSizeIfNecessary(rgbHash, stackBuf);
394 return keyHandle.SignHash(hash, global::Interop.NCrypt.AsymmetricPaddingMode.None, null, hash.Length * 2);
395 }
ReadOnlySpan< byte > AdjustHashSizeIfNecessary(ReadOnlySpan< byte > hash, Span< byte > stackBuf)

References System.Security.Cryptography.DSAImplementation.DSACng.AdjustHashSizeIfNecessary(), System.Security.Cryptography.DSAImplementation.DSACng.GetDuplicatedKeyHandle(), and System.ReadOnlySpan< T >.Length.