Verify a signature value over data in a byte array.
Public Function sigVerifyData ( _ szSignature As String, _ lpData() As Byte, _ szCertOrKey As String, _ szAlgName As String, _ Optional nOptions As Long = 0 _ ) As Long
"sha1WithRSAEncryption" "sha224WithRSAEncryption" "sha256WithRSAEncryption" "sha384WithRSAEncryption" "sha512WithRSAEncryption" "md5WithRSAEncryption" "ecdsaWithSHA1" "ecdsaWithSHA224" "ecdsaWithSHA256" "ecdsaWithSHA384" "ecdsaWithSHA512" "RSA-PSS-SHA1" "RSA-PSS-SHA224" "RSA-PSS-SHA256" "RSA-PSS-SHA384" "RSA-PSS-SHA512" "Ed25519"
PKI_SIG_USEDIGEST
to pass the digest value of the data-to-be-signed as the lpData
argument instead of the data itself.
Add PKI_MGF_MGF1SHA1
(RSA-PSS only) to force the MGF hash function to be SHA-1 (default = same as signature hash algorithm).