Platform SDK: Cryptography

CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA

The CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA structure contains information used to verify a message signature. It contains the signer index and signer public key. The signer public key can be the signer's CERT_PUBLIC_KEY_INFO structure, certificate context, or chain context.

typedef struct _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA {
  DWORD               cbSize;
  HCRYPTPROV          hCryptProv;
  DWORD               dwSignerIndex;
  DWORD               dwSignerType;
  void                *pvSigner;
} CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA, *PCMSG_CTRL_VERIFY_SIGNATURE_EX_PARA;

Members

cbSize
Size of this structure in bytes.
hCryptProv
Handle to the cryptographic provider used to verify the signature. If NULL, the cryptographic provider specified in CryptMsgOpenToDecode is used. If the hCryptProv in CryptMsgOpenToDecode is also NULL, the default provider according to the signer's public key OID is used.
dwSignerIndex
Index of the signer in the message.
dwSignerType
Indication of the structure containing the signer information. The following table shows the predefined values and the structures indicated.
Value pvSigner structure pointed to
CMSG_VERIFY_SIGNER_PUBKEY CERT_PUBLIC_KEY_INFO
CMSG_VERIFY_SIGNER_CERT CCERT_CONTEXT
CMSG_VERIFY_SIGNER_CHAIN CERT_CHAIN_CONTEXT

pvSigner
Pointer to a CERT_PUBLIC_KEY_INFO structure, a certificate context, or a chain context depending on the value of dwSignerType.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Wincrypt.h.