CERT_X942_DH_PARAMETERS structure (wincrypt.h)

The CERT_X942_DH_PARAMETERS structure contains parameters associated with a Diffie-Hellman public key algorithm.

Syntax

typedef struct _CERT_X942_DH_PARAMETERS {
  CRYPT_UINT_BLOB                 p;
  CRYPT_UINT_BLOB                 g;
  CRYPT_UINT_BLOB                 q;
  CRYPT_UINT_BLOB                 j;
  PCERT_X942_DH_VALIDATION_PARAMS pValidationParams;
} CERT_X942_DH_PARAMETERS, *PCERT_X942_DH_PARAMETERS;

Members

p

Prime modulus P. The most significant bit of the most significant byte must always be set to 1.

g

Generator G. Must be the same length as p (must be padded with 0x00 bytes if it is less).

q

Prime Q.

A factor of p–1. The most significant bit of the most significant byte must be set to 1.

j

Optional subgroup factor.

pValidationParams

Optional pointer to a CERT_X942_DH_VALIDATION_PARAMS structure. If the cbData member of the q BLOB is zero, all of the members of pValidationParams must be zero.

Requirements

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