Certificate.SignHash Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9119)
SignHash(Byte[], SignatureHashAlgorithm, Boolean)
Computes the signature for the specified hash value by encrypting it with the private key.
Declaration
public byte[] SignHash(byte[] hash, SignatureHashAlgorithm alg, bool silent)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | hash | The hash value of the data to be signed. |
SignatureHashAlgorithm | alg | A hash algorithm used to create the hash value. |
Boolean | silent | If set to true, the cryptographic should not display any user interface (UI). |
Returns
Type | Description |
---|---|
Byte[] | The signature for the specified hash value. |
Remarks
The private key for a certificate must be available for this method to succeed.
If silent operation is requested and the CSP must display UI to operate, this method will fail.