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§
- Attribute
- An attribute in a policy group is characterized by the axis policy name and its unique name within this axis.
- Attributes
- The
Attributesstruct is used to simplify the parsing of a list ofAttributes. - Legacy
Policy - Policy
- A policy is a set of policy axes. A fixed number of attribute creations (revocations + additions) is allowed.
- Policy
Axis - 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
trueif this is the case).
Enums§
- Access
Policy - An
AccessPolicyis a boolean expression over attributes. - Encryption
Hint - Hint the user about which kind of encryption to use.
- Error
- Crate error type.