18641864done
18651865
18661866# XMSS
1867- ENABLED_WC_XMSS=no
18681867AC_ARG_ENABLE ( [ xmss] ,
18691868 [ AS_HELP_STRING ( [ --enable-xmss] ,[ Enable stateful XMSS/XMSS^MT signatures (default: disabled)] ) ] ,
18701869 [ ENABLED_XMSS=$enableval ] ,
@@ -1890,60 +1889,7 @@ do
18901889 esac
18911890done
18921891
1893- # libxmss
1894- # Get the path to xmss-reference.
1895- ENABLED_LIBXMSS="no"
1896- trylibxmssdir=""
1897- AC_ARG_WITH ( [ libxmss] ,
1898- [ AS_HELP_STRING ( [ --with-libxmss=PATH] ,[ PATH to xmss-reference root dir. (requires --enable-experimental)!] ) ] ,
1899- [
1900- AS_IF ( [ test "$ENABLED_EXPERIMENTAL" != "yes" ] ,[ AC_MSG_ERROR ( [ libxmss requires --enable-experimental.] ) ] )
1901- AC_MSG_CHECKING ( [ for libxmss] )
1902-
1903- trylibxmssdir=$withval
1904-
1905- if test -e $trylibxmssdir; then
1906- libxmss_linked=yes
1907- else
1908- AC_MSG_ERROR ( [ libxmss isn't found.
1909- If it's already installed, specify its path using --with-libxmss=/dir/] )
1910- fi
1911- if test "$XMSS_VERIFY_ONLY" = "yes"; then
1912- if test -e $trylibxmssdir/xmss_verify_lib.a; then
1913- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1914- LIB_STATIC_ADD="$LIB_STATIC_ADD $trylibxmssdir/xmss_verify_lib.a"
1915- enable_shared=no
1916- enable_static=yes
1917- libxmss_linked=yes
1918- else
1919- AC_MSG_ERROR ( [ xmss_verify_lib.a isn't found.
1920- If it's already installed, specify its path using --with-libxmss=/dir/] )
1921- fi
1922- elif test -e $trylibxmssdir/xmss_lib.a; then
1923- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1924- LIB_STATIC_ADD="$LIB_STATIC_ADD $trylibxmssdir/xmss_lib.a"
1925- enable_shared=no
1926- enable_static=yes
1927- libxmss_linked=yes
1928- else
1929- AC_MSG_ERROR ( [ libxmss isn't found.
1930- If it's already installed, specify its path using --with-libxmss=/dir/] )
1931- fi
1932-
1933- XMSS_ROOT=$trylibxmssdir
1934-
1935- AC_MSG_RESULT ( [ yes] )
1936- AM_CPPFLAGS="$CPPFLAGS"
1937-
1938- AM_CFLAGS="$AM_CFLAGS -DHAVE_LIBXMSS -I$trylibxmssdir"
1939- ENABLED_LIBXMSS="yes"
1940- AC_SUBST ( [ XMSS_ROOT] )
1941- ] ,
1942- [ XMSS_ROOT=""]
1943- )
1944-
19451892# LMS
1946- ENABLED_WC_LMS=no
19471893AC_ARG_ENABLE ( [ lms] ,
19481894 [ AS_HELP_STRING ( [ --enable-lms] ,[ Enable stateful LMS/HSS signatures (default: disabled)] ) ] ,
19491895 [ ENABLED_LMS=$enableval ] ,
@@ -1978,74 +1924,6 @@ do
19781924 esac
19791925done
19801926
1981- # liblms
1982- # Get the path to the hash-sigs LMS HSS lib.
1983- ENABLED_LIBLMS="no"
1984- tryliblmsdir=""
1985- AC_ARG_WITH ( [ liblms] ,
1986- [ AS_HELP_STRING ( [ --with-liblms=PATH] ,[ PATH to hash-sigs LMS/HSS install (default /usr/local) (requires --enable-experimental)!] ) ] ,
1987- [
1988- AS_IF ( [ test "$ENABLED_EXPERIMENTAL" != "yes" ] ,[ AC_MSG_ERROR ( [ liblms requires --enable-experimental.] ) ] )
1989- AC_MSG_CHECKING ( [ for liblms] )
1990-
1991- 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 ] )
1992-
1993- if test "x$liblms_linked" = "xno" ; then
1994- if test "x$withval" != "xno" ; then
1995- tryliblmsdir=$withval
1996- fi
1997- if test "x$withval" = "xyes" ; then
1998- tryliblmsdir="/usr/local"
1999- fi
2000-
2001- # 1. If verify only build, use hss_verify.a
2002- # 2. If normal build, by default use single-threaded hss_lib.a
2003- # 3. If 2 not found, then use the multi-threaded hss_lib_thread.a
2004- if test "$LMS_VERIFY_ONLY" = "yes"; then
2005- if test -e $tryliblmsdir/hss_verify.a; then
2006- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
2007- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_verify.a"
2008- enable_shared=no
2009- enable_static=yes
2010- liblms_linked=yes
2011- else
2012- AC_MSG_ERROR ( [ hss_verify.a isn't found.
2013- If it's already installed, specify its path using --with-liblms=/dir/] )
2014- fi
2015- elif test -e $tryliblmsdir/hss_lib.a; then
2016- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
2017- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_lib.a"
2018- enable_shared=no
2019- enable_static=yes
2020- liblms_linked=yes
2021- elif test -e $tryliblmsdir/hss_lib_thread.a; then
2022- CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBLMS -I$tryliblmsdir"
2023- LIB_STATIC_ADD="$LIB_STATIC_ADD $tryliblmsdir/hss_lib_thread.a"
2024- enable_shared=no
2025- enable_static=yes
2026- liblms_linked=yes
2027- else
2028- AC_MSG_ERROR ( [ liblms isn't found.
2029- If it's already installed, specify its path using --with-liblms=/dir/] )
2030- fi
2031-
2032- if test "x$liblms_linked" = "xno" ; then
2033- AC_MSG_ERROR ( [ liblms isn't found.
2034- If it's already installed, specify its path using --with-liblms=/dir/] )
2035- fi
2036-
2037- AC_MSG_RESULT ( [ yes] )
2038- AM_CPPFLAGS="$CPPFLAGS"
2039- AM_LDFLAGS="$LDFLAGS"
2040- else
2041- AC_MSG_RESULT ( [ yes] )
2042- fi
2043-
2044- AM_CFLAGS="$AM_CFLAGS -DHAVE_LIBLMS"
2045- ENABLED_LIBLMS="yes"
2046- ]
2047- )
2048-
20491927# SLH-DSA
20501928ENABLED_SLHDSA=yes
20511929AC_ARG_ENABLE ( [ slhdsa] ,
@@ -7558,28 +7436,12 @@ fi
75587436if test "$ENABLED_XMSS" != "no"
75597437then
75607438 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_XMSS"
7561-
7562- # Use hash-sigs XMSS lib if enabled.
7563- if test "$ENABLED_LIBXMSS" = "yes"; then
7564- ENABLED_WC_XMSS=no
7565- else
7566- ENABLED_WC_XMSS=yes
7567- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_XMSS"
7568- fi
75697439fi
75707440
75717441# LMS CFLAG processing (after FIPS section for sandwich pattern)
75727442if test "$ENABLED_LMS" != "no"
75737443then
75747444 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_LMS"
7575-
7576- # Use hash-sigs LMS lib if enabled.
7577- if test "$ENABLED_LIBLMS" = "yes"; then
7578- ENABLED_WC_LMS=no
7579- else
7580- ENABLED_WC_LMS=yes
7581- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_LMS"
7582- fi
75837445fi
75847446
75857447# SLH-DSA CFLAG processing (after FIPS section for sandwich pattern)
@@ -12205,8 +12067,8 @@ AM_CONDITIONAL([BUILD_FE448], [test "x$ENABLED_FE448" = "xyes" || test "x$ENABLE
1220512067AM_CONDITIONAL([ BUILD_GE448] , [ test "x$ENABLED_GE448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1220612068AM_CONDITIONAL([ BUILD_CURVE448] ,[ test "x$ENABLED_CURVE448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1220712069AM_CONDITIONAL([ BUILD_CURVE448_SMALL] ,[ test "x$ENABLED_CURVE448_SMALL" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12208- AM_CONDITIONAL([ BUILD_WC_LMS] ,[ test "x$ENABLED_WC_LMS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12209- AM_CONDITIONAL([ BUILD_WC_XMSS] ,[ test "x$ENABLED_WC_XMSS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12070+ AM_CONDITIONAL([ BUILD_WC_LMS] ,[ test "x$ENABLED_LMS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
12071+ AM_CONDITIONAL([ BUILD_WC_XMSS] ,[ test "x$ENABLED_XMSS " != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1221012072AM_CONDITIONAL([ BUILD_WC_SLHDSA] ,[ test "x$ENABLED_SLHDSA" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1221112073AM_CONDITIONAL([ BUILD_WC_MLKEM] ,[ test "x$ENABLED_WC_MLKEM" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1221212074AM_CONDITIONAL([ BUILD_DILITHIUM] ,[ test "x$ENABLED_DILITHIUM" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
@@ -12257,8 +12119,6 @@ AM_CONDITIONAL([BUILD_OCSP_STAPLING_MULTI],[test "x$ENABLED_CERTIFICATE_STATUS_R
1225712119AM_CONDITIONAL([ BUILD_OCSP_STAPLING_V2] ,[ test "x$ENABLED_CERTIFICATE_STATUS_REQUEST_V2" = "xyes"] )
1225812120AM_CONDITIONAL([ BUILD_CRL] ,[ test "x$ENABLED_CRL" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1225912121AM_CONDITIONAL([ BUILD_CRL_MONITOR] ,[ test "x$ENABLED_CRL_MONITOR" = "xyes"] )
12260- AM_CONDITIONAL([ BUILD_LIBLMS] ,[ test "x$ENABLED_LIBLMS" = "xyes"] )
12261- AM_CONDITIONAL([ BUILD_LIBXMSS] ,[ test "x$ENABLED_LIBXMSS" = "xyes"] )
1226212122AM_CONDITIONAL([ BUILD_LIBOQS] ,[ test "x$ENABLED_LIBOQS" = "xyes"] )
1226312123AM_CONDITIONAL([ BUILD_WNR] ,[ test "x$ENABLED_WNR" = "xyes"] )
1226412124AM_CONDITIONAL([ BUILD_SRP] ,[ test "x$ENABLED_SRP" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
@@ -12760,12 +12620,7 @@ echo " * CURVE448: $ENABLED_CURVE448"
1276012620echo " * ED448: $ENABLED_ED448"
1276112621echo " * ED448 streaming: $ENABLED_ED448_STREAM"
1276212622echo " * LMS: $ENABLED_LMS"
12763- echo " * LMS wolfSSL impl: $ENABLED_WC_LMS"
1276412623echo " * XMSS: $ENABLED_XMSS"
12765- echo " * XMSS wolfSSL impl: $ENABLED_WC_XMSS"
12766- if test "$ENABLED_LIBXMSS" = "yes"; then
12767- echo " * XMSS_ROOT: $XMSS_ROOT"
12768- fi
1276912624echo " * SLH-DSA $ENABLED_SLHDSA"
1277012625echo " * MLKEM: $ENABLED_MLKEM"
1277112626echo " * MLKEM wolfSSL impl: $ENABLED_WC_MLKEM"
@@ -12826,8 +12681,6 @@ echo " * Persistent session cache: $ENABLED_SAVESESSION"
1282612681echo " * Persistent cert cache: $ENABLED_SAVECERT"
1282712682echo " * Atomic User Record Layer: $ENABLED_ATOMICUSER"
1282812683echo " * Public Key Callbacks: $ENABLED_PKCALLBACKS"
12829- echo " * libxmss: $ENABLED_LIBXMSS"
12830- echo " * liblms: $ENABLED_LIBLMS"
1283112684echo " * liboqs: $ENABLED_LIBOQS"
1283212685echo " * Whitewood netRandom: $ENABLED_WNR"
1283312686echo " * Server Name Indication: $ENABLED_SNI"
0 commit comments