fix(legacy): clear crypto caches on device wipe

pull/2131/head
matejcik 2 years ago committed by matejcik
parent 9cba6a0191
commit 69eb09580d

@ -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
}

Loading…
Cancel
Save