Crate abe_policy
source ·Expand description
This crate defines the Policy
logic, the basis for Attribute Based
Encryption (ABE).
A Policy
is a set of axes. Each axis is defined by its name and its list
of associated attribute names.
An Attribute
is composed by an axis name and an attribute name within
this axis.
Structs
An attribute in a policy group is characterized by the axis policy name
and its unique name within this axis.
The
Attributes
struct is used to simplify the parsing of a list of
Attribute
s.A policy is a set of policy axes. A fixed number of attribute creations
(revocations + additions) is allowed.
Defines a policy axis by its name and its underlying attribute properties.
An attribute property defines its name and a hint about whether hybridized
encryption should be used for it (hint set to
true
if this is the case).Enums
An
AccessPolicy
is a boolean expression over attributes.Hint the user about which kind of encryption to use.
Crate error type.