mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bootloader_support(esp32c2): Fix esp_secure_boot_cfg_verify_release_mode API
When FE and SB keys are set then: - 128 low bits are read protected - 128 hi bits are readable
This commit is contained in:
parent
905f9bf25f
commit
e8fcb93d0f
@ -363,7 +363,11 @@ bool esp_secure_boot_cfg_verify_release_mode(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
++num_keys;
|
++num_keys;
|
||||||
|
#if SOC_EFUSE_CONSISTS_OF_ONE_KEY_BLOCK
|
||||||
|
secure = !esp_efuse_read_field_bit(ESP_EFUSE_RD_DIS_KEY0_HI);
|
||||||
|
#else
|
||||||
secure = !esp_efuse_get_key_dis_read(block);
|
secure = !esp_efuse_get_key_dis_read(block);
|
||||||
|
#endif // !SOC_EFUSE_CONSISTS_OF_ONE_KEY_BLOCK
|
||||||
result &= secure;
|
result &= secure;
|
||||||
if (!secure) {
|
if (!secure) {
|
||||||
ESP_LOGE(TAG, "Secure boot key in BLOCK%d must NOT be read-protected (can not be used)", block);
|
ESP_LOGE(TAG, "Secure boot key in BLOCK%d must NOT be read-protected (can not be used)", block);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user