File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -582,6 +582,10 @@ add_option(WOLFSSL_LMS
582582 "Enable the PQ LMS Stateful Hash-based Signature Scheme (default: disabled)"
583583 "no" "yes;no" )
584584
585+ add_option (WOLFSSL_LMSSHA256192
586+ "Enable the LMS SHA_256_192 truncated variant (default: disabled)"
587+ "no" "yes;no" )
588+
585589# Experimental features
586590add_option (WOLFSSL_EXPERIMENTAL
587591 "Enable experimental features (default: disabled)"
@@ -655,6 +659,17 @@ if (WOLFSSL_EXPERIMENTAL)
655659 set_wolfssl_definitions ("WOLFSSL_HAVE_LMS" RESULT )
656660 set_wolfssl_definitions ("WOLFSSL_WC_LMS" RESULT )
657661 message (STATUS "Looking for WOLFSSL_LMS - found" )
662+ # Checking for experimental feature: WOLFSSL_LMSSHA256192
663+ if (WOLFSSL_LMSSHA256192)
664+ message (STATUS "Automatically set related requirements for LMS SHA256-192" )
665+ add_definitions ("-DWOLFSSL_LMS_SHA256_192" )
666+ add_definitions ("-DWOLFSSL_NO_LMS_SHA256_256" )
667+ set_wolfssl_definitions ("WOLFSSL_LMS_SHA256_192" RESULT )
668+ set_wolfssl_definitions ("WOLFSSL_NO_LMS_SHA256_256" RESULT )
669+ message (STATUS "Looking for WOLFSSL_LMSSHA256192 - found" )
670+ else ()
671+ message (STATUS "Looking for WOLFSSL_LMSSHA256192 - not found" )
672+ endif ()
658673 else ()
659674 message (STATUS "Looking for WOLFSSL_LMS - not found" )
660675 endif ()
Original file line number Diff line number Diff line change @@ -386,6 +386,10 @@ extern "C" {
386386#cmakedefine WOLFSSL_HAVE_LMS
387387#undef WOLFSSL_WC_LMS
388388#cmakedefine WOLFSSL_WC_LMS
389+ #undef WOLFSSL_LMS_SHA256_192
390+ #cmakedefine WOLFSSL_LMS_SHA256_192
391+ #undef WOLFSSL_NO_LMS_SHA256_256
392+ #cmakedefine WOLFSSL_NO_LMS_SHA256_256
389393#undef WOLFSSL_HAVE_XMSS
390394#cmakedefine WOLFSSL_HAVE_XMSS
391395#undef WOLFSSL_WC_XMSS
You can’t perform that action at this time.
0 commit comments