Rename function to follow naming convention

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2023-01-31 14:33:12 +01:00
parent 4721bb95fb
commit 2038ce976e
No known key found for this signature in database
GPG Key ID: F072ACA227ACD71D
3 changed files with 5 additions and 5 deletions

View File

@ -4571,7 +4571,7 @@ static int ecp_group_load(mbedtls_ecp_group *grp,
#if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
static int ecp_mod_p192(mbedtls_mpi *);
MBEDTLS_STATIC_TESTABLE
int ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
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 *);
@ -4901,14 +4901,14 @@ static int ecp_mod_p192(mbedtls_mpi *N)
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
size_t expected_width = 2 * ((192 + biL - 1) / biL);
MBEDTLS_MPI_CHK(mbedtls_mpi_grow(N, expected_width));
ret = ecp_mod_p192_raw(N->p, expected_width);
ret = mbedtls_ecp_mod_p192_raw(N->p, expected_width);
cleanup:
return ret;
}
MBEDTLS_STATIC_TESTABLE
int ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn)
int mbedtls_ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn)
{
mbedtls_mpi_uint c = 0, last_carry[WIDTH] = { 0 };
mbedtls_mpi_uint *p, *end;

View File

@ -85,7 +85,7 @@ int mbedtls_ecp_gen_privkey_mx(size_t n_bits,
* \param[in] Nn The address of the modulus.
*/
MBEDTLS_STATIC_TESTABLE
int ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
int mbedtls_ecp_mod_p192_raw(mbedtls_mpi_uint *Np, size_t Nn);
#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */

View File

@ -1326,7 +1326,7 @@ void ecp_mod_p192_raw(char *input_N,
&m, N, limbs,
MBEDTLS_MPI_MOD_REP_MONTGOMERY), 0);
TEST_EQUAL(ecp_mod_p192_raw(X, limbs_X), 0);
TEST_EQUAL(mbedtls_ecp_mod_p192_raw(X, limbs_X), 0);
mbedtls_mpi_mod_raw_fix_quasi_reduction(X, &m);
ASSERT_COMPARE(X, bytes, res, bytes);