Using the CryptVerifyMessageSignature Function
A single function, CryptVerifyMessageSignature, can be used to verify a signature, as shown in the following procedure.
To verify a signed message
-
Get a pointer to the signed message.
-
Get the size of the signed message.
-
Get a handle on a cryptographic provider.
-
Initialize the CRYPT_VERIFY_MESSAGE_PARA structure.
-
Call CryptVerifyMessageSignature to verify the signature.