1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Fix a few unchecked value issue

Signed-off-by: Chien Wong <m@xv97.com>
This commit is contained in:
Chien Wong
2023-08-01 21:38:46 +08:00
parent cbc495eb0f
commit e2caf4161b
3 changed files with 5 additions and 5 deletions

View File

@@ -126,7 +126,7 @@ int mbedtls_rsa_deduce_primes(mbedtls_mpi const *N,
}
for (; attempt < num_primes; ++attempt) {
mbedtls_mpi_lset(&K, primes[attempt]);
MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&K, primes[attempt]));
/* Check if gcd(K,N) = 1 */
MBEDTLS_MPI_CHK(mbedtls_mpi_gcd(P, &K, N));