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

System.Security.Cryptography.RSACryptoServiceProvider.SignData Method

Process the specified hash algorithm on the complete buffer specified then sign it's result.

public byte[] SignData (byte[] buffer, object halg)

Parameters

buffer
The data buffer to be hashed then signed.
halg
An object representing the hash algorithm to be used. The object can either be:

Returns

The signature value of the processed buffer.

Remarks

This method can work with ANY configured (OID in machine.config) HashAlgorithm descendant.

Requirements

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