Export (0) Print
Expand All
Expand Minimize

CRYPT_HASH_MESSAGE_PARA structure

The CRYPT_HASH_MESSAGE_PARA structure contains data for hashing messages.

Syntax


typedef struct _CRYPT_HASH_MESSAGE_PARA {
  DWORD                      cbSize;
  DWORD                      dwMsgEncodingType;
  HCRYPTPROV_LEGACY          hCryptProv;
  CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm;
  void                       *pvHashAuxInfo;
} CRYPT_HASH_MESSAGE_PARA, *PCRYPT_HASH_MESSAGE_PARA;

Members

cbSize

Size of this structure in bytes.

dwMsgEncodingType

Type of encoding used. It is always acceptable to specify both the certificate and message encoding types by combining them with a bitwise-OR operation as shown in the following example:

X509_ASN_ENCODING | PKCS_7_ASN_ENCODING

Currently defined encoding types are:

  • X509_ASN_ENCODING
  • PKCS_7_ASN_ENCODING
hCryptProv

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

Windows Server 2003 and Windows XP:  A handle to the cryptographic service provider (CSP) to be used.

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.

This member's data type is HCRYPTPROV.

HashAlgorithm

CRYPT_ALGORITHM_IDENTIFIER containing the algorithm for generating the hash of the message.

pvHashAuxInfo

Not currently 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
CryptHashMessage
CryptVerifyDetachedMessageHash
CryptVerifyMessageHash

 

 

Community Additions

ADD
Show:
© 2014 Microsoft