Bewerken

Delen via


DSACng.CreateSignature(Byte[]) Method

Definition

Creates the DSA signature for the specified data.

public:
 override cli::array <System::Byte> ^ CreateSignature(cli::array <System::Byte> ^ rgbHash);
public override byte[] CreateSignature (byte[] rgbHash);
override this.CreateSignature : byte[] -> byte[]
Public Overrides Function CreateSignature (rgbHash As Byte()) As Byte()

Parameters

rgbHash
Byte[]

The hash value to be signed.

Returns

Byte[]

The digital signature for the specified data.

Exceptions

rgbHash is null.

This instance represents only a public key.

-or-

An error occurred during signature creation.

rgbHash is shorter in length than the Q value of the DSA key.

Applies to