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

◆ SignHash() [1/2]

unsafe override byte[] System.Security.Cryptography.ECDsaImplementation.ECDsaCng.SignHash ( byte[] hash)
inline

Definition at line 317 of file ECDsaImplementation.cs.

318 {
319 if (hash == null)
320 {
321 throw new ArgumentNullException("hash");
322 }
323 int estimatedSize = KeySize switch
324 {
325 256 => 64,
326 384 => 96,
327 521 => 132,
328 _ => KeySize / 4,
329 };
331 return keyHandle.SignHash(hash, global::Interop.NCrypt.AsymmetricPaddingMode.None, null, estimatedSize);
332 }

References System.Security.Cryptography.ECDsaImplementation.ECDsaCng.GetDuplicatedKeyHandle(), and System.Security.Cryptography.ECDsaImplementation.ECDsaCng.KeySize.