libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
authentication security parameters More...
#include <cfg.h>
Public Member Functions | |
bool | addKey (uint32_t id, HMAC_t type, Binary &value, size_t digest, bool replace=true) |
bool | have (uint32_t key) const |
size_t | mac_size (uint32_t key) const |
const Binary & | key (uint32_t key) const |
size_t | keys () const |
HMAC_t | htype (uint32_t key) const |
uint8_t | ownID () const |
Spp (uint8_t id) | |
authentication security parameters
Pool of authentication keys, used by the Massage class to calculate the Integrity Check Value (ICV) in the authentication TLV.
|
inline |
Construct empty SPP
[in] | id | of SPP |
Set a new key
[in] | id | id the Key |
[in] | type | of the key |
[in] | value | of the key |
[in] | digest | size to use with the key |
[in] | replace | an existing key if exist |
|
inline |
Verify key exist
[in] | key | ID |
HMAC_t Spp::htype | ( | uint32_t | key | ) | const |
Get key type
[in] | key | ID |
const Binary& Spp::key | ( | uint32_t | key | ) | const |
Get key
[in] | key | ID |
|
inline |
Get number of keys
size_t Spp::mac_size | ( | uint32_t | key | ) | const |
Get MAC digest size to use with the key
[in] | key | ID |
|
inline |
Return own SPP ID