@@ -5946,14 +5946,24 @@ AS_IF([test "x$ENABLED_CMAC" = "xyes"],
59465946 [ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CMAC -DWOLFSSL_AES_DIRECT"] )
59475947
59485948# SHE (Secure Hardware Extension) key update message generation
5949+ # --enable-she=standard: standard SHE support
5950+ # --enable-she=extended: standard + extended overrides (custom KDF/headers)
59495951AC_ARG_ENABLE ( [ she] ,
5950- [ AS_HELP_STRING ( [ --enable-she] ,[ Enable SHE key update support (default: disabled)] ) ] ,
5952+ [ AS_HELP_STRING ( [ --enable-she@<:@ =standard|extended@:>@ ] ,
5953+ [ Enable SHE key update support (default: disabled)] ) ] ,
59515954 [ ENABLED_SHE=$enableval ] ,
59525955 [ ENABLED_SHE=no ]
59535956 )
59545957
5955- AS_IF ( [ test "x$ENABLED_SHE" = "xyes"] ,
5956- [ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE"] )
5958+ if test "x$ENABLED_SHE" = "xstandard" || test "x$ENABLED_SHE" = "xextended"
5959+ then
5960+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE"
5961+ fi
5962+
5963+ if test "x$ENABLED_SHE" = "xextended"
5964+ then
5965+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHE_EXTENDED"
5966+ fi
59575967
59585968# AES-XTS
59595969AC_ARG_ENABLE ( [ aesxts] ,
@@ -11564,7 +11574,7 @@ AM_CONDITIONAL([BUILD_FIPS_V6],[test $HAVE_FIPS_VERSION = 6])
1156411574AM_CONDITIONAL([ BUILD_FIPS_V6_PLUS] ,[ test $HAVE_FIPS_VERSION -ge 6] )
1156511575AM_CONDITIONAL([ BUILD_SIPHASH] ,[ test "x$ENABLED_SIPHASH" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1156611576AM_CONDITIONAL([ BUILD_CMAC] ,[ test "x$ENABLED_CMAC" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11567- AM_CONDITIONAL([ BUILD_SHE] ,[ test "x$ENABLED_SHE" = "xyes " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11577+ AM_CONDITIONAL([ BUILD_SHE] ,[ test "x$ENABLED_SHE" = "xstandard" || test "x$ENABLED_SHE" = "xextended " || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1156811578AM_CONDITIONAL([ BUILD_SELFTEST] ,[ test "x$ENABLED_SELFTEST" = "xyes"] )
1156911579AM_CONDITIONAL([ BUILD_SHA224] ,[ test "x$ENABLED_SHA224" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1157011580AM_CONDITIONAL([ BUILD_SHA3] ,[ test "x$ENABLED_SHA3" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
0 commit comments