mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
secure boot v2: Add anti-FI check that secure boot not enabled yet
Prevent a fault from causing bootloader to trust the provided signature incorrectly.
This commit is contained in:
parent
3c6b1b4c0a
commit
b00f38f91c
@ -166,6 +166,8 @@ esp_err_t esp_secure_boot_verify_rsa_signature_block(const ets_secure_boot_signa
|
|||||||
return ESP_ERR_INVALID_STATE;
|
return ESP_ERR_INVALID_STATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ESP_FAULT_ASSERT(!ets_use_secure_boot_v2());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memcpy(efuse_trusted_digest, sig_block_trusted_digest, DIGEST_LEN);
|
memcpy(efuse_trusted_digest, sig_block_trusted_digest, DIGEST_LEN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user