mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Remove redundent gates
This commit is contained in:
@ -11677,7 +11677,6 @@ static wc_test_ret_t aes_xts_192_test(void)
|
|||||||
0x65, 0x37, 0x15, 0x53, 0xf1, 0x98, 0xab, 0xb4
|
0x65, 0x37, 0x15, 0x53, 0xf1, 0x98, 0xab, 0xb4
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef HAVE_FIPS /* FIPS requires different keys for main and tweak. */
|
|
||||||
WOLFSSL_SMALL_STACK_STATIC unsigned char k3[] = {
|
WOLFSSL_SMALL_STACK_STATIC unsigned char k3[] = {
|
||||||
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
|
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
|
||||||
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
|
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
|
||||||
@ -11704,7 +11703,6 @@ static wc_test_ret_t aes_xts_192_test(void)
|
|||||||
0xe8, 0xc5, 0x99, 0x3d, 0x58, 0x3c, 0xeb, 0xba,
|
0xe8, 0xc5, 0x99, 0x3d, 0x58, 0x3c, 0xeb, 0xba,
|
||||||
0x86, 0xea, 0x2c, 0x7e, 0x1f, 0xba, 0x81, 0xde
|
0x86, 0xea, 0x2c, 0x7e, 0x1f, 0xba, 0x81, 0xde
|
||||||
};
|
};
|
||||||
#endif /* HAVE_FIPS */
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
|
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
|
||||||
if ((aes = (XtsAes *)XMALLOC(sizeof *aes, HEAP_HINT, DYNAMIC_TYPE_AES)) == NULL)
|
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)
|
|||||||
if (XMEMCMP(p2, buf, sizeof(p2)))
|
if (XMEMCMP(p2, buf, sizeof(p2)))
|
||||||
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
|
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
|
||||||
|
|
||||||
#ifndef HAVE_FIPS
|
|
||||||
|
|
||||||
/* Test ciphertext stealing in-place. */
|
/* Test ciphertext stealing in-place. */
|
||||||
XMEMCPY(buf, p3, sizeof(p3));
|
XMEMCPY(buf, p3, sizeof(p3));
|
||||||
ret = wc_AesXtsSetKeyNoInit(aes, k3, sizeof(k3), AES_ENCRYPTION);
|
ret = wc_AesXtsSetKeyNoInit(aes, k3, sizeof(k3), AES_ENCRYPTION);
|
||||||
@ -12104,8 +12100,6 @@ static wc_test_ret_t aes_xts_192_test(void)
|
|||||||
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
|
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
|
||||||
#endif /* WOLFSSL_AESXTS_STREAM */
|
#endif /* WOLFSSL_AESXTS_STREAM */
|
||||||
|
|
||||||
#endif /* !HAVE_FIPS */
|
|
||||||
|
|
||||||
#if !defined(BENCH_EMBEDDED) && !defined(HAVE_CAVIUM) && \
|
#if !defined(BENCH_EMBEDDED) && !defined(HAVE_CAVIUM) && \
|
||||||
!defined(WOLFSSL_AFALG)
|
!defined(WOLFSSL_AFALG)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user