mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
fix(legacy): clear crypto caches on device wipe
This commit is contained in:
parent
9cba6a0191
commit
69eb09580d
@ -973,4 +973,11 @@ void config_wipe(void) {
|
|||||||
storage_set(KEY_UUID, config_uuid, sizeof(config_uuid));
|
storage_set(KEY_UUID, config_uuid, sizeof(config_uuid));
|
||||||
storage_set(KEY_VERSION, &CONFIG_VERSION, sizeof(CONFIG_VERSION));
|
storage_set(KEY_VERSION, &CONFIG_VERSION, sizeof(CONFIG_VERSION));
|
||||||
session_clear(false);
|
session_clear(false);
|
||||||
|
|
||||||
|
#if USE_BIP32_CACHE
|
||||||
|
bip32_cache_clear();
|
||||||
|
#endif
|
||||||
|
#if USE_BIP39_CACHE
|
||||||
|
bip39_cache_clear();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user