From cceb6271ef5ba36128467d756a7e3d0a8be2ec35 Mon Sep 17 00:00:00 2001 From: xcy Date: Mon, 15 Apr 2024 17:32:34 +0800 Subject: [PATCH] =?UTF-8?q?[CVE-2024-23170]=E6=BC=8F=E6=B4=9E=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xcy --- library/rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/rsa.c b/library/rsa.c index 5b9ce7027..4da054be2 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -978,7 +978,7 @@ int mbedtls_rsa_private(mbedtls_rsa_context *ctx, */ MBEDTLS_MPI_CHK(rsa_prepare_blinding(ctx, f_rng, p_rng)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&T, &T, &ctx->Vi)); - + MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &T, &ctx->N)); MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&input_blinded, &T)); /* -- Gitee