Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CMSG_CTRL_DECRYPT_PARA

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This structure contains information used to decrypt an enveloped message for a key transport recipient. This structure is passed to CryptMsgControl if the dwCtrlType parameter 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.


typedef struct _CMSG_CTRL_DECRYPT_PARA {
  DWORD cbSize;
  HCRYPTPROV hCryptProv;
  DWORD dwKeySpec;
  DWORD dwRecipientIndex;
} CMSG_CTRL_DECRYPT_PARA, *PCMSG_CTRL_DECRYPT_PARA;

cbSize

Size of this structure in bytes.

hCryptProv

Cryptographic service provider (CSP) handle.

dwKeySpec

The private key to be used.

The following dwKeySpec values 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 dwKeySpec is zero, the default AT_KEYEXCHANGE is used.

dwRecipientIndex

Index of the recipient in the message associated with the hCryptProv private key.

Headerwincrypt.h
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2014 Microsoft