File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4535,18 +4535,26 @@ then
45354535 AM_CFLAGS="$AM_CFLAGS -DWC_SHA3_NO_ASM"
45364536fi
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
45394547AC_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
45464554AC_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
You can’t perform that action at this time.
0 commit comments