Skip to content

Commit 738462a

Browse files
committed
Remove redundent gates
1 parent b8a3834 commit 738462a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11677,7 +11677,6 @@ static wc_test_ret_t aes_xts_192_test(void)
1167711677
0x65, 0x37, 0x15, 0x53, 0xf1, 0x98, 0xab, 0xb4
1167811678
};
1167911679

11680-
#ifndef HAVE_FIPS /* FIPS requires different keys for main and tweak. */
1168111680
WOLFSSL_SMALL_STACK_STATIC unsigned char k3[] = {
1168211681
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
1168311682
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
@@ -11704,7 +11703,6 @@ static wc_test_ret_t aes_xts_192_test(void)
1170411703
0xe8, 0xc5, 0x99, 0x3d, 0x58, 0x3c, 0xeb, 0xba,
1170511704
0x86, 0xea, 0x2c, 0x7e, 0x1f, 0xba, 0x81, 0xde
1170611705
};
11707-
#endif /* HAVE_FIPS */
1170811706

1170911707
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
1171011708
if ((aes = (XtsAes *)XMALLOC(sizeof *aes, HEAP_HINT, DYNAMIC_TYPE_AES)) == NULL)
@@ -12019,8 +12017,6 @@ static wc_test_ret_t aes_xts_192_test(void)
1201912017
if (XMEMCMP(p2, buf, sizeof(p2)))
1202012018
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
1202112019

12022-
#ifndef HAVE_FIPS
12023-
1202412020
/* Test ciphertext stealing in-place. */
1202512021
XMEMCPY(buf, p3, sizeof(p3));
1202612022
ret = wc_AesXtsSetKeyNoInit(aes, k3, sizeof(k3), AES_ENCRYPTION);
@@ -12104,8 +12100,6 @@ static wc_test_ret_t aes_xts_192_test(void)
1210412100
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
1210512101
#endif /* WOLFSSL_AESXTS_STREAM */
1210612102

12107-
#endif /* !HAVE_FIPS */
12108-
1210912103
#if !defined(BENCH_EMBEDDED) && !defined(HAVE_CAVIUM) && \
1211012104
!defined(WOLFSSL_AFALG)
1211112105
{

0 commit comments

Comments
 (0)