1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00

reset: use mnemonic_clear

This commit is contained in:
Pavol Rusnak 2019-01-23 18:38:30 +01:00
parent 79779f4da6
commit 3b5fe11253
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 1 deletions

View File

@ -110,6 +110,7 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len)
storage_setNeedsBackup(true);
}
storage_setMnemonic(mnemonic_from_data(int_entropy, strength / 8));
mnemonic_clear();
memzero(int_entropy, 32);
awaiting_entropy = false;

@ -1 +1 @@
Subproject commit c316e775a2152db255ace96b6b65ac0f20525ec0
Subproject commit d1c52401e4c76c74a10455682ace0655b7aa644c