test_suite_ecp: Updated dependency macros for ecp_raw_generic.

This patch introduces a new local hash define of
`MBEDTLS_ECP_DP_SECP_GENERIC_ENABLED` to replace the
removed curve specific macros, introduced in upstream.

Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
Minos Galanakis 2023-03-29 11:41:21 +01:00
parent 1358648f77
commit 92278dc407

View File

@ -67,6 +67,15 @@ inline static int mbedtls_ecp_group_cmp(mbedtls_ecp_group *grp1,
return 0;
}
#if defined(MBEDTLS_TEST_HOOKS) && \
(defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED) || \
defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED) || \
defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED) || \
defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED) || \
defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED))
#define MBEDTLS_ECP_DP_SECP_GENERIC_ENABLED
#endif
/* END_HEADER */
/* BEGIN_DEPENDENCIES
@ -1266,7 +1275,7 @@ exit:
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS */
/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS:MBEDTLS_ECP_DP_SECP_GENERIC_ENABLED */
void ecp_mod_p_generic_raw(int curve_id,
char *input_N,
char *input_X,