package pkcs11
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8a06bfbfead8ddebd8d0dc1f1afacdd77c6a3da64ce3102b7552757b94ec6e15
md5=7d98e56992ea786ad075b980086f7d12
doc/pkcs11/P11_template/index.html
Module P11_template
type t = P11_attribute.pack listval equal : t -> t -> Ppx_deriving_runtime.boolval compare : t -> t -> Ppx_deriving_runtime.intval pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unitval show : t -> Ppx_deriving_runtime.stringval to_yojson : t -> Yojson.Safe.tval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_orval to_string : t -> stringval get : t -> 'a P11_attribute_type.t -> 'a optionReturn the value of the first occurrence of an attribute.
val get_pack : t -> P11_attribute_type.pack -> P11_attribute.pack optionval mem : P11_attribute.pack -> t -> boolval attribute_types : t -> P11_attribute_type.pack listval set_attribute : P11_attribute.pack -> t -> tset_attribute attribute template replaces the value of attribute in template if it already exists and adds attribute otherwise.
val remove_attribute : P11_attribute.pack -> t -> tremove_attribute attribute template removes the value attribute from template if present. If the attribute_type of attribute is present with a different value, does nothing.
val remove_attribute_type : P11_attribute_type.pack -> t -> tremove_attribute attribute_type template removes the attribute type attribute_type from template if present with any value.
Iterate one of the above operation. Same as List.fold_right
union template1 template2 concatenates the templates. If an attribute is present in both template1 and template2, the value in template1 is kept.
val only_attribute_types : P11_attribute_type.pack list -> t -> tonly_attribute_types attr_types template keeps only the attributes in template that are present in attr_types.
val except_attribute_types : P11_attribute_type.pack list -> t -> texcept_attribute_types attr_types template removes all the attributes in template that are present in attr_types.
val find_attribute_types : P11_attribute_type.pack list -> t -> t optionfind_attribute_types l template look up for the value of each attribute type in the list l in template. Return None if one or several attribute types cannot be found in template.
correspond source tested check if tested match source. It means that it will return true if All the elements in source are present in tested.
val diff :
source:t ->
tested:t ->
P11_attribute.pack list * P11_attribute.pack listdiff source tested search for all the elements of source that are not equal to an element of tested.
It returns a tuple with the list of elements from source which are expected but not found in tested and a list of elements which are found but with a different value.
hash template creates a digest from a template.
It sorts the elements of the template to be sure to have the same digest for two templates that have attributes in different orders.
Accessors
val get_class : t -> P11_object_class.t optionval get_key_type : t -> P11_key_type.t optionval get_label : t -> string option