From 767f1972e3484bc935a6c4505d5dfadc6db2c9a4 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 31 Aug 2020 21:03:04 -0500 Subject: [PATCH] aes.{c,h}: move SIMD includes from aes.h to aes.c, to avoid compiler errors on other .c's compiled -mno-sse for linuxkm. --- wolfcrypt/src/aes.c | 7 +++++++ wolfssl/wolfcrypt/aes.h | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 023fd53a5..dc9389f83 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -52,6 +52,13 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits #endif #include + +#ifdef WOLFSSL_AESNI +#include +#include +#include +#endif /* WOLFSSL_AESNI */ + #include #ifdef WOLF_CRYPTO_CB diff --git a/wolfssl/wolfcrypt/aes.h b/wolfssl/wolfcrypt/aes.h index e8bdcfc2e..966cd757f 100644 --- a/wolfssl/wolfcrypt/aes.h +++ b/wolfssl/wolfcrypt/aes.h @@ -62,14 +62,6 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits #include #endif -#ifdef WOLFSSL_AESNI - -#include -#include -#include - -#endif /* WOLFSSL_AESNI */ - #ifdef WOLFSSL_XILINX_CRYPT #include "xsecure_aes.h"