RSACryptoServiceProvider: VerifyHash

VerifyHash

Verifies the hash using the signature.



 Public Function VerifyHash(
	  ByRef RgbHash ( ) As Byte,
	  ByRef Str As String,
	  ByRef Signature ( ) As Byte ) As Boolean

Parameters

RgbHash
[ByRef] Byte. The hash to be verified.
Str
[ByRef] String. The type of hash value being signed.
Signature
[ByRef] Byte. The signature for the hash data.

Return Values

Boolean -  Returns True if the signature is correct, False otherwise.

Remarks

Only MD5, SHA1, SHA256, SHA384, and SHA512 hashes are supported.

The Str parameter can be "MD5", "SHA", "SHA1", "SHA256", "SHA384", "SHA512" or the OID.

See Also

Project CorLib Overview

Class RSACryptoServiceProvider Overview

CryptoConfig