benchmark: add LMS and XMSS PQC benchmark modules#7
Open
Frauschi wants to merge 1 commit into
Open
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.
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.
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.