mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 02:58:57 +00:00
reset: don't show internal entropy when no_backup is set
This commit is contained in:
parent
cb9182166e
commit
3a4660ede2
@ -44,6 +44,12 @@ void reset_init(bool display_random, uint32_t _strength, bool passphrase_protect
|
||||
skip_backup = _skip_backup;
|
||||
no_backup = _no_backup;
|
||||
|
||||
if (display_random && no_backup) {
|
||||
fsm_sendFailure(FailureType_Failure_ProcessError, "Can't show internal entropy when no_backup is used");
|
||||
layoutHome();
|
||||
return;
|
||||
}
|
||||
|
||||
random_buffer(int_entropy, 32);
|
||||
|
||||
char ent_str[4][17];
|
||||
|
Loading…
Reference in New Issue
Block a user