From 8e24bf6c2c54320b57cd19d2d136bb03987eb256 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 7 Jan 2020 09:52:50 -0700 Subject: [PATCH] add macro guard for optimized versions --- tests/api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index a14ae4a2c..0481b3bef 100644 --- a/tests/api.c +++ b/tests/api.c @@ -9991,7 +9991,8 @@ static int test_wc_Chacha_Process (void) ret = XMEMCMP(input, plain, (int)inlen); 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); AssertIntEQ(ret, 0); ret = wc_Chacha_SetIV(&dec, cipher, 0); @@ -10009,6 +10010,7 @@ static int test_wc_Chacha_Process (void) AssertIntEQ(ret, 0); ret = XMEMCMP(input, plain, (int)inlen); AssertIntEQ(ret, 0); +#endif /* Test bad args. */ ret = wc_Chacha_Process(NULL, cipher, (byte*)input, (word32)inlen);