Fix missed renames from N to X
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
c05f51ded9
commit
3b6bf105d1
2 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue