commit | e2caf4161ba96e3e22276707f9e43cdf68caf621 | [log] [tgz] |
---|---|---|
author | Chien Wong <m@xv97.com> | Tue Aug 01 21:38:46 2023 +0800 |
committer | Chien Wong <m@xv97.com> | Tue Aug 01 22:41:17 2023 +0800 |
tree | 442ba7b024e30196793fcc0c2ee9a7c88ce8a9a6 | |
parent | cbc495eb0f29c9ccfa5e9da2d4c5b3a2691c49c3 [diff] [blame] |
Fix a few unchecked value issue Signed-off-by: Chien Wong <m@xv97.com>
diff --git a/library/rsa_alt_helpers.c b/library/rsa_alt_helpers.c index 3451469..5cc4636 100644 --- a/library/rsa_alt_helpers.c +++ b/library/rsa_alt_helpers.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));