File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4495,13 +4495,35 @@ AC_ARG_ENABLE([shake128],
44954495 [ ENABLED_SHAKE128=$SHAKE_DEFAULT ]
44964496 )
44974497
4498+ # MLKEM requires SHAKE128. Force-enable when MLKEM is enabled.
4499+ if test "$ENABLED_MLKEM" != "no"
4500+ then
4501+ if test "$ENABLED_SHAKE128" = "no"
4502+ then
4503+ AC_MSG_NOTICE ( [ MLKEM enabled (not explicitly disabled); overriding --disable-shake128 to enable SHAKE128] )
4504+ ENABLED_SHAKE128=yes
4505+ enable_shake128=yes
4506+ fi
4507+ fi
4508+
44984509# SHAKE256
44994510AC_ARG_ENABLE ( [ shake256] ,
45004511 [ AS_HELP_STRING ( [ --enable-shake256] ,[ Enable wolfSSL SHAKE256 support (default: disabled)] ) ] ,
45014512 [ ENABLED_SHAKE256=$enableval ] ,
45024513 [ ENABLED_SHAKE256=$SHAKE_DEFAULT ]
45034514 )
45044515
4516+ # MLKEM requires SHAKE256. Force-enable when MLKEM is enabled.
4517+ if test "$ENABLED_MLKEM" != "no"
4518+ then
4519+ if test "$ENABLED_SHAKE256" = "no"
4520+ then
4521+ AC_MSG_NOTICE ( [ MLKEM enabled (not explicitly disabled); overriding --disable-shake256 to enable SHAKE256] )
4522+ ENABLED_SHAKE256=yes
4523+ enable_shake256=yes
4524+ fi
4525+ fi
4526+
45054527# SHA512
45064528AC_ARG_ENABLE ( [ sha512] ,
45074529 [ AS_HELP_STRING ( [ --enable-sha512] ,[ Enable wolfSSL SHA-512 support (default: enabled)] ) ] ,
You can’t perform that action at this time.
0 commit comments