mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 08:37:25 +00:00
Follow the naming convention
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
bf506361c4
commit
804cfd32ea
@ -4576,7 +4576,7 @@ int mbedtls_ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
#if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
|
||||
static int ecp_mod_p224(mbedtls_mpi *);
|
||||
MBEDTLS_STATIC_TESTABLE
|
||||
int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
int mbedtls_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 *);
|
||||
@ -5053,13 +5053,13 @@ static int ecp_mod_p224(mbedtls_mpi *N)
|
||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||
size_t expected_width = 2 * 224 / biL;
|
||||
MBEDTLS_MPI_CHK(mbedtls_mpi_grow(N, expected_width));
|
||||
ret = ecp_mod_p224_raw(N->p, expected_width);
|
||||
ret = mbedtls_ecp_mod_p224_raw(N->p, expected_width);
|
||||
cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
MBEDTLS_STATIC_TESTABLE
|
||||
int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn)
|
||||
int mbedtls_ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn)
|
||||
{
|
||||
if (Nn != 2 * 224 / biL) {
|
||||
return MBEDTLS_ERR_ECP_BAD_INPUT_DATA;
|
||||
|
@ -112,7 +112,7 @@ int mbedtls_ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
* size that sores a 448-bit MPI.
|
||||
*/
|
||||
MBEDTLS_STATIC_TESTABLE
|
||||
int ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
int mbedtls_ecp_mod_p224_raw(mbedtls_mpi_uint *Np, size_t Nn);
|
||||
|
||||
#endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
|
||||
|
||||
|
@ -1373,7 +1373,7 @@ void ecp_mod_p224_raw(char *input_N,
|
||||
&m, N, limbs,
|
||||
MBEDTLS_MPI_MOD_REP_MONTGOMERY), 0);
|
||||
|
||||
TEST_EQUAL(ecp_mod_p224_raw(X, limbs_X), 0);
|
||||
TEST_EQUAL(mbedtls_ecp_mod_p224_raw(X, limbs_X), 0);
|
||||
TEST_LE_U(mbedtls_mpi_core_bitlen(X, limbs_X), 224);
|
||||
mbedtls_mpi_mod_raw_fix_quasi_reduction(X, &m);
|
||||
ASSERT_COMPARE(X, bytes, res, bytes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user