@@ -1862,7 +1862,6 @@ then
18621862fi
18631863
18641864# XMSS
1865- ENABLED_WC_XMSS=no
18661865AC_ARG_ENABLE ( [ xmss] ,
18671866 [ AS_HELP_STRING ( [ --enable-xmss] ,[ Enable stateful XMSS/XMSS^MT signatures (default: disabled)] ) ] ,
18681867 [ ENABLED_XMSS=$enableval ] ,
@@ -1888,73 +1887,12 @@ do
18881887 esac
18891888done
18901889
1891- # libxmss
1892- # Get the path to xmss-reference.
1893- ENABLED_LIBXMSS="no"
1894- trylibxmssdir=""
1895- AC_ARG_WITH ( [ libxmss] ,
1896- [ AS_HELP_STRING ( [ --with-libxmss=PATH] ,[ PATH to xmss-reference root dir. (requires --enable-experimental)!] ) ] ,
1897- [
1898- AS_IF ( [ test "$ENABLED_EXPERIMENTAL" != "yes" ] ,[ AC_MSG_ERROR ( [ libxmss requires --enable-experimental.] ) ] )
1899- AC_MSG_CHECKING ( [ for libxmss] )
1900-
1901- trylibxmssdir=$withval
1902-
1903- if test -e $trylibxmssdir; then
1904- libxmss_linked=yes
1905- else
1906- AC_MSG_ERROR ( [ libxmss isn't found.
1907- If it's already installed, specify its path using --with-libxmss=/dir/] )
1908- fi
1909- if test "$XMSS_VERIFY_ONLY" = "yes"; then
1910- if test -e $trylibxmssdir/xmss_verify_lib.a; then
1911- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1912- LIB_STATIC_ADD="$LIB_STATIC_ADD $trylibxmssdir/xmss_verify_lib.a"
1913- enable_shared=no
1914- enable_static=yes
1915- libxmss_linked=yes
1916- else
1917- AC_MSG_ERROR ( [ xmss_verify_lib.a isn't found.
1918- If it's already installed, specify its path using --with-libxmss=/dir/] )
1919- fi
1920- elif test -e $trylibxmssdir/xmss_lib.a; then
1921- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1922- LIB_STATIC_ADD="$LIB_STATIC_ADD $trylibxmssdir/xmss_lib.a"
1923- enable_shared=no
1924- enable_static=yes
1925- libxmss_linked=yes
1926- else
1927- AC_MSG_ERROR ( [ libxmss isn't found.
1928- If it's already installed, specify its path using --with-libxmss=/dir/] )
1929- fi
1930-
1931- XMSS_ROOT=$trylibxmssdir
1932-
1933- AC_MSG_RESULT ( [ yes] )
1934- AM_CPPFLAGS="$CPPFLAGS"
1935-
1936- AM_CFLAGS="$AM_CFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1937- ENABLED_LIBXMSS="yes"
1938- AC_SUBST ( [ XMSS_ROOT] )
1939- ] ,
1940- [ XMSS_ROOT=""]
1941- )
1942-
19431890if test "$ENABLED_XMSS" != "no"
19441891then
19451892 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_XMSS"
1946-
1947- # Use hash-sigs XMSS lib if enabled.
1948- if test "$ENABLED_LIBXMSS" = "yes"; then
1949- ENABLED_WC_XMSS=no
1950- else
1951- ENABLED_WC_XMSS=yes
1952- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_XMSS"
1953- fi
19541893fi
19551894
19561895# LMS
1957- ENABLED_WC_LMS=no
19581896AC_ARG_ENABLE ( [ lms] ,
19591897 [ AS_HELP_STRING ( [ --enable-lms] ,[ Enable stateful LMS/HSS signatures (default: disabled)] ) ] ,
19601898 [ ENABLED_LMS=$enableval ] ,
@@ -1986,85 +1924,9 @@ do
19861924 esac
19871925done
19881926
1989- # liblms
1990- # Get the path to the hash-sigs LMS HSS lib.
1991- ENABLED_LIBLMS="no"
1992- tryliblmsdir=""
1993- AC_ARG_WITH ( [ liblms] ,
1994- [ AS_HELP_STRING ( [ --with-liblms=PATH] ,[ PATH to hash-sigs LMS/HSS install (default /usr/local) (requires --enable-experimental)!] ) ] ,
1995- [
1996- AS_IF ( [ test "$ENABLED_EXPERIMENTAL" != "yes" ] ,[ AC_MSG_ERROR ( [ liblms requires --enable-experimental.] ) ] )
1997- AC_MSG_CHECKING ( [ for liblms] )
1998-
1999- 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 ] )
2000-
2001- if test "x$liblms_linked" = "xno" ; then
2002- if test "x$withval" != "xno" ; then
2003- tryliblmsdir=$withval
2004- fi
2005- if test "x$withval" = "xyes" ; then
2006- tryliblmsdir="/usr/local"
2007- fi
2008-
2009- # 1. If verify only build, use hss_verify.a
2010- # 2. If normal build, by default use single-threaded hss_lib.a
2011- # 3. If 2 not found, then use the multi-threaded hss_lib_thread.a
2012- if test "$LMS_VERIFY_ONLY" = "yes"; then
2013- if test -e $tryliblmsdir/hss_verify.a; then
2014- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
2015- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_verify.a"
2016- enable_shared=no
2017- enable_static=yes
2018- liblms_linked=yes
2019- else
2020- AC_MSG_ERROR ( [ hss_verify.a isn't found.
2021- If it's already installed, specify its path using --with-liblms=/dir/] )
2022- fi
2023- elif test -e $tryliblmsdir/hss_lib.a; then
2024- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
2025- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_lib.a"
2026- enable_shared=no
2027- enable_static=yes
2028- liblms_linked=yes
2029- elif test -e $tryliblmsdir/hss_lib_thread.a; then
2030- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
2031- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_lib_thread.a"
2032- enable_shared=no
2033- enable_static=yes
2034- liblms_linked=yes
2035- else
2036- AC_MSG_ERROR ( [ liblms isn't found.
2037- If it's already installed, specify its path using --with-liblms=/dir/] )
2038- fi
2039-
2040- if test "x$liblms_linked" = "xno" ; then
2041- AC_MSG_ERROR ( [ liblms isn't found.
2042- If it's already installed, specify its path using --with-liblms=/dir/] )
2043- fi
2044-
2045- AC_MSG_RESULT ( [ yes] )
2046- AM_CPPFLAGS="$CPPFLAGS"
2047- AM_LDFLAGS="$LDFLAGS"
2048- else
2049- AC_MSG_RESULT ( [ yes] )
2050- fi
2051-
2052- AM_CFLAGS="$AM_CFLAGS -DHAVE_LIBLMS"
2053- ENABLED_LIBLMS="yes"
2054- ]
2055- )
2056-
20571927if test "$ENABLED_LMS" != "no"
20581928then
20591929 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_LMS"
2060-
2061- # Use hash-sigs LMS lib if enabled.
2062- if test "$ENABLED_LIBLMS" = "yes"; then
2063- ENABLED_WC_LMS=no
2064- else
2065- ENABLED_WC_LMS=yes
2066- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_LMS"
2067- fi
20681930fi
20691931
20701932# SLH-DSA
@@ -11571,8 +11433,8 @@ AM_CONDITIONAL([BUILD_FE448], [test "x$ENABLED_FE448" = "xyes" || test "x$ENABLE
1157111433AM_CONDITIONAL([ BUILD_GE448] , [ test "x$ENABLED_GE448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1157211434AM_CONDITIONAL([ BUILD_CURVE448] ,[ test "x$ENABLED_CURVE448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1157311435AM_CONDITIONAL([ BUILD_CURVE448_SMALL] ,[ test "x$ENABLED_CURVE448_SMALL" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11574- AM_CONDITIONAL([ BUILD_WC_LMS ] ,[ test "x$ENABLED_WC_LMS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11575- AM_CONDITIONAL([ BUILD_WC_XMSS ] ,[ test "x$ENABLED_WC_XMSS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11436+ AM_CONDITIONAL([ BUILD_LMS ] ,[ test "x$ENABLED_LMS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11437+ AM_CONDITIONAL([ BUILD_XMSS ] ,[ test "x$ENABLED_XMSS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1157611438AM_CONDITIONAL([ BUILD_WC_SLHDSA] ,[ test "x$ENABLED_SLHDSA" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1157711439AM_CONDITIONAL([ BUILD_WC_MLKEM] ,[ test "x$ENABLED_WC_MLKEM" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1157811440AM_CONDITIONAL([ BUILD_DILITHIUM] ,[ test "x$ENABLED_DILITHIUM" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
@@ -11620,8 +11482,6 @@ AM_CONDITIONAL([BUILD_OCSP_STAPLING_MULTI],[test "x$ENABLED_CERTIFICATE_STATUS_R
1162011482AM_CONDITIONAL([ BUILD_OCSP_STAPLING_V2] ,[ test "x$ENABLED_CERTIFICATE_STATUS_REQUEST_V2" = "xyes"] )
1162111483AM_CONDITIONAL([ BUILD_CRL] ,[ test "x$ENABLED_CRL" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1162211484AM_CONDITIONAL([ BUILD_CRL_MONITOR] ,[ test "x$ENABLED_CRL_MONITOR" = "xyes"] )
11623- AM_CONDITIONAL([ BUILD_LIBLMS] ,[ test "x$ENABLED_LIBLMS" = "xyes"] )
11624- AM_CONDITIONAL([ BUILD_LIBXMSS] ,[ test "x$ENABLED_LIBXMSS" = "xyes"] )
1162511485AM_CONDITIONAL([ BUILD_LIBOQS] ,[ test "x$ENABLED_LIBOQS" = "xyes"] )
1162611486AM_CONDITIONAL([ BUILD_WNR] ,[ test "x$ENABLED_WNR" = "xyes"] )
1162711487AM_CONDITIONAL([ BUILD_SRP] ,[ test "x$ENABLED_SRP" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
@@ -12121,12 +11981,7 @@ echo " * CURVE448: $ENABLED_CURVE448"
1212111981echo " * ED448: $ENABLED_ED448"
1212211982echo " * ED448 streaming: $ENABLED_ED448_STREAM"
1212311983echo " * LMS: $ENABLED_LMS"
12124- echo " * LMS wolfSSL impl: $ENABLED_WC_LMS"
1212511984echo " * XMSS: $ENABLED_XMSS"
12126- echo " * XMSS wolfSSL impl: $ENABLED_WC_XMSS"
12127- if test "$ENABLED_LIBXMSS" = "yes"; then
12128- echo " * XMSS_ROOT: $XMSS_ROOT"
12129- fi
1213011985echo " * SLH-DSA $ENABLED_SLHDSA"
1213111986echo " * MLKEM: $ENABLED_MLKEM"
1213211987echo " * MLKEM wolfSSL impl: $ENABLED_WC_MLKEM"
@@ -12187,8 +12042,6 @@ echo " * Persistent session cache: $ENABLED_SAVESESSION"
1218712042echo " * Persistent cert cache: $ENABLED_SAVECERT"
1218812043echo " * Atomic User Record Layer: $ENABLED_ATOMICUSER"
1218912044echo " * Public Key Callbacks: $ENABLED_PKCALLBACKS"
12190- echo " * libxmss: $ENABLED_LIBXMSS"
12191- echo " * liblms: $ENABLED_LIBLMS"
1219212045echo " * liboqs: $ENABLED_LIBOQS"
1219312046echo " * Whitewood netRandom: $ENABLED_WNR"
1219412047echo " * Server Name Indication: $ENABLED_SNI"
0 commit comments