mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00:00
Change the ecp_mod_p521_raw to be testable
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
8450ab9c60
commit
2cb630edee
@ -4584,6 +4584,8 @@ static int ecp_mod_p384(mbedtls_mpi *);
|
|||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
|
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
|
||||||
static int ecp_mod_p521(mbedtls_mpi *);
|
static int ecp_mod_p521(mbedtls_mpi *);
|
||||||
|
MBEDTLS_STATIC_TESTABLE
|
||||||
|
int ecp_mod_p521_raw(mbedtls_mpi_uint *N_p, size_t N_n);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NIST_MODP(P) grp->modp = ecp_mod_ ## P;
|
#define NIST_MODP(P) grp->modp = ecp_mod_ ## P;
|
||||||
@ -5207,7 +5209,9 @@ static int ecp_mod_p521(mbedtls_mpi *N)
|
|||||||
cleanup:
|
cleanup:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
static int ecp_mod_p521_raw(mbedtls_mpi_uint *N_p, size_t N_n)
|
|
||||||
|
MBEDTLS_STATIC_TESTABLE
|
||||||
|
int ecp_mod_p521_raw(mbedtls_mpi_uint *N_p, size_t N_n)
|
||||||
{
|
{
|
||||||
mbedtls_mpi_uint carry = 0;
|
mbedtls_mpi_uint carry = 0;
|
||||||
|
|
||||||
|
@ -95,6 +95,13 @@ int mbedtls_ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
|||||||
|
|
||||||
#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
|
#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
|
||||||
|
|
||||||
|
MBEDTLS_STATIC_TESTABLE
|
||||||
|
int ecp_mod_p521_raw(mbedtls_mpi_uint *N_p, size_t N_n);
|
||||||
|
|
||||||
|
#endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
|
||||||
|
|
||||||
#endif /* MBEDTLS_TEST_HOOKS && MBEDTLS_ECP_C */
|
#endif /* MBEDTLS_TEST_HOOKS && MBEDTLS_ECP_C */
|
||||||
|
|
||||||
#endif /* MBEDTLS_ECP_INVASIVE_H */
|
#endif /* MBEDTLS_ECP_INVASIVE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user