Skip to content

Commit 805c2d4

Browse files
authored
Merge pull request #7085 from dgarske/async_v5.6.6
Fix for invalid `dh_ffdhe_test` test case using Intel QuickAssist
2 parents 66596ad + 00f196d commit 805c2d4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20075,7 +20075,8 @@ static wc_test_ret_t dh_ffdhe_test(WC_RNG *rng, int name)
2007520075
ERROR_OUT(WC_TEST_RET_ENC_NC, done);
2007620076
}
2007720077

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

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

2011220113
done:
2011320114

0 commit comments

Comments
 (0)