Skip to content

Commit bea6bcb

Browse files
authored
Merge pull request #9450 from JacobBarthelmeh/xilinx
adjust test case to account for AES-GCM key size support with Xilinx …
2 parents 96dde5b + 23a6edc commit bea6bcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wolfcrypt/test/test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16419,7 +16419,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aesgcm_test(void)
1641916419
0xb8, 0x56, 0x8f, 0xc3, 0xd3, 0x76, 0xa6, 0xd9
1642016420
};
1642116421
#endif /* WOLFSSL_AES_192 */
16422-
#ifdef WOLFSSL_AES_128
16422+
#if defined(WOLFSSL_AES_128) && !defined(WOLFSSL_AFALG_XILINX_AES)
1642316423
/* The following is an interesting test case from the example
1642416424
* FIPS test vectors for AES-GCM. IVlen = 1 byte
1642516425
* k3 and p3 below, are also part of this. */
@@ -16450,7 +16450,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aesgcm_test(void)
1645016450
int ivlen;
1645116451
#endif
1645216452
#endif
16453-
#ifdef WOLFSSL_AES_128
16453+
#if defined(WOLFSSL_AES_128) && !defined(WOLFSSL_AFALG_XILINX_AES)
1645416454
#ifdef HAVE_RENESAS_SYNC
1645516455
const byte *k3 =
1645616456
(byte*)guser_PKCbInfo.wrapped_key_aes128;
@@ -16548,7 +16548,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aesgcm_test(void)
1654816548
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), out);
1654916549
#endif
1655016550

16551-
#ifdef WOLFSSL_AES_128
16551+
#if defined(WOLFSSL_AES_128) && !defined(WOLFSSL_AFALG_XILINX_AES)
1655216552
ret = wc_AesGcmSetKey(enc, k3, (word32)k3Sz);
1655316553
if (ret != 0)
1655416554
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), out);

0 commit comments

Comments
 (0)