Module P11_driver.Wrap_low_level_bindings
Parameters
Signature
val initialize : unit -> unitval initialize_nss : params:Pkcs11.Nss_initialize_arg.u -> unitval finalize : unit -> unitval get_info : unit -> P11.Info.tval get_slot : P11.Slot.t -> (P11.Slot_id.t, string) Stdlib.resultval get_slot_list : bool -> P11.Slot_id.t listval get_slot_info : slot:P11.Slot_id.t -> P11.Slot_info.tval get_token_info : slot:P11.Slot_id.t -> P11.Token_info.tval get_mechanism_list : slot:P11.Slot_id.t -> P11.Mechanism_type.t listval get_mechanism_info : slot:P11.Slot_id.t -> P11.Mechanism_type.t -> P11.Mechanism_info.tval init_token : slot:P11.Slot_id.t -> pin:string -> label:string -> unitval init_PIN : P11.Session_handle.t -> pin:string -> unitval set_PIN : P11.Session_handle.t -> oldpin:string -> newpin:string -> unitval open_session : slot:P11.Slot_id.t -> flags:P11.Flags.t -> P11.Session_handle.tval close_session : P11.Session_handle.t -> unitval close_all_sessions : slot:P11.Slot_id.t -> unitval get_session_info : P11.Session_handle.t -> P11.Session_info.tval login : P11.Session_handle.t -> P11.User_type.t -> string -> unitval logout : P11.Session_handle.t -> unitval create_object : P11.Session_handle.t -> P11.Template.t -> P11.Object_handle.tval copy_object : P11.Session_handle.t -> P11.Object_handle.t -> P11.Template.t -> P11.Object_handle.tval destroy_object : P11.Session_handle.t -> P11.Object_handle.t -> unitval get_attribute_value : P11.Session_handle.t -> P11.Object_handle.t -> P11.Attribute_types.t -> P11.Template.tMay request several attributes at the same time.
val get_attribute_value' : P11.Session_handle.t -> P11.Object_handle.t -> P11.Attribute_types.t -> P11.Template.tWill request attributes one by one.
val 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)
val set_attribute_value : P11.Session_handle.t -> P11.Object_handle.t -> P11.Template.t -> unitval find_objects : ?max_size:int -> P11.Session_handle.t -> P11.Template.t -> P11.Object_handle.t listval encrypt : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t -> P11.Data.tval multipart_encrypt_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unitval multipart_encrypt_chunck : P11.Session_handle.t -> P11.Data.t -> P11.Data.tval multipart_encrypt_final : P11.Session_handle.t -> P11.Data.tval multipart_encrypt : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t list -> P11.Data.tval decrypt : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t -> P11.Data.tval multipart_decrypt_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unitval multipart_decrypt_chunck : P11.Session_handle.t -> P11.Data.t -> P11.Data.tval multipart_decrypt_final : P11.Session_handle.t -> P11.Data.tval multipart_decrypt : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t list -> P11.Data.tval sign : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t -> P11.Data.tval sign_recover : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t -> P11.Data.tval multipart_sign_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unitval multipart_sign_chunck : P11.Session_handle.t -> P11.Data.t -> unitval multipart_sign_final : P11.Session_handle.t -> P11.Data.tval multipart_sign : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t list -> P11.Data.tval verify : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> data:P11.Data.t -> signature:P11.Data.t -> unitval verify_recover : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> signature:P11.Data.t -> P11.Data.tval multipart_verify_init : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> unitval multipart_verify_chunck : P11.Session_handle.t -> P11.Data.t -> unitval multipart_verify_final : P11.Session_handle.t -> P11.Data.t -> unitval multipart_verify : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t list -> P11.Data.t -> unitval generate_key : P11.Session_handle.t -> P11.Mechanism.t -> P11.Template.t -> P11.Object_handle.tval generate_key_pair : P11.Session_handle.t -> P11.Mechanism.t -> P11.Template.t -> P11.Template.t -> P11.Object_handle.t * P11.Object_handle.tval wrap_key : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Object_handle.t -> P11.Data.tval unwrap_key : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Data.t -> P11.Template.t -> P11.Object_handle.tval derive_key : P11.Session_handle.t -> P11.Mechanism.t -> P11.Object_handle.t -> P11.Template.t -> P11.Object_handle.tval digest : P11.Session_handle.t -> P11.Mechanism.t -> P11.Data.t -> P11.Data.t