@@ -5942,14 +5942,24 @@ AS_IF([test "x$ENABLED_CMAC" = "xyes"],
59425942 [ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CMAC -DWOLFSSL_AES_DIRECT"] )
59435943
59445944# SHE (Secure Hardware Extension) key update message generation
5945+ # --enable-she=standard: standard SHE support
5946+ # --enable-she=extended: standard + extended overrides (custom KDF/headers)
59455947AC_ARG_ENABLE ( [ she] ,
5946- [ AS_HELP_STRING ( [ --enable-she] ,[ Enable SHE key update support (default: disabled)] ) ] ,
5948+ [ AS_HELP_STRING ( [ --enable-she@<:@ =standard|extended@:>@ ] ,
5949+ [ Enable SHE key update support (default: disabled)] ) ] ,
59475950 [ ENABLED_SHE=$enableval ] ,
59485951 [ ENABLED_SHE=no ]
59495952 )
59505953
5951- AS_IF ( [ test "x$ENABLED_SHE" = "xyes"] ,
5952- [ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE"] )
5954+ if test "x$ENABLED_SHE" = "xstandard" || test "x$ENABLED_SHE" = "xextended"
5955+ then
5956+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE"
5957+ fi
5958+
5959+ if test "x$ENABLED_SHE" = "xextended"
5960+ then
5961+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE_EXTENDED"
5962+ fi
59535963
59545964# AES-XTS
59555965AC_ARG_ENABLE ( [ aesxts] ,
@@ -11549,7 +11559,7 @@ AM_CONDITIONAL([BUILD_FIPS_V6],[test $HAVE_FIPS_VERSION = 6])
1154911559AM_CONDITIONAL([ BUILD_FIPS_V6_PLUS] ,[ test $HAVE_FIPS_VERSION -ge 6] )
1155011560AM_CONDITIONAL([ BUILD_SIPHASH] ,[ test "x$ENABLED_SIPHASH" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1155111561AM_CONDITIONAL([ BUILD_CMAC] ,[ test "x$ENABLED_CMAC" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11552- AM_CONDITIONAL([ BUILD_SHE] ,[ test "x$ENABLED_SHE" = "xyes " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11562+ AM_CONDITIONAL([ BUILD_SHE] ,[ test "x$ENABLED_SHE" = "xstandard" || test "x$ENABLED_SHE" = "xextended " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1155311563AM_CONDITIONAL([ BUILD_SELFTEST] ,[ test "x$ENABLED_SELFTEST" = "xyes"] )
1155411564AM_CONDITIONAL([ BUILD_SHA224] ,[ test "x$ENABLED_SHA224" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1155511565AM_CONDITIONAL([ BUILD_SHA3] ,[ test "x$ENABLED_SHA3" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
0 commit comments