Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CMSG_HASHED_ENCODE_INFO structure

The CMSG_HASHED_ENCODE_INFO structure is used with hashed messages. It is passed to the CryptMsgOpenToEncode function if the CryptMsgOpenToEncode function's dwMsgType parameter is CMSG_ENVELOPED.

Syntax


typedef struct _CMSG_HASHED_ENCODE_INFO {
  DWORD                      cbSize;
  HCRYPTPROV_LEGACY          hCryptProv;
  CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm;
  void                       *pvHashAuxInfo;
} CMSG_HASHED_ENCODE_INFO, *PCMSG_HASHED_ENCODE_INFO;

Members

cbSize

The size, in bytes, of this structure.

hCryptProv

This member is not used and should be set to NULL.

Windows Server 2003 and Windows XP:  Specifies a handle to the cryptographic service provider (CSP) used to do the hash. The hCryptProv private keys are not used.

This member's data type is HCRYPTPROV.

Unless there is a strong reason for passing in a specific cryptographic provider in hCryptProv, pass zero to use the default RSA or DSS provider to be acquired before doing hash, signature verification, or recipient encryption operations.

HashAlgorithm

A CRYPT_ALGORITHM_IDENTIFIER structure that contains the hash algorithm type and any associated additional parameters.

pvHashAuxInfo

This member is currently not used and must be set to NULL.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

See also

CRYPT_ALGORITHM_IDENTIFIER

 

 

Community Additions

ADD
Show:
© 2015 Microsoft