From ad7f53cdb35644304350b077a9ac11e5ec588036 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 31 May 2021 21:20:30 +0200 Subject: [PATCH] Define public fields of mbedtls_ecp_group in alt test header And don't define configuration macros that only apply to the built-in implementation. Signed-off-by: Gilles Peskine --- tests/include/alt-dummy/ecp_alt.h | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/include/alt-dummy/ecp_alt.h b/tests/include/alt-dummy/ecp_alt.h index 3628bb3da1..d263871c48 100644 --- a/tests/include/alt-dummy/ecp_alt.h +++ b/tests/include/alt-dummy/ecp_alt.h @@ -21,19 +21,15 @@ typedef struct mbedtls_ecp_group { - int dummy; + const mbedtls_ecp_group_id id; + const mbedtls_mpi P; + const mbedtls_mpi A; + const mbedtls_mpi B; + const mbedtls_ecp_point G; + const mbedtls_mpi N; + const size_t pbits; + const size_t nbits; } mbedtls_ecp_group; -#if !defined(MBEDTLS_ECP_WINDOW_SIZE) - -#define MBEDTLS_ECP_WINDOW_SIZE 6 -#endif - -#if !defined(MBEDTLS_ECP_FIXED_POINT_OPTIM) - -#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 -#endif - - #endif /* ecp_alt.h */