Add LMS and XMSS PQC benchmark modules#454
Merged
Merged
Conversation
Add KeyGen/Sign/Verify benchmarks for the two stateful hash-based PQC
schemes wolfHSM supports: LMS (L1/H5/W8) and XMSS (SHA2_10_256). Both
are DMA-only, so each operation is a single variant.
Verify runs against embedded precomputed (public key, signature)
vectors instead of generating them at runtime, so it is available in
verify-only builds (guarded by WOLFSSL_HAVE_{LMS,XMSS}); keygen and
sign require a signing build (!WOLFSSL_{LMS,XMSS}_VERIFY_ONLY).
The stateful sign benchmark clamps its iteration count to the key's
2^H one-time-signature budget (logging when it caps) so raising the
shared WOLFHSM_CFG_BENCH_PK_ITERS does not exhaust the key. Each
generated key is erased from server NVM after the measured operation.
Enable LMS/XMSS in the benchmark config and raise MAX_BENCH_OPS to fit
the new modules.
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #454
No scan targets match the changed files in this PR. Review skipped.
bigbrett
approved these changes
Jul 16, 2026
Contributor
|
@padelsbach LGTM over to you. Pls merge if you approve. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds LMS and XMSS post-quantum stateful hash-based signature benchmark modules to the wolfHSM benchmark harness.
Changes:
wh_bench_mod_lms.c— benchmarks LMS/HSS keygen, sign, and verify (RFC 8554, NIST SP 800-208)wh_bench_mod_xmss.c— benchmarks XMSS/XMSS^MT keygen, sign, and verify (RFC 8391, NIST SP 800-208)wh_bench_mod_all.handwh_bench.cVERIFY_ONLYbuildsWOLFSSL_HAVE_LMS/WOLFSSL_HAVE_XMSSin the benchmarkuser_settings.hwh_bench_ops.h