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

System.Security.Cryptography.DSACryptoServiceProvider.SignHash Method

Sign the specified hash value. [Edit]

public byte[] SignHash (byte[] rgbHash, string str)

Parameters

rgbHash
The hash to be signed. [Edit]
str
The algorithm used to compute the hash value. [Edit]

Returns

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

Remarks

A System.Security.Cryptography.CryptographicException is thrown is str isn't "SHA1". [Edit]

Requirements

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