Skip to content

Commit 1ee165c

Browse files
committed
remove redundant sig check for signed fw
1 parent 47c5938 commit 1ee165c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

File renamed without changes.

‎tools/firmware/keepkey_main.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ static bool canDropPrivs(void) {
8585
return true;
8686
case BLK_v2_0_0:
8787
case BLK_v2_1_0:
88-
return SIG_OK == signatures_ok();
88+
// sigs already checked in bootloader. If a sig is present we are in priv mode, drop privs.
89+
return *((uint8_t *)FLASH_META_SIGINDEX1) != 0;
8990
}
9091
__builtin_unreachable();
9192
}

0 commit comments

Comments
 (0)