Skip to content

Commit 69a3784

Browse files
authored
Merge pull request wolfSSL#10406 from Frauschi/lms_xmss_certs
Support RFC 9802 LMS and XMSS in X.509 verification
2 parents 5fce802 + 28468b4 commit 69a3784

28 files changed

Lines changed: 1311 additions & 41 deletions

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,16 +699,24 @@ add_option(WOLFSSL_LMSSHA256192
699699
"Enable the LMS SHA_256_192 truncated variant (default: disabled)"
700700
"no" "yes;no")
701701

702+
add_option(WOLFSSL_LMSNOSHA256256
703+
"Disable the LMS SHA_256_256 standard variant (default: disabled)"
704+
"no" "yes;no")
705+
702706
if (WOLFSSL_LMS)
703707
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_HAVE_LMS")
704708

705709
set_wolfssl_definitions("WOLFSSL_HAVE_LMS" RESULT)
706710

707711
if (WOLFSSL_LMSSHA256192)
708712
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_LMS_SHA256_192")
709-
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_NO_LMS_SHA256_256")
710713

711714
set_wolfssl_definitions("WOLFSSL_LMS_SHA256_192" RESULT)
715+
endif()
716+
717+
if (WOLFSSL_LMSNOSHA256256)
718+
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_NO_LMS_SHA256_256")
719+
712720
set_wolfssl_definitions("WOLFSSL_NO_LMS_SHA256_256" RESULT)
713721
endif()
714722
endif()

certs/include.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ include certs/falcon/include.am
161161
include certs/rsapss/include.am
162162
include certs/dilithium/include.am
163163
include certs/slhdsa/include.am
164+
include certs/lms/include.am
165+
include certs/xmss/include.am
164166
include certs/rpk/include.am
165167
include certs/acert/include.am
166168
include certs/mldsa/include.am

certs/lms/bc_hss_L2_H5_W8_root.der

2.85 KB
Binary file not shown.

certs/lms/bc_hss_L3_H5_W4_root.der

7.26 KB
Binary file not shown.

certs/lms/bc_lms_chain_ca.der

2.58 KB
Binary file not shown.

certs/lms/bc_lms_chain_leaf.der

2.58 KB
Binary file not shown.
1.55 KB
Binary file not shown.
1.69 KB
Binary file not shown.
2.57 KB
Binary file not shown.

certs/lms/include.am

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# vim:ft=automake
2+
# All paths should be given relative to the root
3+
#
4+
5+
EXTRA_DIST += \
6+
certs/lms/bc_lms_sha256_h5_w4_root.der \
7+
certs/lms/bc_lms_sha256_h10_w8_root.der \
8+
certs/lms/bc_hss_L2_H5_W8_root.der \
9+
certs/lms/bc_hss_L3_H5_W4_root.der \
10+
certs/lms/bc_lms_chain_ca.der \
11+
certs/lms/bc_lms_chain_leaf.der \
12+
certs/lms/bc_lms_native_bc_root.der

0 commit comments

Comments
 (0)