Clone the ecp.c file as ecp_new.c
Add macro guard for each file defaults to enable the ecp.c file content. Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
3f2448b75e
commit
a306d20766
3 changed files with 3666 additions and 1 deletions
|
@ -43,6 +43,10 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
#include "ecp_invasive.h"
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_ECP_WITH_MPI_STRUCT)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Function level alternative implementation.
|
* \brief Function level alternative implementation.
|
||||||
*
|
*
|
||||||
|
@ -80,7 +84,6 @@
|
||||||
#include "mbedtls/error.h"
|
#include "mbedtls/error.h"
|
||||||
|
|
||||||
#include "bn_mul.h"
|
#include "bn_mul.h"
|
||||||
#include "ecp_invasive.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -3639,3 +3642,5 @@ cleanup:
|
||||||
#endif /* !MBEDTLS_ECP_ALT */
|
#endif /* !MBEDTLS_ECP_ALT */
|
||||||
|
|
||||||
#endif /* MBEDTLS_ECP_LIGHT */
|
#endif /* MBEDTLS_ECP_LIGHT */
|
||||||
|
|
||||||
|
#endif /* MBEDTLS_ECP_WITH_MPI_STRUCT */
|
||||||
|
|
|
@ -40,6 +40,14 @@ typedef enum {
|
||||||
MBEDTLS_ECP_MOD_SCALAR
|
MBEDTLS_ECP_MOD_SCALAR
|
||||||
} mbedtls_ecp_modulus_type;
|
} mbedtls_ecp_modulus_type;
|
||||||
|
|
||||||
|
#ifndef MBEDTLS_ECP_WITH_MPI_UINT
|
||||||
|
|
||||||
|
#define MBEDTLS_ECP_WITH_MPI_UINT
|
||||||
|
#undef MBEDTLS_ECP_WITH_MPI_UINT
|
||||||
|
|
||||||
|
#define MBEDTLS_ECP_WITH_MPI_STRUCT
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_TEST_HOOKS) && defined(MBEDTLS_ECP_LIGHT)
|
#if defined(MBEDTLS_TEST_HOOKS) && defined(MBEDTLS_ECP_LIGHT)
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_MONTGOMERY_ENABLED)
|
#if defined(MBEDTLS_ECP_MONTGOMERY_ENABLED)
|
||||||
|
|
3652
library/ecp_new.c
Normal file
3652
library/ecp_new.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue