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

◆ SignHash() [1/2]

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

Definition at line 461 of file ECDsaCng.cs.

462 {
463 if (hash == null)
464 {
465 throw new ArgumentNullException("hash");
466 }
467 int estimatedSize = KeySize switch
468 {
469 256 => 64,
470 384 => 96,
471 521 => 132,
472 _ => KeySize / 4,
473 };
475 return keyHandle.SignHash(hash, global::Interop.NCrypt.AsymmetricPaddingMode.None, null, estimatedSize);
476 }
SafeNCryptKeyHandle GetDuplicatedKeyHandle()
Definition ECDsaCng.cs:258

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