mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(secure_boot): range-check ECDSA r,s in bootloader before ROM verify
This commit is contained in:
@@ -61,6 +61,11 @@ static inline void ecc_ll_power_up(void)
|
||||
ESP_FAULT_ASSERT(REG_GET_BIT(PCR_ECC_PD_CTRL_REG, PCR_ECC_MEM_FORCE_PD) == 0);
|
||||
}
|
||||
|
||||
static inline bool ecc_ll_mem_force_pd_is_clear(void)
|
||||
{
|
||||
return REG_GET_BIT(PCR_ECC_PD_CTRL_REG, PCR_ECC_MEM_FORCE_PD) == 0;
|
||||
}
|
||||
|
||||
static inline void ecc_ll_power_down(void)
|
||||
{
|
||||
/* Power down the ECC peripheral */
|
||||
|
||||
Reference in New Issue
Block a user