Skip to content

Automatically turn on LMS / XMSS full hash#9946

Merged
dgarske merged 3 commits intowolfSSL:masterfrom
LinuxJedi:lms-xmss-flags
Mar 20, 2026
Merged

Automatically turn on LMS / XMSS full hash#9946
dgarske merged 3 commits intowolfSSL:masterfrom
LinuxJedi:lms-xmss-flags

Conversation

@LinuxJedi
Copy link
Member

@LinuxJedi LinuxJedi commented Mar 10, 2026

When WOLFSSL_NO_HASH_RAW is defined due to hardware hash offload, turn on LMS anx XMSS full hash. Without this they will not compile automatically when there is hardware SHA acceleration.

When WOLFSSL_NO_HASH_RAW is definied due to hardware hash offload, turn
on LMS anx XMSS full hash. Without this they will not compile
automatically when there is hardware SHA acceleration.
Copilot AI review requested due to automatic review settings March 10, 2026 22:03
@LinuxJedi LinuxJedi added the Not For This Release Not for release 5.9.0 label Mar 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures XMSS and LMS automatically switch to “full hash” API usage when WOLFSSL_NO_HASH_RAW is enabled (e.g., due to hardware hash offload), preventing build failures when raw-hash access is unavailable.

Changes:

  • Auto-define WC_XMSS_FULL_HASH when WOLFSSL_NO_HASH_RAW is set.
  • Auto-define WC_LMS_FULL_HASH when WOLFSSL_NO_HASH_RAW is set.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
wolfssl/wolfcrypt/wc_xmss.h Adds conditional auto-enable of XMSS full-hash mode when raw hash is disabled.
wolfssl/wolfcrypt/wc_lms.h Adds conditional auto-enable of LMS full-hash mode when raw hash is disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@dgarske
Copy link
Contributor

dgarske commented Mar 19, 2026

@LinuxJedi please review copilot and CI errors
Jenkins retest this please

Copilot AI review requested due to automatic review settings March 20, 2026 11:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LinuxJedi
Copy link
Member Author

Jenkins: retest this please, Valgrind failed, likely unrelated, can't even see why at a glance.

@LinuxJedi LinuxJedi removed their assignment Mar 20, 2026
@dgarske dgarske merged commit 3e820e5 into wolfSSL:master Mar 20, 2026
491 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not For This Release Not for release 5.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants