Skip to content

Commit

Permalink
remove redundant sig check for signed fw
Browse files Browse the repository at this point in the history
  • Loading branch information
markrypto committed Jul 6, 2021
1 parent 47c5938 commit 1ee165c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/firmware/keepkey_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ static bool canDropPrivs(void) {
return true;
case BLK_v2_0_0:
case BLK_v2_1_0:
return SIG_OK == signatures_ok();
// sigs already checked in bootloader. If a sig is present we are in priv mode, drop privs.
return *((uint8_t *)FLASH_META_SIGINDEX1) != 0;
}
__builtin_unreachable();
}
Expand Down

0 comments on commit 1ee165c

Please sign in to comment.