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

System.Security.Cryptography.RSACryptoServiceProvider.SignHash Method

Sign the specified hash value.

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

Parameters

rgbHash
The hash to be signed.
str
OID for the hash algorithm using in the signature.

Returns

The signature value of the processed buffer.

Remarks

This method is LIMITED to SHA1 and MD5 like the MS framework 1.0 and 1.1 because there's no method to get a hash algorithm from an OID. However there's no such limit when using the RSAPKCS1[De]Formatter class.

Requirements

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