MessageSignerVerifyHash Method

Verifies that the specified signature matches the specified hash.

Definition

Namespace: SysadminsLV.PKI.Tools.MessageOperations
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
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