System.Security.Cryptography.DSA.CreateSignature Method

When overridden in a derived class, creates the System.Security.Cryptography.DSA signature for the specified data.

Syntax

public abstract byte[] CreateSignature (byte[] rgbHash)

Parameters

rgbHash
The data to be signed.

Returns

The digital signature for the specified data.

Remarks

A System.Security.Cryptography.CryptographicException will be thrown if the instance doesn't have a private key or if the parameter rgbHash isn't exactly 20 bytes long (like all SHA1 hashes are).

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0