Skip to content

Commit bab01ca

Browse files
Merge pull request #6872 from douzzer/20231016-sp-math-aes-eax-fips-fixes
20231016-sp-math-aes-eax-fips-fixes
2 parents d351120 + 3e9f8bc commit bab01ca

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

tests/api.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19556,7 +19556,8 @@ static int test_wc_AesCcmEncryptDecrypt(void)
1955619556
} /* END test_wc_AesCcmEncryptDecrypt */
1955719557

1955819558

19559-
#if defined(WOLFSSL_AES_EAX)
19559+
#if defined(WOLFSSL_AES_EAX) && \
19560+
(!defined(HAVE_FIPS) || FIPS_VERSION_GE(5, 3)) && !defined(HAVE_SELFTEST)
1956019561

1956119562
/*
1956219563
* Testing test_wc_AesEaxVectors()
@@ -21028,7 +21029,9 @@ static int test_wc_AesEaxDecryptAuth(void)
2102821029
return EXPECT_RESULT();
2102921030
} /* END test_wc_AesEaxDecryptAuth() */
2103021031

21031-
#endif /* defined(WOLFSSL_AES_EAX) */
21032+
#endif /* WOLFSSL_AES_EAX &&
21033+
* (!HAVE_FIPS || FIPS_VERSION_GE(5, 3)) && !HAVE_SELFTEST
21034+
*/
2103221035

2103321036
/*
2103421037
* Testing wc_InitDsaKey()
@@ -67214,7 +67217,8 @@ TEST_CASE testCases[] = {
6721467217
TEST_DECL(test_wc_GmacUpdate),
6721567218
TEST_DECL(test_wc_AesCcmSetKey),
6721667219
TEST_DECL(test_wc_AesCcmEncryptDecrypt),
67217-
#if defined(WOLFSSL_AES_EAX)
67220+
#if defined(WOLFSSL_AES_EAX) && \
67221+
(!defined(HAVE_FIPS) || FIPS_VERSION_GE(5, 3)) && !defined(HAVE_SELFTEST)
6721867222
TEST_DECL(test_wc_AesEaxVectors),
6721967223
TEST_DECL(test_wc_AesEaxEncryptAuth),
6722067224
TEST_DECL(test_wc_AesEaxDecryptAuth),

wolfcrypt/src/eccsi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,6 @@ static int eccsi_mulmod_base_add(EccsiKey* key, const mp_int* n,
13761376
err = NOT_COMPILED_IN;
13771377
}
13781378
(void)key;
1379-
(void)h;
13801379
(void)a;
13811380
(void)res;
13821381
(void)mp;

0 commit comments

Comments
 (0)