chore(config): correct build config MBEDTLS_ECP_MAX_OPS name
This patch corrects the build config MBEDTLS_ECP_MAX_OPS name.
Signed-off-by: Shruti Gupta <shruti.gupta@arm.com>
Change-Id: Ie6c17da5ceb24a92da5a2f66a2346d88a09ab53d
diff --git a/lib/attestation/CMakeLists.txt b/lib/attestation/CMakeLists.txt
index 95554a6..8e84422 100644
--- a/lib/attestation/CMakeLists.txt
+++ b/lib/attestation/CMakeLists.txt
@@ -6,19 +6,19 @@
add_library(rmm-lib-attestation)
arm_config_option(
- NAME ECP_MAX_OPS
+ NAME MBEDTLS_ECP_MAX_OPS
HELP "Set the number of max operations per ECC signing iteration (min: 248)"
TYPE STRING
DEFAULT 1000
ADVANCED)
-if(ECP_MAX_OPS LESS 248)
+if(MBEDTLS_ECP_MAX_OPS LESS 248)
message(FATAL_ERROR "ECP_MAX_OPS is less than the lowest effective
value for curve and MBEDTLS_ECP_WINDOW_SIZE")
endif()
target_compile_definitions(rmm-lib-attestation
- PRIVATE "ECP_MAX_OPS=${ECP_MAX_OPS}U")
+ PRIVATE "MBEDTLS_ECP_MAX_OPS=${MBEDTLS_ECP_MAX_OPS}U")
target_link_libraries(rmm-lib-attestation
PRIVATE
diff --git a/lib/attestation/src/attestation_utils.c b/lib/attestation/src/attestation_utils.c
index c985f74..02cc19c 100644
--- a/lib/attestation/src/attestation_utils.c
+++ b/lib/attestation/src/attestation_utils.c
@@ -61,7 +61,7 @@
*
* This adjusts the length of a single signing loop.
*/
- FPU_ALLOW(mbedtls_ecp_set_max_ops(ECP_MAX_OPS));
+ FPU_ALLOW(mbedtls_ecp_set_max_ops(MBEDTLS_ECP_MAX_OPS));
FPU_ALLOW(ret = attest_rnd_prng_init());
if (ret != 0) {