Skip to content

Commit

Permalink
Merge pull request wolfSSL#7085 from dgarske/async_v5.6.6
Browse files Browse the repository at this point in the history
Fix for invalid `dh_ffdhe_test` test case using Intel QuickAssist
  • Loading branch information
douzzer authored Dec 20, 2023
2 parents 66596ad + 00f196d commit 805c2d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -20075,7 +20075,8 @@ static wc_test_ret_t dh_ffdhe_test(WC_RNG *rng, int name)
ERROR_OUT(WC_TEST_RET_ENC_NC, done);
}

#if defined(WOLFSSL_HAVE_SP_DH) || defined(USE_FAST_MATH)
#if (defined(WOLFSSL_HAVE_SP_DH) || defined(USE_FAST_MATH)) && \
!defined(HAVE_INTEL_QA)
/* Make p even */
key->p.dp[0] &= (mp_digit)-2;
if (ret != 0)
Expand Down Expand Up @@ -20107,7 +20108,7 @@ static wc_test_ret_t dh_ffdhe_test(WC_RNG *rng, int name)

/* Getting here means success - set ret to 0. */
ret = 0;
#endif
#endif /* (SP DH or Fast Math) and not Intel QuickAssist */

done:

Expand Down

0 comments on commit 805c2d4

Please sign in to comment.