共用方式為


CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This 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.

Syntax

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 that is 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 Description

    CMSG_VERIFY_SIGNER_PUBKEY

    CERT_PUBLIC_KEY_INFO

    CMSG_VERIFY_SIGNER_CERT

    CCERT_CONTEXT

    CMSG_VERIFY_SIGNER_CHAIN

    CERT_CHAIN_CONTEXT

    CMSG_VERIFY_SIGNER_NULL

    NULL

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

Remarks

If dwSignerType is CMSG_VERIFY_SIGNER_NULL, the signature is expected to contain only the unencrypted hash octets.

Requirements

Header wincrypt.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Cryptography Structures