ECDsa.SignHash Method

Definition

Overloads

SignHash(Byte[])

Generates a digital signature for the specified hash value.

SignHash(Byte[], DSASignatureFormat)

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

SignHash(Byte[])

Generates a digital signature for the specified hash value.

public:
 abstract cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash);
public abstract byte[] SignHash (byte[] hash);
abstract member SignHash : byte[] -> byte[]
Public MustOverride Function SignHash (hash As Byte()) As Byte()

Parameters

hash
Byte[]

The hash value of the data that is being signed.

Returns

Byte[]

A digital signature for the specified hash value.

Exceptions

The hash parameter is null.

Applies to

SignHash(Byte[], DSASignatureFormat)

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

public:
 cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignHash (byte[] hash, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignHash : byte[] * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignHash (hash As Byte(), signatureFormat As DSASignatureFormat) As Byte()

Parameters

hash
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

hash is null.

signatureFormat is not a known format.

An error occurred in the signing operation.

Applies to