Computes the signature for the specified hash value by encrypting it with the private key.

Namespace:  Rebex.Security.Certificates
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Function SignHash ( _
	hash As Byte(), _
	alg As SignatureHashAlgorithm, _
	silent As Boolean _
) As Byte()
C#
public byte[] SignHash(
	byte[] hash,
	SignatureHashAlgorithm alg,
	bool silent
)

Parameters

hash
Type: array<System..::..Byte>[]()[][]
The hash value of the data to be signed.
alg
Type: Rebex.Security.Certificates..::..SignatureHashAlgorithm
A hash algorithm used to create the hash value.
silent
Type: System..::..Boolean
If set to true, the cryptographic should not display any user interface (UI).

Return Value

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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also