CryptSignerVerifyHash Method

Verifies that the specified signature matches the specified hash.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public bool VerifyHash(
	byte[] hash,
	byte[] signature
)

Parameters

hash  Byte
The hash value of the signed data.
signature  Byte
The signature data to be verified.

Return Value

Boolean
True if hash matches the one stored in signature, otherwise False.

Implements

ICryptSignerVerifyHash(Byte, Byte)

Exceptions

ArgumentNullExceptionhash or signature parameter is null.

See Also