DHPUBKEY structure (wincrypt.h)

The DHPUBKEY structure contains information specific to the particular Diffie-Hellman public key contained in the key BLOB.

Syntax

typedef struct _PUBKEY {
  DWORD magic;
  DWORD bitlen;
} DHPUBKEY, DSSPUBKEY, KEAPUBKEY, TEKPUBKEY;

Members

magic

This must always be set to DH1 (0x31484400) when used for public key BLOBs and to DH2 (0x32484400) when used for private key BLOBs.

Notice that the hexadecimal values are simply an ASCII encoding of DH1 and DH2.

bitlen

Number of bits in the prime modulus, P.

Remarks

DSSPUBKEY is an alias for this structure.

Requirements

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

See also

PUBLICKEYSTRUC