DHPUBKEY structure

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;

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.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

See also

PUBLICKEYSTRUC

 

 

Show: