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§

Attribute
An attribute in a policy group is characterized by the axis policy name and its unique name within this axis.
Attributes
The Attributes struct is used to simplify the parsing of a list of Attributes.
LegacyPolicy
Policy
A policy is a set of policy axes. A fixed number of attribute creations (revocations + additions) is allowed.
PolicyAxis
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§

AccessPolicy
An AccessPolicy is a boolean expression over attributes.
EncryptionHint
Hint the user about which kind of encryption to use.
Error
Crate error type.