From 2575047ea28bec6374eec0650fdba373b0b99bfc Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Tue, 25 Oct 2022 17:05:48 -0500 Subject: [PATCH] wolfcrypt/src/port/arm/armv8-aes.c: define FIPS_NO_WRAPPERS, rather than undefine HAVE_FIPS, to fix FIPS builds. --- wolfcrypt/src/port/arm/armv8-aes.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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