1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

reset: don't show internal entropy when no_backup is set

This commit is contained in:
Pavol Rusnak 2018-10-08 15:37:53 +02:00
parent cb9182166e
commit 3a4660ede2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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];