Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

CertificateChain.VerifyHash Method

Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9147)

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.

In This Article
  • VerifyHash(Byte[], SignatureHashAlgorithm, Byte[])
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies