CertificateChain.VerifyHash Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9119)
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 RSA signature for the specified hash value. |
Returns
Type | Description |
---|---|
Boolean | true if the signature verifies as valid; otherwise, false. |
Remarks
The hash algorithm parameter is ignored with managed RSA.