mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix missed renames from N to X
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
@ -5522,7 +5522,7 @@ int mbedtls_ecp_mod_p448(mbedtls_mpi_uint *X, size_t X_limbs)
|
|||||||
* X. */
|
* X. */
|
||||||
memcpy(M, X + P448_WIDTH, ((M_limbs - 1) * ciL));
|
memcpy(M, X + P448_WIDTH, ((M_limbs - 1) * ciL));
|
||||||
|
|
||||||
/* N = A0 */
|
/* X = A0 */
|
||||||
for (i = P448_WIDTH; i < X_limbs; i++) {
|
for (i = P448_WIDTH; i < X_limbs; i++) {
|
||||||
X[i] = 0;
|
X[i] = 0;
|
||||||
}
|
}
|
||||||
@ -5538,7 +5538,7 @@ int mbedtls_ecp_mod_p448(mbedtls_mpi_uint *X, size_t X_limbs)
|
|||||||
/* No carry here - only max 224 bits */
|
/* No carry here - only max 224 bits */
|
||||||
(void) mbedtls_mpi_core_add(X, X, Q, Q_limbs);
|
(void) mbedtls_mpi_core_add(X, X, Q, Q_limbs);
|
||||||
|
|
||||||
/* M = (B0 + B1) * 2^224, N += M */
|
/* M = (B0 + B1) * 2^224, X += M */
|
||||||
if (sizeof(mbedtls_mpi_uint) > 4) {
|
if (sizeof(mbedtls_mpi_uint) > 4) {
|
||||||
M[P224_WIDTH_MIN] &= ((mbedtls_mpi_uint)-1) >> (P224_UNUSED_BITS);
|
M[P224_WIDTH_MIN] &= ((mbedtls_mpi_uint)-1) >> (P224_UNUSED_BITS);
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ int mbedtls_ecp_mod_p256k1(mbedtls_mpi *N);
|
|||||||
#if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
|
#if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
|
||||||
|
|
||||||
MBEDTLS_STATIC_TESTABLE
|
MBEDTLS_STATIC_TESTABLE
|
||||||
int mbedtls_ecp_mod_p448(mbedtls_mpi_uint *N, size_t N_limbs);
|
int mbedtls_ecp_mod_p448(mbedtls_mpi_uint *X, size_t X_limbs);
|
||||||
|
|
||||||
#endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
|
#endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user