From 9c1fe16e6225d32a4c55e09809a01ca842a696e6 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 4 Dec 2020 10:42:28 -0800 Subject: [PATCH] Fix a bad assignment in the configure script. --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 904606c77..b9b5adf96 100644 --- a/configure.ac +++ b/configure.ac @@ -3098,6 +3098,20 @@ AS_CASE([$SELFTEST_VERSION], ]) +AS_IF([test "x$ENABLED_FIPS" = "xyes"],[ENABLED_SHAKE256="no"]) + +if test "$ENABLED_SHAKE256" = "yes" || test "$ENABLED_SHAKE256" = "small" +then + if test "$ENABLED_32BIT" = "no" + then + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHAKE256" + if test "$ENABLED_SHA3" = "no" + then + AC_MSG_ERROR([Must have SHA-3 enabled: --enable-sha3]) + fi + fi +fi + # set POLY1305 default POLY1305_DEFAULT=yes