AsymmetricKeyAlgorithm.SignHash Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.8944)
SignHash(Byte[], SignatureHashAlgorithm)
Computes the signature for the specified hash value.
Declaration
public byte[] SignHash(byte[] hash, SignatureHashAlgorithm hashAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | hash | The hash value of the data to be signed. |
SignatureHashAlgorithm | hashAlgorithm | A hash algorithm used to create the hash value. |
Returns
Type | Description |
---|---|
Byte[] | The signature for the specified hash value. |
Remarks
The private key must be available for this method to succeed.