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

System.Security.Cryptography.RSACryptoServiceProvider.SignHash Method

Sign the specified hash value. [Edit]

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

Parameters

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

Returns

The signature value of the processed buffer. [Edit]

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

Requirements

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