rsa: rm unused variable + fix typos

Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
This commit is contained in:
Manuel Pégourié-Gonnard
2025-12-03 13:27:19 +01:00
parent f90c04d646
commit 83e3b37e9d
+2 -2
View File
@@ -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;
}