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
No known key found for this signature in database
GPG Key ID: 5CA58A39FA4122AD

View File

@ -1706,7 +1706,7 @@ int mbedtls_mpi_exp_mod(mbedtls_mpi *X, const mbedtls_mpi *A,
*/
const size_t x_index = 0;
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;
/* All W[i] and X must have at least N->n limbs for the mpi_montmul()