![]() |
0.01.00
|
Public Types | |
enum | { kMaxKeyLength = 16 } |
Public Member Functions | |
KeyManager (otInstance &aInstance) | |
This constructor initializes the object. More... | |
void | Start (void) |
This method starts KeyManager rotation timer and sets guard timer to initial value. | |
void | Stop (void) |
This method stops KeyManager timers. | |
const otMasterKey & | GetMasterKey (void) const |
This method returns a reference to the Thread Master Key. More... | |
otError | SetMasterKey (const otMasterKey &aKey) |
This method sets the Thread Master Key. More... | |
const uint8_t * | GetPSKc (void) const |
This method returns a pointer to the PSKc. More... | |
void | SetPSKc (const uint8_t *aPSKc) |
This method sets the PSKc. More... | |
uint32_t | GetCurrentKeySequence (void) const |
This method returns the current key sequence value. More... | |
void | SetCurrentKeySequence (uint32_t aKeySequence) |
This method sets the current key sequence value. More... | |
const uint8_t * | GetCurrentMacKey (void) const |
This method returns a pointer to the current MAC key. More... | |
const uint8_t * | GetCurrentMleKey (void) const |
This method returns a pointer to the current MLE key. More... | |
const uint8_t * | GetTemporaryMacKey (uint32_t aKeySequence) |
This method returns a pointer to a temporary MAC key computed from the given key sequence. More... | |
const uint8_t * | GetTemporaryMleKey (uint32_t aKeySequence) |
This method returns a pointer to a temporary MLE key computed from the given key sequence. More... | |
uint32_t | GetMacFrameCounter (void) const |
This method returns the current MAC Frame Counter value. More... | |
void | SetMacFrameCounter (uint32_t aMacFrameCounter) |
This method sets the current MAC Frame Counter value. More... | |
void | SetStoredMacFrameCounter (uint32_t aStoredMacFrameCounter) |
This method sets the MAC Frame Counter value which is stored in non-volatile memory. More... | |
void | IncrementMacFrameCounter (void) |
This method increments the current MAC Frame Counter value. | |
uint32_t | GetMleFrameCounter (void) const |
This method returns the current MLE Frame Counter value. More... | |
void | SetMleFrameCounter (uint32_t aMleFrameCounter) |
This method sets the current MLE Frame Counter value. More... | |
void | SetStoredMleFrameCounter (uint32_t aStoredMleFrameCounter) |
This method sets the MLE Frame Counter value which is stored in non-volatile memory. More... | |
void | IncrementMleFrameCounter (void) |
This method increments the current MLE Frame Counter value. | |
const uint8_t * | GetKek (void) const |
This method returns the KEK. More... | |
void | SetKek (const uint8_t *aKek) |
This method sets the KEK. More... | |
uint32_t | GetKekFrameCounter (void) const |
This method returns the current KEK Frame Counter value. More... | |
void | IncrementKekFrameCounter (void) |
This method increments the current KEK Frame Counter value. | |
uint32_t | GetKeyRotation (void) const |
This method returns the KeyRotation time. More... | |
otError | SetKeyRotation (uint32_t aKeyRotation) |
This method sets the KeyRotation time. More... | |
uint32_t | GetKeySwitchGuardTime (void) const |
This method returns the KeySwitchGuardTime. More... | |
void | SetKeySwitchGuardTime (uint32_t aKeySwitchGuardTime) |
This method sets the KeySwitchGuardTime. More... | |
uint8_t | GetSecurityPolicyFlags (void) const |
This method returns the Security Policy Flags. More... | |
void | SetSecurityPolicyFlags (uint8_t aSecurityPolicyFlags) |
This method sets the Security Policy Flags. More... | |
![]() | |
otInstance & | GetInstance (void) const |
This method returns a reference to the parent otInstance structure. More... | |
Ip6::Ip6 & | GetIp6 (void) const |
This method returns a reference to the Ip6. More... | |
ThreadNetif & | GetNetif (void) const |
This method returns a reference to the thread network interface. More... | |
Additional Inherited Members | |
![]() | |
InstanceLocator (otInstance &aInstance) | |
This constructor initializes the object. More... | |
|
explicit |
This constructor initializes the object.
[in] | aInstance | A reference to the OpenThread instance. |
|
inline |
This method returns the current key sequence value.
|
inline |
This method returns a pointer to the current MAC key.
|
inline |
This method returns a pointer to the current MLE key.
|
inline |
This method returns the KEK.
|
inline |
This method returns the current KEK Frame Counter value.
|
inline |
This method returns the KeyRotation time.
The KeyRotation time is the time interval after witch security key will be automatically rotated.
|
inline |
This method returns the KeySwitchGuardTime.
The KeySwitchGuardTime is the time interval during which key rotation procedure is prevented.
|
inline |
This method returns the current MAC Frame Counter value.
const otMasterKey & ot::KeyManager::GetMasterKey | ( | void | ) | const |
This method returns a reference to the Thread Master Key.
|
inline |
This method returns the current MLE Frame Counter value.
const uint8_t* ot::KeyManager::GetPSKc | ( | void | ) | const |
This method returns a pointer to the PSKc.
|
inline |
This method returns the Security Policy Flags.
The Security Policy Flags specifies network administrator preferences for which security-related operations are allowed or disallowed.
const uint8_t * ot::KeyManager::GetTemporaryMacKey | ( | uint32_t | aKeySequence | ) |
This method returns a pointer to a temporary MAC key computed from the given key sequence.
[in] | aKeySequence | The key sequence value. |
const uint8_t * ot::KeyManager::GetTemporaryMleKey | ( | uint32_t | aKeySequence | ) |
This method returns a pointer to a temporary MLE key computed from the given key sequence.
[in] | aKeySequence | The key sequence value. |
void ot::KeyManager::SetCurrentKeySequence | ( | uint32_t | aKeySequence | ) |
This method sets the current key sequence value.
[in] | aKeySequence | The key sequence value. |
void ot::KeyManager::SetKek | ( | const uint8_t * | aKek | ) |
This method sets the KEK.
[in] | aKek | A pointer to the KEK. |
otError ot::KeyManager::SetKeyRotation | ( | uint32_t | aKeyRotation | ) |
This method sets the KeyRotation time.
The KeyRotation time is the time interval after witch security key will be automatically rotated. Its value shall be larger than or equal to kMinKeyRotationTime.
[in] | aKeyRotation | The KeyRotation value in hours. |
OT_ERROR_NONE | KeyRotation time updated. |
OT_ERROR_INVALID_ARGS | aKeyRotation is out of range. |
|
inline |
This method sets the KeySwitchGuardTime.
The KeySwitchGuardTime is the time interval during which key rotation procedure is prevented.
[in] | aKeySwitchGuardTime | The KeySwitchGuardTime value in hours. |
|
inline |
This method sets the current MAC Frame Counter value.
[in] | aMacFrameCounter | The MAC Frame Counter value. |
otError ot::KeyManager::SetMasterKey | ( | const otMasterKey & | aKey | ) |
This method sets the Thread Master Key.
[in] | aKey | A reference to the Thread Master Key. |
OT_ERROR_NONE | Successfully set the Thread Master Key. |
OT_ERROR_INVALID_ARGS | The aKeyLength value was invalid. |
|
inline |
This method sets the current MLE Frame Counter value.
[in] | aMleFrameCounter | The MLE Frame Counter value. |
void ot::KeyManager::SetPSKc | ( | const uint8_t * | aPSKc | ) |
This method sets the PSKc.
[in] | aPSKc | A pointer to the PSKc. |
|
inline |
This method sets the Security Policy Flags.
The Security Policy Flags specifies network administrator preferences for which security-related operations are allowed or disallowed.
[in] | aSecurityPolicyFlags | The Security Policy Flags. |
|
inline |
This method sets the MAC Frame Counter value which is stored in non-volatile memory.
[in] | aStoredMacFrameCounter | The stored MAC Frame Counter value. |
|
inline |
This method sets the MLE Frame Counter value which is stored in non-volatile memory.
[in] | aStoredMleFrameCounter | The stored MLE Frame Counter value. |