feat(hal): enabled ecc p-384 support for esp32h4

This commit is contained in:
nilesh.kale
2026-01-21 14:59:32 +05:30
parent 3a26929cb6
commit b9a394e75e
3 changed files with 11 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -149,6 +149,11 @@ static inline void ecc_ll_set_mod_base(ecc_mod_base_t base)
}
}
static inline bool ecc_ll_is_p384_curve_operations_supported(void)
{
return true;
}
static inline void ecc_ll_enable_constant_time_point_mul(bool enable)
{
if (enable) {

View File

@@ -803,6 +803,10 @@ config SOC_ECC_CONSTANT_TIME_POINT_MUL
bool
default y
config SOC_ECC_SUPPORT_CURVE_P384
bool
default y
config SOC_SPI_PERIPH_NUM
int
default 3

View File

@@ -363,6 +363,7 @@
/*--------------------------- ECC CAPS ---------------------------------------*/
#define SOC_ECC_CONSTANT_TIME_POINT_MUL 1
#define SOC_ECC_SUPPORT_CURVE_P384 (1)
/*-------------------------- SPI CAPS ----------------------------------------*/
#define SOC_SPI_PERIPH_NUM 3