SEcube open-source SDK
Public Member Functions | Private Attributes | Friends | List of all members
group_policy Class Reference

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>

Public Member Functions

 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 ()
 

Private Attributes

uint32_t max_keys
 
uint32_t algorithm
 
uint32_t default_cryptoperiod
 

Friends

class se_group
 

Detailed Description

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.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ 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: