Clone the ecp_curve.c file as ecp_curve_new.c

Use macro guard MBEDTLS_ECP_WITH_MPI_UINT/STRUCT to enable
either c file

Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
Xiaokang Qian 2023-06-13 10:50:35 +00:00
parent ed70fd0c39
commit dc2ea2705b
2 changed files with 5983 additions and 1 deletions

View file

@ -18,6 +18,9 @@
*/
#include "common.h"
#include "ecp_invasive.h"
#if defined(MBEDTLS_ECP_WITH_MPI_STRUCT)
#if defined(MBEDTLS_ECP_LIGHT)
@ -32,7 +35,6 @@
#include "bn_mul.h"
#include "bignum_core.h"
#include "ecp_invasive.h"
#include <string.h>
@ -6039,3 +6041,4 @@ int mbedtls_ecp_modulus_setup(mbedtls_mpi_mod_modulus *N,
#endif /* MBEDTLS_TEST_HOOKS */
#endif /* !MBEDTLS_ECP_ALT */
#endif /* MBEDTLS_ECP_LIGHT */
#endif /* MBEDTLS_ECP_WITH_MPI_STRUCT */

5979
library/ecp_curves_new.c Normal file

File diff suppressed because it is too large Load diff