From f4aab6f666c8569cd5ec3f4036092353e25db13e Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Fri, 30 Jun 2023 14:50:03 +0200 Subject: [PATCH] Add comments and remove unneeded defines For `check_names.py` it is enough to appear a macro definition in a comment to validate it. Signed-off-by: Gabor Mezei --- library/ecp_invasive.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/library/ecp_invasive.h b/library/ecp_invasive.h index 0a0d361d29..31fde48a27 100644 --- a/library/ecp_invasive.h +++ b/library/ecp_invasive.h @@ -40,11 +40,15 @@ typedef enum { MBEDTLS_ECP_MOD_SCALAR } mbedtls_ecp_modulus_type; +/* Requred macros for ECP split. + * If MBEDTLS_ECP_WITH_MPI_UINT is defined the new bignum interface is used. + */ #ifndef MBEDTLS_ECP_WITH_MPI_UINT -#define MBEDTLS_ECP_WITH_MPI_UINT -#undef MBEDTLS_ECP_WITH_MPI_UINT +/* Because of `check_names.py` a define is needed for every macro. */ +//#define MBEDTLS_ECP_WITH_MPI_UINT +/* Enable the old bignum interface. */ #define MBEDTLS_ECP_WITH_MPI_STRUCT #endif