Cryptographic Token Interface Standard

PKCS#11


CK_MECHANISM Reference

CK_MECHANISM; CK_MECHANISM_PTR

CK_MECHANISM is a structure that specifies a particular mechanism and any parameters it requires. 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_ULONG ulParameterLen
 length in bytes of the parameter. More...


Detailed Description

CK_MECHANISM; CK_MECHANISM_PTR

CK_MECHANISM is a structure that specifies a particular mechanism and any parameters it requires.
mechanism the type of mechanism
pParameter pointer to the parameter if required by the mechanism
ulParameterLen length in bytes of the parameter

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

CK_MECHANISM_PTR is a pointer to a CK_MECHANISM.

CK_MECHANISM_INFO; CK_MECHANISM_INFO_PTR

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_ULONG ulParameterLen
 

length in bytes of the parameter.


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