From 83e3b37e9de1d2e6b904e8bf8259021d03c9abca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 3 Dec 2025 13:27:19 +0100 Subject: [PATCH] rsa: rm unused variable + fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- library/rsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/rsa.c b/library/rsa.c index 93b47d52ed..a706d90c83 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -1307,7 +1307,7 @@ static int rsa_gen_rand_with_inverse(const mbedtls_rsa_context *ctx, void *p_rng) { #if defined(MBEDTLS_RSA_NO_CRT) - int ret, count = 0; + int ret; mbedtls_mpi G; mbedtls_mpi_init(&G); @@ -1317,7 +1317,7 @@ static int rsa_gen_rand_with_inverse(const mbedtls_rsa_context *ctx, if (mbedtls_mpi_cmp_int(&G, 1) != 0) { /* This happens if we're unlucky enough to draw a multiple of P or Q, - * of it one of them is not a prime and G is one of its factors. */ + * or if one of them is not a prime and G is one of its factors. */ ret = MBEDTLS_ERR_RSA_RNG_FAILED; goto cleanup; }