package pkcs11-driver

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

Module P11_driver.MakeSource

Parameters

module X : Pkcs11.RAW

Signature

Sourceval initialize : unit -> unit
Sourceval finalize : unit -> unit
Sourceval get_info : unit -> P11.Info.t
Sourceval get_slot : P11.Slot.t -> (P11.Slot_id.t, string) result
Sourceval get_slot_list : bool -> P11.Slot_id.t list
Sourceval get_slot_info : slot:P11.Slot_id.t -> P11.Slot_info.t
Sourceval get_token_info : slot:P11.Slot_id.t -> P11.Token_info.t
Sourceval get_mechanism_list : slot:P11.Slot_id.t -> P11.Mechanism_type.t list
Sourceval init_token : slot:P11.Slot_id.t -> pin:string -> label:string -> unit
Sourceval init_PIN : P11.Session_handle.t -> pin:string -> unit
Sourceval set_PIN : P11.Session_handle.t -> oldpin:string -> newpin:string -> unit
Sourceval open_session : slot:P11.Slot_id.t -> flags:P11.Flags.t -> P11.Session_handle.t
Sourceval close_session : P11.Session_handle.t -> unit
Sourceval close_all_sessions : slot:P11.Slot_id.t -> unit
Sourceval login : P11.Session_handle.t -> P11.User_type.t -> string -> unit
Sourceval logout : P11.Session_handle.t -> unit
Sourceval destroy_object : P11.Session_handle.t -> P11.Object_handle.t -> unit

May request several attributes at the same time.

Will request attributes one by one.

Sourceval get_attribute_value_optimized : P11.Attribute_types.t -> [ `Optimized of P11.Session_handle.t -> P11.Object_handle.t -> P11.Template.t ]

Will request several attributes at the same time. (optimized version)

Sourceval set_attribute_value : P11.Session_handle.t -> P11.Object_handle.t -> P11.Template.t -> unit
Sourceval find_objects : ?max_size:int -> P11.Session_handle.t -> P11.Template.t -> P11.Object_handle.t list
Sourceval multipart_encrypt_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unit
Sourceval multipart_encrypt_chunck : P11.Session_handle.t -> P11.Data.t -> P11.Data.t
Sourceval multipart_encrypt_final : P11.Session_handle.t -> P11.Data.t
Sourceval multipart_decrypt_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unit
Sourceval multipart_decrypt_chunck : P11.Session_handle.t -> P11.Data.t -> P11.Data.t
Sourceval multipart_decrypt_final : P11.Session_handle.t -> P11.Data.t
Sourceval multipart_sign_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unit
Sourceval multipart_sign_chunck : P11.Session_handle.t -> P11.Data.t -> unit
Sourceval multipart_sign_final : P11.Session_handle.t -> P11.Data.t
Sourceval multipart_verify_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unit
Sourceval multipart_verify_chunck : P11.Session_handle.t -> P11.Data.t -> unit
Sourceval multipart_verify_final : P11.Session_handle.t -> P11.Data.t -> unit
OCaml

Innovation. Community. Security.