mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-17 16:46:05 +00:00
bootloader: signatures_ok must work without magic
signatures_ok is called before the magic is written to the flash to determine whether the metadata should be written back.
This commit is contained in:
parent
9f50f09421
commit
7fc58eb5db
@ -40,8 +40,6 @@ static const uint8_t * const pubkey[PUBKEYS] = {
|
||||
|
||||
int signatures_ok(uint8_t *store_hash)
|
||||
{
|
||||
if (!firmware_present()) return SIG_FAIL; // no firmware present
|
||||
|
||||
const uint32_t codelen = *((const uint32_t *)FLASH_META_CODELEN);
|
||||
const uint8_t sigindex1 = *((const uint8_t *)FLASH_META_SIGINDEX1);
|
||||
const uint8_t sigindex2 = *((const uint8_t *)FLASH_META_SIGINDEX2);
|
||||
|
Loading…
Reference in New Issue
Block a user