Skip to content

Latest commit

 

History

History
126 lines (85 loc) · 4.61 KB

ns-bcrypt-bcrypt_dsa_parameter_header_v2.md

File metadata and controls

126 lines (85 loc) · 4.61 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_PARAMETER_HEADER_V2
BCRYPT_DSA_PARAMETER_HEADER_V2 (bcrypt.h)
Contains parameter header information for a Digital Signature Algorithm (DSA) key.
BCRYPT_DSA_PARAMETERS_MAGIC_V2
BCRYPT_DSA_PARAMETER_HEADER_V2
BCRYPT_DSA_PARAMETER_HEADER_V2 structure [Security]
PBCRYPT_DSA_PARAMETER_HEADER_V2
PBCRYPT_DSA_PARAMETER_HEADER_V2 structure pointer [Security]
bcrypt/BCRYPT_DSA_PARAMETER_HEADER_V2
bcrypt/PBCRYPT_DSA_PARAMETER_HEADER_V2
security.bcrypt_dsa_parameter_header_v2
security\bcrypt_dsa_parameter_header_v2.htm
security
25FF89D8-1E3E-433B-AC5C-1CADC09A49D0
12/05/2018
BCRYPT_DSA_PARAMETERS_MAGIC_V2, BCRYPT_DSA_PARAMETER_HEADER_V2, BCRYPT_DSA_PARAMETER_HEADER_V2 structure [Security], PBCRYPT_DSA_PARAMETER_HEADER_V2, PBCRYPT_DSA_PARAMETER_HEADER_V2 structure pointer [Security], bcrypt/BCRYPT_DSA_PARAMETER_HEADER_V2, bcrypt/PBCRYPT_DSA_PARAMETER_HEADER_V2, security.bcrypt_dsa_parameter_header_v2
bcrypt.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Windows
BCRYPT_DSA_PARAMETER_HEADER_V2
19H1
_BCRYPT_DSA_PARAMETER_HEADER_V2
bcrypt/_BCRYPT_DSA_PARAMETER_HEADER_V2
BCRYPT_DSA_PARAMETER_HEADER_V2
bcrypt/BCRYPT_DSA_PARAMETER_HEADER_V2
c++
APIRef
kbSyntax
HeaderDef
Bcrypt.h
BCRYPT_DSA_PARAMETER_HEADER_V2

BCRYPT_DSA_PARAMETER_HEADER_V2 structure

-description

The BCRYPT_DSA_PARAMETER_HEADER_V2 structure is used as a header for a Digital Signature Algorithm (DSA) parameters BLOB containing information for generating a DSA key. This structure is used with the BCRYPT_DSA_PARAMETERS property in the BCryptSetProperty function.

-struct-fields

-field cbLength

The total size, in bytes, of this structure and the buffer that immediately follows this structure in memory.

-field dwMagic

The magic value for the key.

This member must be the following value.

BCRYPT_DSA_PARAMETERS_MAGIC_V2 (0x324d5044)

-field cbKeyLength

The size, in bytes, of the key that this structure applies to.

-field hashAlgorithm

A HASHALGORITHM_ENUM enumeration value that specifies the hashing algorithm to use.

-field standardVersion

A DSAFIPSVERSION_ENUM enumeration value that specifies the Federal Information Processing Standard (FIPS) to apply.

-field cbSeedLength

Length of the seed used to generate the prime number q in bytes.

-field cbGroupSize

Size of the prime number q. Currently, when the key exceeds 1024 bits in length, q is 32 bytes long.

-field Count

The number of iterations performed to generate the prime number q from the seed. For more information, see NIST standard FIPS186-3.

-remarks

When using this structure in a BCryptSetProperty call, to set the parameters for a DSA key created in a BCryptGenerateKeyPair call, (cbKeyLength*8) must equal the previously set dwLength.

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

This structure is used as a header for a larger buffer. The DSA parameters blob has the following format in contiguous memory. The Seed, q, Modulus, and Generator are in big-endian format.

BCRYPT_DSA_PARAMETER_HEADER_V2
Seed[cbSeedLength]      // Big-endian.
q[cbGroupSize]          // Big-endian.
Modulus[cbKeyLength]    // Big-endian.
Generator[cbKeyLength]  // Big-endian.

-see-also

BCryptGenerateKeyPair

BCryptSetProperty

Cryptography Primitive Property Identifiers