Skip to content

Commit 152c856

Browse files
author
Lealem Amedie
committed
Fix unit test failure for FIPS 140-2 + WOLFSSL_ARMASM
1 parent 375415d commit 152c856

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18498,7 +18498,11 @@ static int test_wc_AesGcmEncryptDecrypt(void)
1849818498
BAD_FUNC_ARG);
1849918499
ExpectIntEQ(wc_AesGcmDecrypt(&aes, dec, enc, sizeof(enc)/sizeof(byte), iv,
1850018500
sizeof(iv)/sizeof(byte), resultT, sizeof(resultT) + 1, a, sizeof(a)),
18501+
#if (defined(HAVE_FIPS) && FIPS_VERSION_LE(2,0) && defined(WOLFSSL_ARMASM))
18502+
AES_GCM_AUTH_E);
18503+
#else
1850118504
BAD_FUNC_ARG);
18505+
#endif
1850218506
#if ((defined(HAVE_FIPS) && defined(HAVE_FIPS_VERSION) && \
1850318507
(HAVE_FIPS_VERSION == 2)) || defined(HAVE_SELFTEST)) && \
1850418508
!defined(WOLFSSL_AES_GCM_FIXED_IV_AAD)

0 commit comments

Comments
 (0)