The policy class is used to model a security policy adopted by a group. A policy for a group has 3 features: a maximum number of keys for the group, a common algorithm for all keys belonging to the group, a default cryptoperiod common to all keys belonging to the group.
More...
#include <SEkey.h>
|
| group_policy (uint32_t maxkeys, uint32_t algo, uint32_t cryptoperiod) |
|
uint32_t | get_max_keys () |
|
uint32_t | get_algorithm () |
|
uint32_t | get_default_cryptoperiod () |
|
void | set_max_keys (uint32_t maxkeys) |
|
void | set_default_cryptoperiod (uint32_t cryptoperiod) |
|
void | set_algorithm (uint32_t algo) |
|
bool | isvalid () |
|
The policy class is used to model a security policy adopted by a group. A policy for a group has 3 features: a maximum number of keys for the group, a common algorithm for all keys belonging to the group, a default cryptoperiod common to all keys belonging to the group.
◆ isvalid()
bool group_policy::isvalid |
( |
| ) |
|
A policy is valid if the algorithm is valid, the max number of keys is greater than 0 and the default cryptoperiod is greater than 0.
◆ algorithm
uint32_t group_policy::algorithm |
|
private |
Algorithm used by all keys of this group.
◆ default_cryptoperiod
uint32_t group_policy::default_cryptoperiod |
|
private |
Liveness of the keys of this group.
◆ max_keys
uint32_t group_policy::max_keys |
|
private |
Maximum number of keys for the group.
The documentation for this class was generated from the following files: