VerifyData
Verifies the data using the signature.
Public Function VerifyData(
ByRef Buffer ( ) As Byte,
ByRef hAlg As Variant,
ByRef Signature ( ) As Byte ) As Boolean
Parameters
- Buffer
-
[ByRef]
Byte.
The data to be verified.
- hAlg
-
[ByRef]
Variant.
The hash algorithm used to verify to the data. This is the same algorithm used to sign the data. Only MD5, SHA1, SHA256, SHA384, and SHA512 hashes are supported.
- Signature
-
[ByRef]
Byte.
The signature used to ensure the data is valid.
Return Values
Boolean - Returns True if the data has a valid signature, False otherwise.
Remarks
The hash algorithms can be specified either by the OID string, the hash name, or an actual instance of a hash
object that implements an MD5, SHA1, SHA256, SHA384, or SHA512 interface.
See Also
Project CorLib Overview
Class RSACryptoServiceProvider Overview
CryptoConfig
MD5
SHA1
SHA256
SHA384
SHA512
MD5CryptoServiceProvider
SHA1CryptoServiceProvider
SHA1Manged
SHA256Managed
SHA384Managed
SHA512Managed