EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

BCRYPT_DH_KEY_BLOB structure

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

Syntax


typedef struct _BCRYPT_DH_KEY_BLOB {
  ULONG dwMagic;
  ULONG cbKey;
} BCRYPT_DH_KEY_BLOB, *PBCRYPT_DH_KEY_BLOB;

Members

dwMagic

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

ValueMeaning
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.

 

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.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Bcrypt.h

See also

BCryptExportKey
BCryptImportKey

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft