RSACryptoServiceProvider: VerifyHash

VerifyHash

Verifies the hash using the signature.



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

Parameters

RgbHash
[ByRef] Byte. The hash to be verified.
Str
[ByVal] 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 SHA1 and MD5 hashes are supported.

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

See Also

Project VBCorLib Overview Class RSACryptoServiceProvider Overview RSACryptoServiceProvider Properties RSACryptoServiceProvider Methods VerifyData CryptoConfig