BCRYPT_DSA_PARAMETER_HEADER_V2 structure

The BCRYPT_DSA_PARAMETER_HEADER_V2 structure is contains parameter header information for a Digital Signature Algorithm (DSA) key. This structure is used with the BCRYPT_DSA_PARAMETERS property in the BCryptSetProperty function.

Syntax


typedef struct _BCRYPT_DSA_PARAMETER_HEADER_V2 {
  ULONG               cbLength;
  ULONG               dwMagic;
  ULONG               cbKeyLength;
  HASHALGORITHM_ENUM  hashAlgorithm;
  DSAFIPSVERSION_ENUM standardVersion;
  ULONG               cbSeedLength;
  ULONG               cbGroupSize;
  UCHAR               Count[4];
} BCRYPT_DSA_PARAMETER_HEADER_V2, *PBCRYPT_DSA_PARAMETER_HEADER_V2;

Members

cbLength

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

dwMagic

The magic value for the key.

This member must be the following value.

BCRYPT_DSA_PARAMETERS_MAGIC_V2 (0x324d5044)
cbKeyLength

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

hashAlgorithm

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

standardVersion

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

cbSeedLength

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

cbGroupSize

Size of the prime number q . Currently, if the key is less than 128 bits, q is 20 bytes long. If the key exceeds 256 bits, q is 32 bytes long.

Count

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

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Bcrypt.h

See also

BCryptSetProperty
Cryptography Primitive Property Identifiers

 

 

Show: