ECDsa.SignHashCore(ReadOnlySpan<Byte>, DSASignatureFormat) Method

Definition

Computes the ECDSA signature for the specified hash value in the indicated format.

C#
protected virtual byte[] SignHashCore(ReadOnlySpan<byte> hash, System.Security.Cryptography.DSASignatureFormat signatureFormat);

Parameters

hash
ReadOnlySpan<Byte>

The hash value to sign.

signatureFormat
DSASignatureFormat

The encoding format to use for the signature.

Returns

Byte[]

The ECDSA signature for the specified data.

Exceptions

An error occurred in the signing operation.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10