Skip to content

Latest commit

 

History

History
144 lines (110 loc) · 4.18 KB

ns-bcrypt-bcrypt_dsa_key_blob.md

File metadata and controls

144 lines (110 loc) · 4.18 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_DSA_KEY_BLOB
BCRYPT_DSA_KEY_BLOB (bcrypt.h)
Used as a header for a Digital Signature Algorithm (DSA) public key or private key BLOB in memory. (BCRYPT_DSA_KEY_BLOB)
*PBCRYPT_DSA_KEY_BLOB
BCRYPT_DSA_KEY_BLOB
BCRYPT_DSA_KEY_BLOB structure [Security]
BCRYPT_DSA_PRIVATE_MAGIC
BCRYPT_DSA_PUBLIC_MAGIC
PBCRYPT_DSA_KEY_BLOB
PBCRYPT_DSA_KEY_BLOB structure pointer [Security]
bcrypt/BCRYPT_DSA_KEY_BLOB
bcrypt/PBCRYPT_DSA_KEY_BLOB
security.bcrypt_dsa_key_blob
security\bcrypt_dsa_key_blob.htm
security
3db36170-106e-49c8-9866-e25759bdd7f9
12/05/2018
*PBCRYPT_DSA_KEY_BLOB, BCRYPT_DSA_KEY_BLOB, BCRYPT_DSA_KEY_BLOB structure [Security], BCRYPT_DSA_PRIVATE_MAGIC, BCRYPT_DSA_PUBLIC_MAGIC, PBCRYPT_DSA_KEY_BLOB, PBCRYPT_DSA_KEY_BLOB structure pointer [Security], bcrypt/BCRYPT_DSA_KEY_BLOB, bcrypt/PBCRYPT_DSA_KEY_BLOB, security.bcrypt_dsa_key_blob
bcrypt.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
BCRYPT_DSA_KEY_BLOB, *PBCRYPT_DSA_KEY_BLOB
19H1
_BCRYPT_DSA_KEY_BLOB
bcrypt/_BCRYPT_DSA_KEY_BLOB
PBCRYPT_DSA_KEY_BLOB
bcrypt/PBCRYPT_DSA_KEY_BLOB
BCRYPT_DSA_KEY_BLOB
bcrypt/BCRYPT_DSA_KEY_BLOB
c++
APIRef
kbSyntax
HeaderDef
Bcrypt.h
BCRYPT_DSA_KEY_BLOB

BCRYPT_DSA_KEY_BLOB structure

-description

The BCRYPT_DSA_KEY_BLOB structure is used as a header for a Digital Signature Algorithm (DSA) 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_DSA_PUBLIC_MAGIC
0x42505344
The structure represents a DSA public key.
BCRYPT_DSA_PRIVATE_MAGIC
0x56505344
The structure represents a DSA private key.

-field cbKey

The length, in bytes, of the key.

-field Count

The number of iterations, in big-endian format, used to generate q.

-field Seed

The seed value, in big-endian format, used to generate q.

-field q

The 160-bit prime factor, in big-endian format.

-remarks

The structure applies to DSA keys that equal or exceed 512 bits in length but are less than or equal to 1024 bits.

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

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

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

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

-see-also

BCryptExportKey

BCryptImportKeyPair