CMSG_SIGNED_ENCODE_INFO structure (wincrypt.h)

The CMSG_SIGNED_ENCODE_INFO structure contains information to be passed to CryptMsgOpenToEncode if dwMsgType is CMSG_SIGNED.

Syntax

typedef struct _CMSG_SIGNED_ENCODE_INFO {
  DWORD                    cbSize;
  DWORD                    cSigners;
  PCMSG_SIGNER_ENCODE_INFO rgSigners;
  DWORD                    cCertEncoded;
  PCERT_BLOB               rgCertEncoded;
  DWORD                    cCrlEncoded;
  PCRL_BLOB                rgCrlEncoded;
  DWORD                    cAttrCertEncoded;
  PCERT_BLOB               rgAttrCertEncoded;
} CMSG_SIGNED_ENCODE_INFO, *PCMSG_SIGNED_ENCODE_INFO;

Members

cbSize

Size of this structure in bytes.

cSigners

Number of elements in the rgSigners array.

rgSigners

Array of pointers to CMSG_SIGNER_ENCODE_INFO structures each holding signer information.

cCertEncoded

Number of elements in the rgCertEncoded array.

rgCertEncoded

Array of pointers to CERT_BLOB structures, each containing an encoded certificate.

cCrlEncoded

Number of elements in the rgCrlEncoded array.

rgCrlEncoded

Array of pointers to CRL_BLOB structures, each containing an encoded CRL.

cAttrCertEncoded

Number of elements in the rgAttrCertEncoded array. Used only if CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS is defined.

rgAttrCertEncoded

Array of encoded attribute certificates. Used only if CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS is defined. This array of encoded attribute certificates can be used with CMS for PKCS #7 processing.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header wincrypt.h

See also

CMSG_SIGNER_ENCODE_INFO

CRYPT_INTEGER_BLOB