Pkcs11SourceLow-level PKCS#11 bindings.
module CK_AES_CBC_ENCRYPT_DATA_PARAMS =
Pkcs11_CBC_ENCRYPT_DATA_PARAMS.CK_AES_CBC_ENCRYPT_DATA_PARAMSmodule CK_DES_CBC_ENCRYPT_DATA_PARAMS =
Pkcs11_CBC_ENCRYPT_DATA_PARAMS.CK_DES_CBC_ENCRYPT_DATA_PARAMSmodule CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE =
Pkcs11_CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPEFunction lists.
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.
A low-level wrapper wraps low-level bindings. Only functions in the PKCS#11 interface are available. Functions expect to mostly take and return CK_* types, but some arguments are named, use ocaml builtin types or are removed for convenience (for example the void ptr used by c_Initialize is replaced by unit).
val load_driver :
?log_calls:(string * Format.formatter) ->
?on_unknown:(string -> unit) ->
?load_mode:P11.Load_mode.t ->
string ->
(module LOW_LEVEL_BINDINGS)on_unknown will be called with a warning message when unsupported codes are encountered.