Cryptographic Token Interface Standard

PKCS#11


CK_MECHANISM Reference

CK_MECHANISM

CK_MECHANISM is a structure that specifies a particular mechanism. More...


Data Fields

CK_MECHANISM_TYPE mechanism
 the type of mechanism. More...

CK_VOID_PTR pParameter
 pointer to the parameter if required by the mechanism. More...

CK_USHORT usParameterLen
 length in bytes of the parameter. More...


Detailed Description

CK_MECHANISM

CK_MECHANISM is a structure that specifies a particular mechanism.
mechanism the type of mechanism
pParameter pointer to the parameter if required by the mechanism
usParameterLen length in bytes of the parameter

Note that pParameter is an "void" pointer, facilitating the passing of arbitrary values. Both the application and Cryptoki library must ensure that the pointer can be safely cast to the expected type (e.g., without word-alignment errors).

CK_MECHANISM_PTR

CK_MECHANISM_PTR points to a CK_MECHANISM structure. It is implementation dependent.

CK_MECHANISM_INFO

CK_MECHANISM_INFO is a structure that provides information about a particular mechanism. It is defined as follows:


Field Documentation

CK_MECHANISM_TYPE mechanism
 

the type of mechanism.

CK_VOID_PTR pParameter
 

pointer to the parameter if required by the mechanism.

CK_USHORT usParameterLen
 

length in bytes of the parameter.


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