From 10304c9143b312b6a04586671d3882e6d2b912fc Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 8 Oct 2021 21:19:49 -0500 Subject: [PATCH] linuxkm: portability fix in aes.c for SAVE_VECTOR_REGISTERS() call ("embedding a directive within macro arguments is not portable"). --- wolfcrypt/src/aes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 09062cc57..7bccb403d 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -812,11 +812,11 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits nr = temp_key->rounds; aes->rounds = nr; - SAVE_VECTOR_REGISTERS( #ifdef WOLFSSL_SMALL_STACK - XFREE(temp_key, aes->heap, DYNAMIC_TYPE_AES); + SAVE_VECTOR_REGISTERS(XFREE(temp_key, aes->heap, DYNAMIC_TYPE_AES); return _svr_ret;); +#else + SAVE_VECTOR_REGISTERS(return _svr_ret;); #endif - return _svr_ret;); Key_Schedule[nr] = Temp_Key_Schedule[0]; Key_Schedule[nr-1] = _mm_aesimc_si128(Temp_Key_Schedule[1]);