BCRYPT_KEY_LENGTHS_STRUCT structure

The BCRYPT_KEY_LENGTHS_STRUCT structure defines the range of key sizes that are supported by the provider. This structure is used with the BCRYPT_KEY_LENGTHS property.

This structure is also used with the BCRYPT_AUTH_TAG_LENGTH property to contain the minimum, maximum, and increment size of an authentication tag.

Syntax


typedef struct __BCRYPT_KEY_LENGTHS_STRUCT {
  ULONG dwMinLength;
  ULONG dwMaxLength;
  ULONG dwIncrement;
} BCRYPT_KEY_LENGTHS_STRUCT, BCRYPT_AUTH_TAG_LENGTHS_STRUCT;

Members

dwMinLength

The minimum length, in bytes, of a key.

dwMaxLength

The maximum length, in bytes, of a key.

dwIncrement

The number of bytes that the key size can be incremented between dwMinLength and dwMaxLength.

Remarks

The key sizes are given in a range that is inclusive of the minimum and maximum values and are separated by the increment. For example, if the minimum key size is 8 bytes, the maximum key size is 16 bytes, and the increment is 2 bytes, the provider would support key sizes of 8, 10, 12, 14, and 16 bytes.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Bcrypt.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft