18391839done
18401840
18411841# XMSS
1842- ENABLED_WC_XMSS=no
18431842AC_ARG_ENABLE ( [ xmss] ,
18441843 [ AS_HELP_STRING ( [ --enable-xmss] ,[ Enable stateful XMSS/XMSS^MT signatures (default: disabled)] ) ] ,
18451844 [ ENABLED_XMSS=$enableval ] ,
@@ -1865,60 +1864,7 @@ do
18651864 esac
18661865done
18671866
1868- # libxmss
1869- # Get the path to xmss-reference.
1870- ENABLED_LIBXMSS="no"
1871- trylibxmssdir=""
1872- AC_ARG_WITH ( [ libxmss] ,
1873- [ AS_HELP_STRING ( [ --with-libxmss=PATH] ,[ PATH to xmss-reference root dir. (requires --enable-experimental)!] ) ] ,
1874- [
1875- AS_IF ( [ test "$ENABLED_EXPERIMENTAL" != "yes" ] ,[ AC_MSG_ERROR ( [ libxmss requires --enable-experimental.] ) ] )
1876- AC_MSG_CHECKING ( [ for libxmss] )
1877-
1878- trylibxmssdir=$withval
1879-
1880- if test -e $trylibxmssdir; then
1881- libxmss_linked=yes
1882- else
1883- AC_MSG_ERROR ( [ libxmss isn't found.
1884- If it's already installed, specify its path using --with-libxmss=/dir/] )
1885- fi
1886- if test "$XMSS_VERIFY_ONLY" = "yes"; then
1887- if test -e $trylibxmssdir/xmss_verify_lib.a; then
1888- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1889- LIB_STATIC_ADD="$LIB_STATIC_ADD $trylibxmssdir/xmss_verify_lib.a"
1890- enable_shared=no
1891- enable_static=yes
1892- libxmss_linked=yes
1893- else
1894- AC_MSG_ERROR ( [ xmss_verify_lib.a isn't found.
1895- If it's already installed, specify its path using --with-libxmss=/dir/] )
1896- fi
1897- elif test -e $trylibxmssdir/xmss_lib.a; then
1898- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1899- LIB_STATIC_ADD="$LIB_STATIC_ADD $trylibxmssdir/xmss_lib.a"
1900- enable_shared=no
1901- enable_static=yes
1902- libxmss_linked=yes
1903- else
1904- AC_MSG_ERROR ( [ libxmss isn't found.
1905- If it's already installed, specify its path using --with-libxmss=/dir/] )
1906- fi
1907-
1908- XMSS_ROOT=$trylibxmssdir
1909-
1910- AC_MSG_RESULT ( [ yes] )
1911- AM_CPPFLAGS="$CPPFLAGS"
1912-
1913- AM_CFLAGS="$AM_CFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1914- ENABLED_LIBXMSS="yes"
1915- AC_SUBST ( [ XMSS_ROOT] )
1916- ] ,
1917- [ XMSS_ROOT=""]
1918- )
1919-
19201867# LMS
1921- ENABLED_WC_LMS=no
19221868AC_ARG_ENABLE ( [ lms] ,
19231869 [ AS_HELP_STRING ( [ --enable-lms] ,[ Enable stateful LMS/HSS signatures (default: disabled)] ) ] ,
19241870 [ ENABLED_LMS=$enableval ] ,
@@ -1953,74 +1899,6 @@ do
19531899 esac
19541900done
19551901
1956- # liblms
1957- # Get the path to the hash-sigs LMS HSS lib.
1958- ENABLED_LIBLMS="no"
1959- tryliblmsdir=""
1960- AC_ARG_WITH ( [ liblms] ,
1961- [ AS_HELP_STRING ( [ --with-liblms=PATH] ,[ PATH to hash-sigs LMS/HSS install (default /usr/local) (requires --enable-experimental)!] ) ] ,
1962- [
1963- AS_IF ( [ test "$ENABLED_EXPERIMENTAL" != "yes" ] ,[ AC_MSG_ERROR ( [ liblms requires --enable-experimental.] ) ] )
1964- AC_MSG_CHECKING ( [ for liblms] )
1965-
1966- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <hss.h>] ] , [ [ param_set_t lm_type; param_set_t lm_ots_type; hss_get_public_key_len(4, &lm_type, &lm_ots_type); ] ] ) ] , [ liblms_linked=yes ] ,[ liblms_linked=no ] )
1967-
1968- if test "x$liblms_linked" = "xno" ; then
1969- if test "x$withval" != "xno" ; then
1970- tryliblmsdir=$withval
1971- fi
1972- if test "x$withval" = "xyes" ; then
1973- tryliblmsdir="/usr/local"
1974- fi
1975-
1976- # 1. If verify only build, use hss_verify.a
1977- # 2. If normal build, by default use single-threaded hss_lib.a
1978- # 3. If 2 not found, then use the multi-threaded hss_lib_thread.a
1979- if test "$LMS_VERIFY_ONLY" = "yes"; then
1980- if test -e $tryliblmsdir/hss_verify.a; then
1981- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
1982- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_verify.a"
1983- enable_shared=no
1984- enable_static=yes
1985- liblms_linked=yes
1986- else
1987- AC_MSG_ERROR ( [ hss_verify.a isn't found.
1988- If it's already installed, specify its path using --with-liblms=/dir/] )
1989- fi
1990- elif test -e $tryliblmsdir/hss_lib.a; then
1991- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
1992- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_lib.a"
1993- enable_shared=no
1994- enable_static=yes
1995- liblms_linked=yes
1996- elif test -e $tryliblmsdir/hss_lib_thread.a; then
1997- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
1998- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_lib_thread.a"
1999- enable_shared=no
2000- enable_static=yes
2001- liblms_linked=yes
2002- else
2003- AC_MSG_ERROR ( [ liblms isn't found.
2004- If it's already installed, specify its path using --with-liblms=/dir/] )
2005- fi
2006-
2007- if test "x$liblms_linked" = "xno" ; then
2008- AC_MSG_ERROR ( [ liblms isn't found.
2009- If it's already installed, specify its path using --with-liblms=/dir/] )
2010- fi
2011-
2012- AC_MSG_RESULT ( [ yes] )
2013- AM_CPPFLAGS="$CPPFLAGS"
2014- AM_LDFLAGS="$LDFLAGS"
2015- else
2016- AC_MSG_RESULT ( [ yes] )
2017- fi
2018-
2019- AM_CFLAGS="$AM_CFLAGS -DHAVE_LIBLMS"
2020- ENABLED_LIBLMS="yes"
2021- ]
2022- )
2023-
20241902# SLH-DSA
20251903ENABLED_SLHDSA=yes
20261904AC_ARG_ENABLE ( [ slhdsa] ,
@@ -7539,28 +7417,12 @@ fi
75397417if test "$ENABLED_XMSS" != "no"
75407418then
75417419 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_XMSS"
7542-
7543- # Use hash-sigs XMSS lib if enabled.
7544- if test "$ENABLED_LIBXMSS" = "yes"; then
7545- ENABLED_WC_XMSS=no
7546- else
7547- ENABLED_WC_XMSS=yes
7548- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_XMSS"
7549- fi
75507420fi
75517421
75527422# LMS CFLAG processing (after FIPS section for sandwich pattern)
75537423if test "$ENABLED_LMS" != "no"
75547424then
75557425 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_LMS"
7556-
7557- # Use hash-sigs LMS lib if enabled.
7558- if test "$ENABLED_LIBLMS" = "yes"; then
7559- ENABLED_WC_LMS=no
7560- else
7561- ENABLED_WC_LMS=yes
7562- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_LMS"
7563- fi
75647426fi
75657427
75667428# SLH-DSA CFLAG processing (after FIPS section for sandwich pattern)
@@ -12186,8 +12048,8 @@ AM_CONDITIONAL([BUILD_FE448], [test "x$ENABLED_FE448" = "xyes" || test "x$ENABLE
1218612048AM_CONDITIONAL([ BUILD_GE448] , [ test "x$ENABLED_GE448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1218712049AM_CONDITIONAL([ BUILD_CURVE448] ,[ test "x$ENABLED_CURVE448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1218812050AM_CONDITIONAL([ BUILD_CURVE448_SMALL] ,[ test "x$ENABLED_CURVE448_SMALL" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12189- AM_CONDITIONAL([ BUILD_WC_LMS] ,[ test "x$ENABLED_WC_LMS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12190- AM_CONDITIONAL([ BUILD_WC_XMSS] ,[ test "x$ENABLED_WC_XMSS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12051+ AM_CONDITIONAL([ BUILD_WC_LMS] ,[ test "x$ENABLED_LMS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12052+ AM_CONDITIONAL([ BUILD_WC_XMSS] ,[ test "x$ENABLED_XMSS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1219112053AM_CONDITIONAL([ BUILD_WC_SLHDSA] ,[ test "x$ENABLED_SLHDSA" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1219212054AM_CONDITIONAL([ BUILD_WC_MLKEM] ,[ test "x$ENABLED_WC_MLKEM" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1219312055AM_CONDITIONAL([ BUILD_DILITHIUM] ,[ test "x$ENABLED_DILITHIUM" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
@@ -12238,8 +12100,6 @@ AM_CONDITIONAL([BUILD_OCSP_STAPLING_MULTI],[test "x$ENABLED_CERTIFICATE_STATUS_R
1223812100AM_CONDITIONAL([ BUILD_OCSP_STAPLING_V2] ,[ test "x$ENABLED_CERTIFICATE_STATUS_REQUEST_V2" = "xyes"] )
1223912101AM_CONDITIONAL([ BUILD_CRL] ,[ test "x$ENABLED_CRL" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1224012102AM_CONDITIONAL([ BUILD_CRL_MONITOR] ,[ test "x$ENABLED_CRL_MONITOR" = "xyes"] )
12241- AM_CONDITIONAL([ BUILD_LIBLMS] ,[ test "x$ENABLED_LIBLMS" = "xyes"] )
12242- AM_CONDITIONAL([ BUILD_LIBXMSS] ,[ test "x$ENABLED_LIBXMSS" = "xyes"] )
1224312103AM_CONDITIONAL([ BUILD_LIBOQS] ,[ test "x$ENABLED_LIBOQS" = "xyes"] )
1224412104AM_CONDITIONAL([ BUILD_WNR] ,[ test "x$ENABLED_WNR" = "xyes"] )
1224512105AM_CONDITIONAL([ BUILD_SRP] ,[ test "x$ENABLED_SRP" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
@@ -12741,12 +12601,7 @@ echo " * CURVE448: $ENABLED_CURVE448"
1274112601echo " * ED448: $ENABLED_ED448"
1274212602echo " * ED448 streaming: $ENABLED_ED448_STREAM"
1274312603echo " * LMS: $ENABLED_LMS"
12744- echo " * LMS wolfSSL impl: $ENABLED_WC_LMS"
1274512604echo " * XMSS: $ENABLED_XMSS"
12746- echo " * XMSS wolfSSL impl: $ENABLED_WC_XMSS"
12747- if test "$ENABLED_LIBXMSS" = "yes"; then
12748- echo " * XMSS_ROOT: $XMSS_ROOT"
12749- fi
1275012605echo " * SLH-DSA $ENABLED_SLHDSA"
1275112606echo " * MLKEM: $ENABLED_MLKEM"
1275212607echo " * MLKEM wolfSSL impl: $ENABLED_WC_MLKEM"
@@ -12807,8 +12662,6 @@ echo " * Persistent session cache: $ENABLED_SAVESESSION"
1280712662echo " * Persistent cert cache: $ENABLED_SAVECERT"
1280812663echo " * Atomic User Record Layer: $ENABLED_ATOMICUSER"
1280912664echo " * Public Key Callbacks: $ENABLED_PKCALLBACKS"
12810- echo " * libxmss: $ENABLED_LIBXMSS"
12811- echo " * liblms: $ENABLED_LIBLMS"
1281212665echo " * liboqs: $ENABLED_LIBOQS"
1281312666echo " * Whitewood netRandom: $ENABLED_WNR"
1281412667echo " * Server Name Indication: $ENABLED_SNI"
0 commit comments