fix(hal): Make the ECDSA countermeasure dynamically applicable

This commit makes the ECDSA countermeasure dynamically applicable
    across different revisions of the ESP32H2 SoC.
This commit is contained in:
Aditya Patwardhan
2025-02-26 17:04:19 +05:30
parent e97c51ea24
commit 68eb689b35
7 changed files with 36 additions and 10 deletions
@@ -69,7 +69,7 @@ endif()
idf_component_register(SRCS ${srcs}
PRIV_REQUIRES efuse mbedtls esp_mm bootloader_support
REQUIRES test_utils unity
REQUIRES test_utils unity ccomp_timer
WHOLE_ARCHIVE
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
)
@@ -6,7 +6,9 @@
#include <stdio.h>
#include <stdbool.h>
#include <sys/param.h>
#include <string.h>
#include "sdkconfig.h"
#include "esp_private/esp_crypto_lock_internal.h"
#include "esp_log.h"
@@ -17,6 +19,7 @@
#include "memory_checks.h"
#include "unity_fixture.h"
#include "ccomp_timer.h"
#define _DEBUG_ 0
#define SOC_ECC_SUPPORT_POINT_MULT 1
@@ -0,0 +1,17 @@
## IDF Component Manager Manifest File
dependencies:
## Required IDF version
idf:
version: '>=4.1.0'
# # Put list of dependencies here
# # For components maintained by Espressif:
# component: "~1.0.0"
# # For 3rd party components:
# username/component: ">=1.0.0,<2.0.0"
# username2/component2:
# version: "~1.0.0"
# # For transient dependencies `public` flag can be set.
# # `public` flag doesn't have an effect dependencies of the `main` component.
# # All dependencies of `main` are public by default.
# public: true
espressif/ccomp_timer: '*'