Cryptoki: a cryptographic Token Interface


PKCS #5 and PKCS #5-style password-based encryption mechanisms



Download 360.55 Kb.
Page176/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   172   173   174   175   176   177   178   179   ...   196
v201-95
pkcs11-base-v2.40-cos01
CK_PBE_PARAMS_PTR is a pointer to a CK_PBE_PARAMS.

11.29. PKCS #5 and PKCS #5-style password-based encryption mechanisms


The mechanisms in this section are for generating keys and IVs for performing password-based encryption. The method used to generate keys and IVs is specified in PKCS #5.

11.29.1. MD2-PBE for DES-CBC


MD2-PBE for DES-CBC, denoted CKM_PBE_MD2_DES_CBC, is a mechanism used for generating a DES secret key and an IV from a password and a salt value by using the MD2 digest algorithm and an iteration count. This functionality is defined in PKCS#5.
It has a parameter, a CK_PBE_PARAMS structure. The parameter specifies the input information for the key generation process and the location of the application-supplied buffer which will receive the 8-byte IV generated by the mechanism.

11.29.2. MD5-PBE for DES-CBC


MD5-PBE for DES-CBC, denoted CKM_PBE_MD5_DES_CBC, is a mechanism used for generating a DES secret key and an IV from a password and a salt value by using the MD5 digest algorithm and an iteration count. This functionality is defined in PKCS#5.
It has a parameter, a CK_PBE_PARAMS structure. The parameter specifies the input information for the key generation process and the location of the application-supplied buffer which will receive the 8-byte IV generated by the mechanism.

11.29.3. MD5-PBE for CAST-CBC


MD5-PBE for CAST-CBC, denoted CKM_PBE_MD5_CAST_CBC, is a mechanism used for generating a CAST secret key and an IV from a password and a salt value by using the MD5 digest algorithm and an iteration count. This functionality is analogous to that defined in PKCS#5 for MD5 and DES.
It has a parameter, a CK_PBE_PARAMS structure. The parameter specifies the input information for the key generation process and the location of the application-supplied buffer which will receive the 8-byte IV generated by the mechanism.
The length of the CAST key generated by this mechanism may be specified in the supplied template; if it is not present in the template, it defaults to 8 bytes.

Download 360.55 Kb.

Share with your friends:
1   ...   172   173   174   175   176   177   178   179   ...   196




The database is protected by copyright ©ininet.org 2024
send message

    Main page