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.
pull/25/head
Jochen Hoenicke 6 years ago committed by Pavol Rusnak
parent 9f50f09421
commit 7fc58eb5db
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save