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"