Home
last modified time | relevance | path

Searched refs:KeyManager (Results 1 – 18 of 18) sorted by relevance

/openthread-3.7.0/src/core/thread/
Dkey_manager.cpp51 const uint8_t KeyManager::kThreadString[] = {
56 const uint8_t KeyManager::kHkdfExtractSaltString[] = {'T', 'h', 'r', 'e', 'a', 'd', 'S', 'e', 'q', …
59 const uint8_t KeyManager::kTrelInfoString[] = {'T', 'h', 'r', 'e', 'a', 'd', 'O', 'v', 'e',
172 KeyManager::KeyManager(Instance &aInstance) in KeyManager() function in ot::KeyManager
205 void KeyManager::Start(void) in Start()
211 void KeyManager::Stop(void) { mKeyRotationTimer.Stop(); } in Stop()
213 void KeyManager::SetPskc(const Pskc &aPskc) in SetPskc()
234 void KeyManager::ResetFrameCounters(void) in ResetFrameCounters()
266 void KeyManager::SetNetworkKey(const NetworkKey &aNetworkKey) in SetNetworkKey()
293 void KeyManager::ComputeKeys(uint32_t aKeySequence, HashKeys &aHashKeys) const in ComputeKeys()
[all …]
Dkey_manager.hpp220 class KeyManager : public InstanceLocator, private NonCopyable class
241 explicit KeyManager(Instance &aInstance);
636 using RotationTimer = TimerMilliIn<KeyManager, &KeyManager::HandleKeyRotationTimer>;
Dmle.cpp205 Get<KeyManager>().Start(); in Start()
245 Get<KeyManager>().Stop(); in Stop()
374 Get<KeyManager>().SetCurrentKeySequence(networkInfo.GetKeySequence(), KeyManager::kForceUpdate); in Restore()
375 Get<KeyManager>().SetMleFrameCounter(networkInfo.GetMleFrameCounter()); in Restore()
376 …Get<KeyManager>().SetAllMacFrameCounters(networkInfo.GetMacFrameCounter(), /* aSetIfLarger */ fals… in Restore()
502 networkInfo.SetKeySequence(Get<KeyManager>().GetCurrentKeySequence()); in Store()
503 … networkInfo.SetMleFrameCounter(Get<KeyManager>().GetMleFrameCounter() + kStoreFrameCounterAhead); in Store()
504 …networkInfo.SetMacFrameCounter(Get<KeyManager>().GetMaximumMacFrameCounter() + kStoreFrameCounterA… in Store()
509 Get<KeyManager>().SetStoredMleFrameCounter(networkInfo.GetMleFrameCounter()); in Store()
510 Get<KeyManager>().SetStoredMacFrameCounter(networkInfo.GetMacFrameCounter()); in Store()
[all …]
Dmle_router.cpp122 const SecurityPolicy &secPolicy = Get<KeyManager>().GetSecurityPolicy(); in IsRouterEligible()
2722 if (Get<KeyManager>().GetSecurityPolicy().mNativeCommissioningEnabled) in SendDiscoveryResponse()
2735 if (Get<KeyManager>().GetSecurityPolicy().mCommercialCommissioningEnabled) in SendDiscoveryResponse()
/openthread-3.7.0/src/core/mac/
Dmac_links.cpp195 ExitNow(key = &Get<KeyManager>().GetCurrentTrelMacKey()); in GetCurrentMacKey()
220 if (aKeySequence == Get<KeyManager>().GetCurrentKeySequence() - 1) in GetTemporaryMacKey()
224 else if (aKeySequence == Get<KeyManager>().GetCurrentKeySequence() + 1) in GetTemporaryMacKey()
240 ExitNow(key = &Get<KeyManager>().GetTemporaryTrelMacKey(aKeySequence)); in GetTemporaryMacKey()
262 aFrame.SetFrameCounter(Get<KeyManager>().GetTrelMacFrameCounter()); in SetMacFrameCounter()
263 Get<KeyManager>().IncrementTrelMacFrameCounter(); in SetMacFrameCounter()
Dsub_mac_callbacks.cpp111 Get<KeyManager>().MacFrameCounterUsed(aFrameCounter); in FrameCounterUsed()
Dmac.cpp124 Get<KeyManager>().UpdateKeyMaterial(); in Mac()
851 KeyManager &keyManager = Get<KeyManager>(); in ProcessTransmitSecurity()
1521 KeyManager &keyManager = Get<KeyManager>(); in ProcessReceiveSecurity()
1644 keyManager.SetCurrentKeySequence(keySequence, KeyManager::kApplyKeySwitchGuard); in ProcessReceiveSecurity()
1666 KeyManager &keyManager = Get<KeyManager>(); in ProcessEnhAckSecurity()
/openthread-3.7.0/src/core/api/
Dthread_api.cpp101 AsCoreType(aInstance).Get<KeyManager>().GetNetworkKey(AsCoreType(aNetworkKey)); in otThreadGetNetworkKey()
107 return AsCoreType(aInstance).Get<KeyManager>().GetNetworkKeyRef(); in otThreadGetNetworkKeyRef()
118 instance.Get<KeyManager>().SetNetworkKey(AsCoreType(aKey)); in otThreadSetNetworkKey()
137 instance.Get<KeyManager>().SetNetworkKeyRef((aKeyRef)); in otThreadSetNetworkKeyRef()
273 return AsCoreType(aInstance).Get<KeyManager>().GetCurrentKeySequence(); in otThreadGetKeySequenceCounter()
278 …AsCoreType(aInstance).Get<KeyManager>().SetCurrentKeySequence(aKeySequenceCounter, KeyManager::kFo… in otThreadSetKeySequenceCounter()
283 return AsCoreType(aInstance).Get<KeyManager>().GetKeySwitchGuardTime(); in otThreadGetKeySwitchGuardTime()
288 AsCoreType(aInstance).Get<KeyManager>().SetKeySwitchGuardTime(aKeySwitchGuardTime); in otThreadSetKeySwitchGuardTime()
Dthread_ftd_api.cpp298 AsCoreType(aInstance).Get<KeyManager>().GetPskc(AsCoreType(aPskc)); in otThreadGetPskc()
302 otPskcRef otThreadGetPskcRef(otInstance *aInstance) { return AsCoreType(aInstance).Get<KeyManager>(… in otThreadGetPskcRef()
311 AsCoreType(aInstance).Get<KeyManager>().SetPskc(AsCoreType(aPskc)); in otThreadSetPskc()
328 instance.Get<KeyManager>().SetPskcRef(aKeyRef); in otThreadSetPskcRef()
/openthread-3.7.0/src/core/instance/
Dinstance.cpp420 Get<KeyManager>().DestroyTemporaryKeys(); in Finalize()
448 Get<KeyManager>().DestroyTemporaryKeys(); in FactoryReset()
449 Get<KeyManager>().DestroyPersistentKeys(); in FactoryReset()
461 Get<KeyManager>().DestroyTemporaryKeys(); in ErasePersistentInfo()
462 Get<KeyManager>().DestroyPersistentKeys(); in ErasePersistentInfo()
Dinstance.hpp547 KeyManager mKeyManager;
813 template <> inline KeyManager &Instance::Get(void) { return mKeyManager; } in Get()
/openthread-3.7.0/src/core/meshcop/
Ddataset_manager_ftd.cpp128 Get<KeyManager>().GetNetworkKey(localNetworkKey); in ProcessSetOrReplaceRequest()
326 Get<KeyManager>().GetNetworkKey(networkKey); in GenerateLocal()
346 if (Get<KeyManager>().IsPskcSet()) in GenerateLocal()
348 Get<KeyManager>().GetPskc(pskc); in GenerateLocal()
363 tlv.SetSecurityPolicy(Get<KeyManager>().GetSecurityPolicy()); in GenerateLocal()
Ddataset_manager.cpp222 Get<KeyManager>().SetNetworkKey(cur->ReadValueAs<NetworkKeyTlv>()); in ApplyConfiguration()
227 Get<KeyManager>().SetPskc(cur->ReadValueAs<PskcTlv>()); in ApplyConfiguration()
236 Get<KeyManager>().SetSecurityPolicy(As<SecurityPolicyTlv>(cur)->GetSecurityPolicy()); in ApplyConfiguration()
598 …if ((tlv->GetType() == Tlv::kNetworkKey) && !Get<KeyManager>().GetSecurityPolicy().mObtainNetworkK… in SendGetResponse()
914 Get<KeyManager>().GetNetworkKey(currentKey); in HandleDelayTimer()
Djoiner_router.cpp258 Get<KeyManager>().SetKek(metadata.mKek); in SendDelayedJoinerEntrust()
317 …SuccessOrExit(error = Tlv::Append<NetworkKeySequenceTlv>(*message, Get<KeyManager>().GetCurrentKey… in PrepareJoinerEntrustMessage()
Dsecure_transport.cpp990 Get<KeyManager>().SetKek(kek.GetBytes()); in HandleMbedtlsExportKeys()
1027 Get<KeyManager>().SetKek(kek.GetBytes()); in HandleMbedtlsExportKeys()
Dborder_agent.cpp630 Get<KeyManager>().GetPskc(pskc); in Start()
Dcommissioner.cpp1094 Get<KeyManager>().ExtractKek(kek); in SendRelayTransmit()
/openthread-3.7.0/src/core/net/
Dip6_filter.cpp90 if (Get<KeyManager>().GetSecurityPolicy().mNativeCommissioningEnabled && in Accept()