diff --git a/wolfcrypt/src/misc.c b/wolfcrypt/src/misc.c index 899c64880..c61804123 100644 --- a/wolfcrypt/src/misc.c +++ b/wolfcrypt/src/misc.c @@ -212,6 +212,7 @@ STATIC INLINE int ConstantCompare(const byte* a, const byte* b, int length) #ifndef WOLFSSL_HAVE_MIN #define WOLFSSL_HAVE_MIN + #define min min /* for ctaocrypt FIPS */ STATIC INLINE word32 min(word32 a, word32 b) { return a > b ? b : a; diff --git a/wolfssl/wolfcrypt/misc.h b/wolfssl/wolfcrypt/misc.h index 9e8ab15f2..71069c6f5 100644 --- a/wolfssl/wolfcrypt/misc.h +++ b/wolfssl/wolfcrypt/misc.h @@ -68,6 +68,7 @@ void ByteReverseWords64(word64*, const word64*, word32); #endif /* WORD64_AVAILABLE */ #ifndef WOLFSSL_HAVE_MIN + #define min min /* for ctaocrypt FIPS */ WOLFSSL_LOCAL word32 min(word32 a, word32 b); #endif