package pkcs11

  1. Overview
  2. Docs
type t

Parameters for CKM_AES_KEY_WRAP. Note that the name of this module is not in PKCS11, where it is just described as a nullable pointer.

val equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val show : t -> Ppx_deriving_runtime.string
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val default : t

Use the default IV as specified in the AES-KEYWRAP specification.

val explicit : string -> t

Use this IV. It should be exactly 8 bytes long for PKCS11 compliant DLLs.

val explicit_iv : t -> string option

Return the explicit IV, or None if the default value was used.

OCaml

Innovation. Community. Security.