@@ -5947,14 +5947,24 @@ AS_IF([test "x$ENABLED_CMAC" = "xyes"],
59475947 [ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CMAC -DWOLFSSL_AES_DIRECT"] )
59485948
59495949# SHE (Secure Hardware Extension) key update message generation
5950+ # --enable-she=standard: standard SHE support
5951+ # --enable-she=extended: standard + extended overrides (custom KDF/headers)
59505952AC_ARG_ENABLE ( [ she] ,
5951- [ AS_HELP_STRING ( [ --enable-she] ,[ Enable SHE key update support (default: disabled)] ) ] ,
5953+ [ AS_HELP_STRING ( [ --enable-she@<:@ =standard|extended@:>@ ] ,
5954+ [ Enable SHE key update support (default: disabled)] ) ] ,
59525955 [ ENABLED_SHE=$enableval ] ,
59535956 [ ENABLED_SHE=no ]
59545957 )
59555958
5956- AS_IF ( [ test "x$ENABLED_SHE" = "xyes"] ,
5957- [ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE"] )
5959+ if test "x$ENABLED_SHE" = "xstandard" || test "x$ENABLED_SHE" = "xextended"
5960+ then
5961+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE"
5962+ fi
5963+
5964+ if test "x$ENABLED_SHE" = "xextended"
5965+ then
5966+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE_EXTENDED"
5967+ fi
59585968
59595969# AES-XTS
59605970AC_ARG_ENABLE ( [ aesxts] ,
@@ -11554,7 +11564,7 @@ AM_CONDITIONAL([BUILD_FIPS_V6],[test $HAVE_FIPS_VERSION = 6])
1155411564AM_CONDITIONAL([ BUILD_FIPS_V6_PLUS] ,[ test $HAVE_FIPS_VERSION -ge 6] )
1155511565AM_CONDITIONAL([ BUILD_SIPHASH] ,[ test "x$ENABLED_SIPHASH" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1155611566AM_CONDITIONAL([ BUILD_CMAC] ,[ test "x$ENABLED_CMAC" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11557- AM_CONDITIONAL([ BUILD_SHE] ,[ test "x$ENABLED_SHE" = "xyes " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11567+ AM_CONDITIONAL([ BUILD_SHE] ,[ test "x$ENABLED_SHE" = "xstandard" || test "x$ENABLED_SHE" = "xextended " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1155811568AM_CONDITIONAL([ BUILD_SELFTEST] ,[ test "x$ENABLED_SELFTEST" = "xyes"] )
1155911569AM_CONDITIONAL([ BUILD_SHA224] ,[ test "x$ENABLED_SHA224" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1156011570AM_CONDITIONAL([ BUILD_SHA3] ,[ test "x$ENABLED_SHA3" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
0 commit comments