Change the ecp_mod_p224_raw to be testable
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
66f88a9d22
commit
e14b5bdba7
2 changed files with 11 additions and 2 deletions
|
@ -4575,7 +4575,8 @@ int mbedtls_ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
|||
#endif
|
||||
#if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
|
||||
static int ecp_mod_p224(mbedtls_mpi *);
|
||||
static int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
MBEDTLS_STATIC_TESTABLE
|
||||
int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
#endif
|
||||
#if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
|
||||
static int ecp_mod_p256(mbedtls_mpi *);
|
||||
|
@ -5057,7 +5058,8 @@ cleanup:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn)
|
||||
MBEDTLS_STATIC_TESTABLE
|
||||
int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn)
|
||||
{
|
||||
if (Nn != 2 * ((224 + biL - 1) / biL)) {
|
||||
return MBEDTLS_ERR_ECP_BAD_INPUT_DATA;
|
||||
|
|
|
@ -94,6 +94,13 @@ int mbedtls_ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
|||
|
||||
#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
|
||||
|
||||
#if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
|
||||
|
||||
MBEDTLS_STATIC_TESTABLE
|
||||
int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
|
||||
#endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
|
||||
|
||||
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
|
||||
|
||||
/** Fast quasi-reduction modulo p521 = 2^521 - 1 (FIPS 186-3 D.2.5)
|
||||
|
|
Loading…
Reference in a new issue