commit | 0118a1d7126e4f52bf7573507adffbb4c2cf0417 | [log] [tgz] |
---|---|---|
author | Chien Wong <m@xv97.com> | Tue Aug 01 21:38:46 2023 +0800 |
committer | Chien Wong <m@xv97.com> | Thu Aug 17 22:13:11 2023 +0800 |
tree | aca2b8fb265793f7c4be8831c9a41dc6d9e8754d | |
parent | 7740eaf32fc2338e9efb2469ec0a351e96224ba9 [diff] [blame] |
Fix a few unchecked return values Signed-off-by: Chien Wong <m@xv97.com>
diff --git a/library/rsa_internal.c b/library/rsa_internal.c index 2ff51c3..41ceff0 100644 --- a/library/rsa_internal.c +++ b/library/rsa_internal.c
@@ -126,7 +126,7 @@ } 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));