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

System.Security.Cryptography.DSACryptoServiceProvider.SignHash Method

Sign the specified hash value.

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

Parameters

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

Returns

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

Remarks

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

Requirements

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