package pkcs11
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=db6bed28e4a75cb3787d0b6feca954a91c9e52e678b8cc73c1058975b1846946
sha512=f764b356cac3dd7718003a158f2a4dad7b8caae981930ab9cfa674a08ebcf3583c531bfcca9ddbb593d0c8e5a64b52381f8c9c702c3a0d0d44000727b095c47a
doc/pkcs11/P11_template/index.html
Module P11_template
Source
Return the value of the first occurrence of an attribute.
set_attribute attribute template
replaces the value of attribute
in template
if it already exists and adds attribute
otherwise.
remove_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.
remove_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.
only_attribute_types attr_types template
keeps only the attributes in template
that are present in attr_types
.
except_attribute_types attr_types template
removes all the attributes in template
that are present in attr_types
.
find_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
.
diff 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.