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
  1. Get a pointer to the signed message.
  2. Get the size of the signed message.
  3. Get a handle on a cryptographic provider.
  4. Initialize the CRYPT_VERIFY_MESSAGE_PARA structure.
  5. Call CryptVerifyMessageSignature to verify the signature.