Cryptographic Token Interface Standard

PKCS#11


CK_GCM_PARAMS Reference

CK_GCM _PARAMS; CK_GCM _PARAMS_PTR

CK_GCM_PARAMS is a structure that provides the parameters to the CKM_AES_GCM mechanism. More...


Data Fields

CK_BYTE_PTR pIv
 pointer to initialization vector. More...

CK_ULONG ulIvLen
 length of initialization vector in bytes. More...

CK_BYTE_PTR pAAD
 pointer to additional authentication data. More...

CK_ULONG ulAADLen
 length of ''pAAD'' in bytes. More...

CK_ULONG ulTagBits
 length of authentication tag (output following cipher text) in bits. More...


Detailed Description

CK_GCM _PARAMS; CK_GCM _PARAMS_PTR

CK_GCM_PARAMS is a structure that provides the parameters to the CKM_AES_GCM mechanism.
pIv pointer to initialization vector
ulIvLen length of initialization vector in bytes. The length of the initialization vector can be any number between 1 and 256. 96-bit (12 byte) IV values can be processed more efficiently, so that length is recommended for situations in which efficiency is critical.
pAAD pointer to additional authentication data. This data is authenticated but not encrypted''.''
ulAADLen length of ''pAAD'' in bytes.
ulTagBits length of authentication tag (output following cipher text) in bits. Can be any value between 0 and 128.

CK_GCM_PARAMS_PTR is a pointer to a CK_GCM_PARAMS.

CK_CCM _PARAMS; CK_CCM _PARAMS_PTR

CK_CCM_PARAMS is a structure that provides the parameters to the CKM_AES_CCM mechanism. It is defined as follows:


Field Documentation

CK_BYTE_PTR pIv
 

pointer to initialization vector.

CK_ULONG ulIvLen
 

length of initialization vector in bytes. The length of the initialization vector can be any number between 1 and 256. 96-bit (12 byte) IV values can be processed more efficiently, so that length is recommended for situations in which efficiency is critical.

CK_BYTE_PTR pAAD
 

pointer to additional authentication data. This data is authenticated but not encrypted''.''

CK_ULONG ulAADLen
 

length of ''pAAD'' in bytes.

CK_ULONG ulTagBits
 

length of authentication tag (output following cipher text) in bits. Can be any value between 0 and 128.


RSA Security Inc. Public-Key Cryptography Standards - PKCS#11 - v230