refactor(hal): Move CONFIG options used in ecdsa_hal.c under config.h

This commit is contained in:
Aditya Patwardhan
2025-07-23 15:34:05 +05:30
parent 33493d43e0
commit 96170ea10b
4 changed files with 19 additions and 17 deletions
+3 -3
View File
@@ -16,13 +16,13 @@
#include <stdint.h>
#include "hal/ecdsa_types.h"
#include "soc/soc_caps.h"
#include "sdkconfig.h"
#include "hal/config.h"
#ifdef __cplusplus
extern "C" {
#endif
#if CONFIG_HAL_ECDSA_GEN_SIG_CM
#if HAL_CONFIG_ECDSA_GEN_SIG_CM
#define ECDSA_SIGN_MAX_DUMMY_OP_COUNT 0x7
@@ -32,7 +32,7 @@ extern "C" {
After the countermeasure is enabled, hardware ECDSA signature operation
shall take time approximately equal to original time multiplied by this number.
If you observe that the reduced performance is affecting your use-case then you may try reducing this time to the minimum. */
#endif /* CONFIG_HAL_ECDSA_GEN_SIG_CM */
#endif /* HAL_CONFIG_ECDSA_GEN_SIG_CM */
/*
* ECDSA peripheral config structure
*/