Merge branch 'feature/openthread_mbedtls_psa_support_20251223_fix_keymode2' into 'feature/openthread_mbedtls_psa_support_20251223'

Fixed an issue with key destruction in mode 2

See merge request espressif/openthread!3
This commit is contained in:
Shu Chen
2025-12-29 06:29:41 +00:00
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -134,6 +134,11 @@ public:
*/
explicit Mac(Instance &aInstance);
/**
* Clears the Mode2Key on destruction.
*/
~Mac(void) { ClearMode2Key(); }
/**
* Starts an IEEE 802.15.4 Active Scan.
*
-1
View File
@@ -691,7 +691,6 @@ void KeyManager::DestroyTemporaryKeys(void)
mMleKey.Clear();
mKek.Clear();
Get<Mac::SubMac>().ClearMacKeys();
Get<Mac::Mac>().ClearMode2Key();
}
void KeyManager::DestroyPersistentKeys(void) { Get<Crypto::Storage::KeyRefManager>().DestroyPersistentKeys(); }