package pkcs11-driver

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Low-level bindings directly wrap the Ctypes function calls. The only functions available are the ones in the PKCS#11 interface specification. Functions expect to be passed and return CK_* types, and argument types exactly reflect those in the PKCS#11 specification.

val c_GetFunctionList : CK_FUNCTION_LIST.t Ctypes.ptr Ctypes.ptr -> CK_RV.t
val c_Initialize : CK_VOID.t Ctypes.ptr -> CK_RV.t
val c_Finalize : CK_VOID.t Ctypes.ptr -> CK_RV.t
val c_GetInfo : CK_INFO.t Ctypes.ptr -> CK_RV.t
val c_GetTokenInfo : CK_SLOT_ID.t -> CK_TOKEN_INFO.t Ctypes.ptr -> CK_RV.t
val c_GetSlotInfo : CK_SLOT_ID.t -> CK_SLOT_INFO.t Ctypes.ptr -> CK_RV.t
val c_CloseSession : CK_SESSION_HANDLE.t -> CK_RV.t
val c_CloseAllSessions : CK_SLOT_ID.t -> CK_RV.t
val c_Logout : CK_SESSION_HANDLE.t -> CK_RV.t
val c_DestroyObject : CK_SESSION_HANDLE.t -> CK_OBJECT_HANDLE.t -> CK_RV.t
val c_FindObjectsFinal : CK_SESSION_HANDLE.t -> CK_RV.t
val c_GetFunctionStatus : CK_SESSION_HANDLE.t -> CK_RV.t
val c_CancelFunction : CK_SESSION_HANDLE.t -> CK_RV.t
val c_WaitForSlotEvent : CK_FLAGS.t -> CK_SLOT_ID.t Ctypes.ptr -> CK_VOID.t Ctypes.ptr -> CK_RV.t