Fix missed renames from N to X
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/library/ecp_curves.c b/library/ecp_curves.c
index d34eea2..42d151a 100644
--- a/library/ecp_curves.c
+++ b/library/ecp_curves.c
@@ -5522,7 +5522,7 @@
* X. */
memcpy(M, X + P448_WIDTH, ((M_limbs - 1) * ciL));
- /* N = A0 */
+ /* X = A0 */
for (i = P448_WIDTH; i < X_limbs; i++) {
X[i] = 0;
}
@@ -5538,7 +5538,7 @@
/* No carry here - only max 224 bits */
(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) {
M[P224_WIDTH_MIN] &= ((mbedtls_mpi_uint)-1) >> (P224_UNUSED_BITS);
}
diff --git a/library/ecp_invasive.h b/library/ecp_invasive.h
index 4cf4f6e..379e022 100644
--- a/library/ecp_invasive.h
+++ b/library/ecp_invasive.h
@@ -196,7 +196,7 @@
#if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
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 */