Skip to content

Commit 6c8df33

Browse files
committed
LMS: initial implementation
Initial wolfSSL implementation of LMS. Changed LMS benchmarking to time making a key and reloading. SHA-256: Added wc_Sha256HashBlock to make hashing a block fast. Fixed assembly code to be able to hash a block from an external buffer. Simplified code were possible. Moved byte reversal decision logic to one place instead of replicating length checks.
1 parent a77c6d1 commit 6c8df33

14 files changed

Lines changed: 724 additions & 372 deletions

File tree

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,10 @@ do
12891289
LMS_VERIFY_ONLY=yes
12901290
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_LMS_VERIFY_ONLY"
12911291
;;
1292+
small)
1293+
ENABLED_WC_LMS=yes
1294+
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_LMS_SMALL"
1295+
;;
12921296
wolfssl)
12931297
ENABLED_WC_LMS=yes
12941298
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_LMS"

src/include.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ endif
710710

711711
if BUILD_WC_LMS
712712
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_lms.c
713+
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_lms_impl.c
713714
endif
714715

715716
if BUILD_WC_XMSS

0 commit comments

Comments
 (0)