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

◆ TrySignHashCore()

virtual bool System.Security.Cryptography.ECDsa.TrySignHashCore ( ReadOnlySpan< byte > hash,
Span< byte > destination,
DSASignatureFormat signatureFormat,
out int bytesWritten )
inlineprotectedvirtualinherited

Reimplemented in System.Security.Cryptography.ECDsaImplementation.ECDsaCng.

Definition at line 490 of file ECDsa.cs.

491 {
492 byte[] signature = SignHash(hash.ToArray());
493 byte[] array = AsymmetricAlgorithmHelpers.ConvertFromIeeeP1363Signature(signature, signatureFormat);
495 }
static byte[] ConvertFromIeeeP1363Signature(byte[] signature, DSASignatureFormat targetFormat)
static bool TryCopyToDestination(this ReadOnlySpan< byte > source, Span< byte > destination, out int bytesWritten)
Definition Helpers.cs:62
byte[] SignHash(byte[] hash, DSASignatureFormat signatureFormat)
Definition ECDsa.cs:180

References System.array, Internal.Cryptography.AsymmetricAlgorithmHelpers.ConvertFromIeeeP1363Signature(), System.destination, System.Security.Cryptography.ECDsa.SignHash(), System.ReadOnlySpan< T >.ToArray(), and Internal.Cryptography.Helpers.TryCopyToDestination().

Referenced by System.Security.Cryptography.ECDsa.SignHashCore(), System.Security.Cryptography.ECDsa.TrySignDataCore(), System.Security.Cryptography.ECDsa.TrySignHash(), and System.Security.Cryptography.ECDsa.TrySignHash().