add macro guard for optimized versions

This commit is contained in:
Jacob Barthelmeh
2020-01-07 09:52:50 -07:00
parent 0ec7b311d8
commit 8e24bf6c2c

View File

@ -9991,7 +9991,8 @@ static int test_wc_Chacha_Process (void)
ret = XMEMCMP(input, plain, (int)inlen); ret = XMEMCMP(input, plain, (int)inlen);
AssertIntEQ(ret, 0); AssertIntEQ(ret, 0);
/* test checking and using leftovers */ #if !defined(USE_INTEL_CHACHA_SPEEDUP) && !defined(WOLFSSL_ARMASM)
/* test checking and using leftovers, currently just in C code */
ret = wc_Chacha_SetIV(&enc, cipher, 0); ret = wc_Chacha_SetIV(&enc, cipher, 0);
AssertIntEQ(ret, 0); AssertIntEQ(ret, 0);
ret = wc_Chacha_SetIV(&dec, cipher, 0); ret = wc_Chacha_SetIV(&dec, cipher, 0);
@ -10009,6 +10010,7 @@ static int test_wc_Chacha_Process (void)
AssertIntEQ(ret, 0); AssertIntEQ(ret, 0);
ret = XMEMCMP(input, plain, (int)inlen); ret = XMEMCMP(input, plain, (int)inlen);
AssertIntEQ(ret, 0); AssertIntEQ(ret, 0);
#endif
/* Test bad args. */ /* Test bad args. */
ret = wc_Chacha_Process(NULL, cipher, (byte*)input, (word32)inlen); ret = wc_Chacha_Process(NULL, cipher, (byte*)input, (word32)inlen);