1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

fix(legacy): clear crypto caches on device wipe

This commit is contained in:
matejcik 2022-02-14 12:15:11 +01:00 committed by matejcik
parent 9cba6a0191
commit 69eb09580d

View File

@ -973,4 +973,11 @@ void config_wipe(void) {
storage_set(KEY_UUID, config_uuid, sizeof(config_uuid));
storage_set(KEY_VERSION, &CONFIG_VERSION, sizeof(CONFIG_VERSION));
session_clear(false);
#if USE_BIP32_CACHE
bip32_cache_clear();
#endif
#if USE_BIP39_CACHE
bip39_cache_clear();
#endif
}