CMSG_RECIPIENT_ENCODE_INFO structure (wincrypt.h)

The CMSG_RECIPIENT_ENCODE_INFO structure contains information a message recipient's content encryption key management type.

Note  Only key transport recipients are supported in PKCS #7 version 1.5.
 

Syntax

typedef struct _CMSG_RECIPIENT_ENCODE_INFO {
  DWORD dwRecipientChoice;
  union {
    PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO pKeyTrans;
    PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO pKeyAgree;
    PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO pMailList;
  } DUMMYUNIONNAME;
} CMSG_RECIPIENT_ENCODE_INFO, *PCMSG_RECIPIENT_ENCODE_INFO;

Members

dwRecipientChoice

Indicates the union member to be used. The following values are defined.

Value Meaning
CMSG_KEY_TRANS_RECIPIENT
Use with key transport key management
CMSG_KEY_AGREE_RECIPIENT
Used with key agreement key management
CMSG_MAIL_LIST_RECIPIENT
Use with previously distributed key encryption key management

DUMMYUNIONNAME

DUMMYUNIONNAME.pKeyTrans

A pointer to a CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO structure. Used with CMSG_KEY_TRANS_RECIPIENT

DUMMYUNIONNAME.pKeyAgree

A pointer to a CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO structure. Used with CMSG_KEY_AGREE_RECIPIENT

DUMMYUNIONNAME.pMailList

A pointer to a CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO structure. Used with CMSG_MAIL_LIST_RECIPIENT

Requirements

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