Skip to content

Commit 2b47453

Browse files
committed
configure.ac: add SHAKE_DEFAULT, following ENABLED_SHA3, with a FIPS v6 threshold.
1 parent a984998 commit 2b47453

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

configure.ac

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4535,18 +4535,26 @@ then
45354535
AM_CFLAGS="$AM_CFLAGS -DWC_SHA3_NO_ASM"
45364536
fi
45374537

4538+
if test "$ENABLED_SHA3" != "no" &&
4539+
(test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -ge 6)
4540+
then
4541+
SHAKE_DEFAULT=yes
4542+
else
4543+
SHAKE_DEFAULT=no
4544+
fi
4545+
45384546
# SHAKE128
45394547
AC_ARG_ENABLE([shake128],
45404548
[AS_HELP_STRING([--enable-shake128],[Enable wolfSSL SHAKE128 support (default: disabled)])],
45414549
[ ENABLED_SHAKE128=$enableval ],
4542-
[ ENABLED_SHAKE128=no ]
4550+
[ ENABLED_SHAKE128=$SHAKE_DEFAULT ]
45434551
)
45444552

45454553
# SHAKE256
45464554
AC_ARG_ENABLE([shake256],
45474555
[AS_HELP_STRING([--enable-shake256],[Enable wolfSSL SHAKE256 support (default: disabled)])],
45484556
[ ENABLED_SHAKE256=$enableval ],
4549-
[ ENABLED_SHAKE256=no ]
4557+
[ ENABLED_SHAKE256=$SHAKE_DEFAULT ]
45504558
)
45514559

45524560
# SHA512

0 commit comments

Comments
 (0)