1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-05 19:35:48 +03:00

Undo a change

Signed-off-by: Chien Wong <m@xv97.com>
This commit is contained in:
Chien Wong
2023-08-11 18:16:06 +08:00
parent e2caf4161b
commit 2e3858f5eb

View File

@@ -1706,7 +1706,7 @@ int mbedtls_mpi_exp_mod(mbedtls_mpi *X, const mbedtls_mpi *A,
*/ */
const size_t x_index = 0; const size_t x_index = 0;
mbedtls_mpi_init(&W[x_index]); mbedtls_mpi_init(&W[x_index]);
MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&W[x_index], X)); mbedtls_mpi_copy(&W[x_index], X);
j = N->n + 1; j = N->n + 1;
/* All W[i] and X must have at least N->n limbs for the mpi_montmul() /* All W[i] and X must have at least N->n limbs for the mpi_montmul()