|
libptpmgmt 2.0
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, const 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.
| Spp::Spp | ( | uint8_t | id | ) |
Construct empty SPP
| [in] | id | of SPP |
| bool Spp::addKey | ( | uint32_t | id, |
| HMAC_t | type, | ||
| const Binary & | value, | ||
| size_t | digest, | ||
| bool | replace = true |
||
| ) |
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 |
| bool Spp::have | ( | uint32_t | key | ) | const |
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 |
| size_t Spp::keys | ( | ) | const |
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 |
| uint8_t Spp::ownID | ( | ) | const |
Return own SPP ID