package pkcs11

  1. Overview
  2. Docs
Bindings to the PKCS#11 cryptographic API

Install

Dune Dependency

Authors

Maintainers

Sources

pkcs11-0.16.0.tbz
sha256=ff7078b01af18bb7107400304b092b7aec899aaa7adaf36d36ed9ac06e2bfa97
md5=2cbd89bd4a81aa97a02918f18c09fee7

doc/pkcs11/P11_load_mode/index.html

Module P11_load_mode

type t = private
  1. | Auto
  2. | Stubs
  3. | FFI

How the interaction is done with the DLL.

val equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val ffi : t

Call directly each symbol using libffi.

val stubs : t

Use C stubs to load the DLL using dlopen, and call each symbol through C_GetFunctionList.

  • deprecated
val auto : t

Call C_GetFunctionList using libffi. For each symbol, try to access it through the returned function list. Otherwise, call the symbol directly.

OCaml

Innovation. Community. Security.