Skip to content

Commit 6040cd7

Browse files
committed
configure.ac: fix to allow SHAKE force-off FIPS lean-aesgcm setup.
1 parent 0bfa206 commit 6040cd7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

configure.ac

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4509,7 +4509,6 @@ then
45094509
then
45104510
AC_MSG_NOTICE([MLKEM enabled (not explicitly disabled); overriding --disable-shake128 to enable SHAKE128])
45114511
ENABLED_SHAKE128=yes
4512-
enable_shake128=yes
45134512
fi
45144513
fi
45154514

@@ -4527,7 +4526,6 @@ then
45274526
then
45284527
AC_MSG_NOTICE([MLKEM enabled (not explicitly disabled); overriding --disable-shake256 to enable SHAKE256])
45294528
ENABLED_SHAKE256=yes
4530-
enable_shake256=yes
45314529
fi
45324530
fi
45334531

@@ -6674,6 +6672,14 @@ AS_CASE([$FIPS_VERSION],
66746672
(test "$FIPS_VERSION" != "lean-aesgcm-dev" || test "$enable_sha3" != "yes")],
66756673
[enable_sha3="no"; ENABLED_SHA3="no"; AM_CFLAGS="$AM_CFLAGS -UWOLFSSL_SHA3"])
66766674
6675+
AS_IF([test "$ENABLED_SHAKE128" != "no" &&
6676+
(test "$FIPS_VERSION" != "lean-aesgcm-dev" || test "$enable_shake128" != "yes")],
6677+
[enable_shake128="no"; ENABLED_SHAKE128="no"])
6678+
6679+
AS_IF([test "$ENABLED_SHAKE256" != "no" &&
6680+
(test "$FIPS_VERSION" != "lean-aesgcm-dev" || test "$enable_shake256" != "yes")],
6681+
[enable_shake256="no"; ENABLED_SHAKE256="no"])
6682+
66776683
AS_IF([test "$ENABLED_SHA224" != "no" &&
66786684
(test "$FIPS_VERSION" != "lean-aesgcm-dev" || test "$enable_sha224" != "yes")],
66796685
[enable_sha224="no"; ENABLED_SHA224="no"; AM_CFLAGS="$AM_CFLAGS -UWOLFSSL_SHA224"])
@@ -7046,14 +7052,12 @@ then
70467052
then
70477053
AC_MSG_WARN([MLKEM enabled (not explicitly disabled); overriding --disable-shake128 to enable SHAKE128])
70487054
ENABLED_SHAKE128=yes
7049-
enable_shake128=yes
70507055
fi
70517056
70527057
if test "$ENABLED_SHAKE256" = "no"
70537058
then
70547059
AC_MSG_WARN([MLKEM enabled (not explicitly disabled); overriding --disable-shake256 to enable SHAKE256])
70557060
ENABLED_SHAKE256=yes
7056-
enable_shake256=yes
70577061
fi
70587062
fi
70597063

0 commit comments

Comments
 (0)