mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Fix a few unchecked return values
Signed-off-by: Chien Wong <m@xv97.com>
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user