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