Mono Class Library: System.Security.Cryptography.DSACryptoServiceProvider Overview | Members

System.Security.Cryptography.DSACryptoServiceProvider.CreateSignature Method

Sign the specified hash value using the instance private key. [Edit]

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

Parameters

rgbHash
The SHA1 hash to be signed. [Edit]

Returns

An array of 40 bytes containing the DSA signature of the specified hash. [Edit]

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). [Edit]

Requirements

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