1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Use only MBEDTLS_ECP_WITH_MPI_UINT to switch between the ecp variants

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei
2023-07-06 10:37:51 +02:00
parent 6db604711d
commit 2a7bcaf8af
4 changed files with 7 additions and 21 deletions

View File

@ -40,23 +40,13 @@ 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.
*/
#if !defined(MBEDTLS_ECP_WITH_MPI_UINT)
/* Provide a commented-out definition so that `check_names.py` knows that
* it's not a typo.
* MBEDTLS_ECP_WITH_MPI_UINT must not be defined within config files, but
* only on the command line, as otherwise both ECP implementations will be
* built.
* only on the command line.
*/
//#define MBEDTLS_ECP_WITH_MPI_UINT
/* Enable the old bignum interface. */
#define MBEDTLS_ECP_WITH_MPI_STRUCT
#endif
typedef enum {
MBEDTLS_ECP_VARIANT_NONE = 0,
MBEDTLS_ECP_VARIANT_WITH_MPI_STRUCT = 1,