CRYPT_PKCS12_PBE_PARAMS structure

The CRYPT_PKCS12_PBE_PARAMS structure contains parameters used to create an encryption key, initialization vector (IV), or Message Authentication Code (MAC) key for a PKCS #12 password based encryption algorithm.

Syntax


typedef struct _CRYPT_PKCS12_PBE_PARAMS {
  int   iIterations;
  ULONG cbSalt;
} CRYPT_PKCS12_PBE_PARAMS;

Members

iIterations

An integer that specifies the number of hashes of the password and salt that are used to create the key.

cbSalt

An integer that specifies the size, in bytes, of the salt used to create the key.

Remarks

The buffer that contains the salt immediately follows the CRYPT_PKCS12_PBE_PARAMS structure.

The NCryptExportKey and NCryptImportKey functions consume the CRYPT_PKCS12_PBE_PARAMS structure as an NCryptBuffer structure in the pParameterList parameter.

The PKCS #12 standard recommends a value of 1024 or greater for the iIterations member.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wincrypt.h

 

 

Show: