Certificate.VerifyHash Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9448)
VerifyHash(Byte[], SignatureHashAlgorithm, Byte[])
Verifies the specified signature data by comparing it to the signature computed for the specified hash value.
Declaration
public bool VerifyHash(byte[] hash, SignatureHashAlgorithm alg, byte[] signature)
Parameters
| Type | Name | Description |
|---|---|---|
| Byte[] | hash | The hash value of the signed data. |
| SignatureHashAlgorithm | alg | A hash algorithm used to create the hash value. |
| Byte[] | signature | The signature for the specified hash value. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the signature verifies as valid; otherwise, false. |