Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This structure contains information used to decrypt an enveloped message for a key transport recipient. This structure is passed to CryptMsgControlif the dwCtrlTypeparameter is CMSG_CTRL_DECRYPT.
Important changes affecting the handling of enveloped messages have been made to CryptoAPI to support S/MIME e-mail interoperability. For details, see the Remarks section of CryptMsgOpenToEncode.
Syntax
typedef struct _CMSG_CTRL_DECRYPT_PARA { DWORD cbSize; HCRYPTPROV hCryptProv; DWORD dwKeySpec; DWORD dwRecipientIndex; } CMSG_CTRL_DECRYPT_PARA, *PCMSG_CTRL_DECRYPT_PARA; |
Members
- cbSize
-
Size of this structure in bytes.
- hCryptProv
-
Cryptographic service provider (CSP) handle.
- dwKeySpec
-
The private key to be used.
The following dwKeySpecvalues are defined for the default provider.
Value Description AT_KEYEXCHANGE
Keys used to encrypt/decrypt session keys.
AT_SIGNATURE
Keys used to create and verify digital signatures.
If dwKeySpecis zero, the default AT_KEYEXCHANGE is used.
- dwRecipientIndex
-
Index of the recipient in the message associated with the hCryptProvprivate key.
Requirements
Header | wincrypt.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |