-
Notifications
You must be signed in to change notification settings - Fork 947
Automatically turn on LMS / XMSS full hash #9946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -34,6 +34,12 @@ | |||||||||
| #include <wolfssl/wolfcrypt/sha512.h> | ||||||||||
| #include <wolfssl/wolfcrypt/sha3.h> | ||||||||||
|
|
||||||||||
| /* When hash struct internals are not accessible (hardware SHA acceleration), | ||||||||||
| * fall back to full hash API calls. */ | ||||||||||
|
Comment on lines
+37
to
+38
|
||||||||||
| /* When hash struct internals are not accessible (hardware SHA acceleration), | |
| * fall back to full hash API calls. */ | |
| /* When raw hash access APIs are disabled or unavailable (WOLFSSL_NO_HASH_RAW), | |
| * fall back to using the full hash API calls. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conditional “NO_HASH_RAW => FULL_HASH” logic is duplicated in both XMSS and LMS headers. To reduce drift and keep behavior consistent, consider centralizing this mapping in a shared configuration header (or a single common macro) and referencing it from both places.