22#if !defined(MBEDTLS_CONFIG_FILE)
25#include MBEDTLS_CONFIG_FILE
39#define ECP_HELPER_MPI_IS_NORM(N, P) \
40 ((mbedtls_mpi_cmp_int(&N, 0) >= 0) && (mbedtls_mpi_cmp_mpi(&N, &P) < 0))
50#define ECP_HELPER_MPI_NORM(R, N1, N2, P) \
52 if (ECP_HELPER_MPI_IS_NORM(N1, P)) { \
55 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&N2, &N1, &P)); \
Multi-precision integer library.
Configuration options (set of defines)