diff --git a/wolfcrypt/src/port/arm/armv8-aes.c b/wolfcrypt/src/port/arm/armv8-aes.c index 16f14b746..b629c9666 100644 --- a/wolfcrypt/src/port/arm/armv8-aes.c +++ b/wolfcrypt/src/port/arm/armv8-aes.c @@ -33,12 +33,13 @@ #include #if !defined(NO_AES) && defined(WOLFSSL_ARMASM) -#ifndef WOLFSSL_ARMASM_NO_HW_CRYPTO -#ifdef HAVE_FIPS -#undef HAVE_FIPS +#if defined(HAVE_FIPS) && !defined(FIPS_NO_WRAPPERS) +#define FIPS_NO_WRAPPERS #endif +#ifndef WOLFSSL_ARMASM_NO_HW_CRYPTO + #include #include #include