WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

PGPBase..::..VerifyHash Method

Verifies that a digital signature is valid by determining the hash value in the signature using the specified hash algorithm and padding, and comparing it to the provided hash value.

Namespace:  Walter.Cypher.PGP
Assembly:  Walter.Cypher (in Walter.Cypher.dll)

Syntax


public bool VerifyHash(
	byte[] hash,
	byte[] signature,
	HashAlgorithmName hashAlgorithm,
	RSASignaturePadding padding
)

Parameters

hash
Type: array<Byte>[]()[][]
The hash value of the signed data.
signature
Type: array<Byte>[]()[][]
The signature data to be verified.
hashAlgorithm
Type: HashAlgorithmName
The hash algorithm used to create the hash value.
padding
Type: RSASignaturePadding
The padding mode.

Return Value

true if the signature is valid; otherwise, false.