feat(hal): add ECDSA low-level driver for esp32s31

Co-authored-by: Nilesh Kale <nilesh.kale@espressif.com>
This commit is contained in:
Aditya Patwardhan
2026-03-15 08:46:13 +05:30
committed by nilesh.kale
parent e9a9091b59
commit e1d429ba30
10 changed files with 540 additions and 32 deletions

View File

@@ -436,8 +436,7 @@ bool esp_secure_boot_cfg_verify_release_mode(void)
ESP_LOGW(TAG, "Not enabled Secure Boot using SHA-384 mode (set SECURE_BOOT_SHA384_EN->1)");
}
#else
// Note: Efuse bit ESP_EFUSE_WR_DIS_SECURE_BOOT_SHA384_EN is not present for ESP32P4
#if !CONFIG_IDF_TARGET_ESP32P4
#if SOC_EFUSE_SECURE_BOOT_P384_WR_DIS
/* When using Secure Boot with SHA-384, the efuse bit representing Secure Boot with SHA-384 would already be programmed.
* But in the case of the existing Secure Boot V2 schemes using SHA-256, the efuse bit representing
* Secure Boot with SHA-384 needs to be write-protected, so that an attacker cannot perform a denial-of-service
@@ -448,7 +447,7 @@ bool esp_secure_boot_cfg_verify_release_mode(void)
if (!secure) {
ESP_LOGW(TAG, "Not write-protected secure boot using SHA-384 mode (set WR_DIS_SECURE_BOOT_SHA384_EN->1)");
}
#endif /* !CONFIG_IDF_TARGET_ESP32P4 */
#endif
#endif
#endif