Skip to content

Latest commit

 

History

History
132 lines (103 loc) · 3.7 KB

ns-bcrypt-bcrypt_dh_key_blob.md

File metadata and controls

132 lines (103 loc) · 3.7 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:bcrypt._BCRYPT_DH_KEY_BLOB
BCRYPT_DH_KEY_BLOB (bcrypt.h)
Used as a header for a Diffie-Hellman public key or private key BLOB in memory.
*PBCRYPT_DH_KEY_BLOB
BCRYPT_DH_KEY_BLOB
BCRYPT_DH_KEY_BLOB structure [Security]
BCRYPT_DH_PRIVATE_MAGIC
BCRYPT_DH_PUBLIC_MAGIC
PBCRYPT_DH_KEY_BLOB
PBCRYPT_DH_KEY_BLOB structure pointer [Security]
bcrypt/BCRYPT_DH_KEY_BLOB
bcrypt/PBCRYPT_DH_KEY_BLOB
security.bcrypt_dh_key_blob
security\bcrypt_dh_key_blob.htm
security
6004b2e5-7e06-4108-a0da-472b9b6d5fea
12/05/2018
*PBCRYPT_DH_KEY_BLOB, BCRYPT_DH_KEY_BLOB, BCRYPT_DH_KEY_BLOB structure [Security], BCRYPT_DH_PRIVATE_MAGIC, BCRYPT_DH_PUBLIC_MAGIC, PBCRYPT_DH_KEY_BLOB, PBCRYPT_DH_KEY_BLOB structure pointer [Security], bcrypt/BCRYPT_DH_KEY_BLOB, bcrypt/PBCRYPT_DH_KEY_BLOB, security.bcrypt_dh_key_blob
bcrypt.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
BCRYPT_DH_KEY_BLOB, *PBCRYPT_DH_KEY_BLOB
19H1
_BCRYPT_DH_KEY_BLOB
bcrypt/_BCRYPT_DH_KEY_BLOB
PBCRYPT_DH_KEY_BLOB
bcrypt/PBCRYPT_DH_KEY_BLOB
BCRYPT_DH_KEY_BLOB
bcrypt/BCRYPT_DH_KEY_BLOB
c++
APIRef
kbSyntax
HeaderDef
Bcrypt.h
BCRYPT_DH_KEY_BLOB

BCRYPT_DH_KEY_BLOB structure

-description

The BCRYPT_DH_KEY_BLOB structure is used as a header for a Diffie-Hellman public key or private key BLOB in memory.

-struct-fields

-field dwMagic

Determines the type of key this structure represents. This can be one of the following values.

Value Meaning
BCRYPT_DH_PUBLIC_MAGIC
0x42504844
The structure represents a Diffie-Hellman public key.
BCRYPT_DH_PRIVATE_MAGIC
0x56504844
The structure represents a Diffie-Hellman private key.

-field cbKey

The length, in bytes, of the key.

-remarks

This structure is used as a header for a larger buffer. A Diffie-Hellman public key BLOB (BCRYPT_DH_PUBLIC_BLOB) has the following format in contiguous memory. The Modulus, Generator, and Public numbers are in big-endian format.

BCRYPT_DH_KEY_BLOB
Modulus[cbKey] // Big-endian.
Generator[cbKey] // Big-endian.
Public[cbKey] // Big-endian.

A Diffie-Hellman private key BLOB (BCRYPT_DH_PRIVATE_BLOB) has the following format in contiguous memory. The Modulus, Generator, Public, and PrivateExponent numbers are in big-endian format.

BCRYPT_DH_KEY_BLOB
Modulus[cbKey] // Big-endian.
Generator[cbKey] // Big-endian.
Public[cbKey] // Big-endian.
PrivateExponent[cbKey] // Big-endian.

-see-also

BCryptExportKey

BCryptImportKey