Repository navigation
Conversation
Add SLH-DSA with the SHAKE-128s, SHAKE-192s and SHAKE-256s parameter sets in crypto/fipsmodule/slh_dsa. It is a port of slhdsa-c (pq-code-package/slhdsa-c@4745143) onto AWS-LC's SHAKE implementation. This covers key generation, pure SLH-DSA with context strings, HashSLH-DSA with SHAKE128 (SLH-DSA-SHAKE-128s only) or SHAKE256, and the FIPS 205 internal functions used by the tests. Secret intermediates are cleansed. There is no EVP or TLS support yet, and SLH-DSA is not an approved FIPS service. Tests use a subset of the NIST ACVP vectors. Signing is slow, so the tests that sign many times are disabled by default and run natively from util/all_tests.json, not under valgrind or SDE. FileTest's line buffer is raised to fit SHAKE-256s signatures, as in BoringSSL.
This was referenced Dec 3, 2026
Contributor
|
🔒 Security Review — View Report Please review before merging. |
jakemas
force-pushed
the
feat/slh-dsa-1-module
branch
from
December 3, 2026 22:16
63d1809 to
c33ca1d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3877 +/- ##
=========================================
+ Coverage 0 79.21% +79.21%
=========================================
Files 0 724 +724
Lines 0 136464 +136464
Branches 0 19611 +19611
=========================================
+ Hits 0 108101 +108101
- Misses 0 27319 +27319
- Partials 0 1044 +1044 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Context and motivation
SLH-DSA (FIPS 205) is NIST's stateless hash-based signature standard. Its security rests only on the hash function, which makes it a conservative choice for long-lived signatures such as CA and firmware signing.
Description of changes
Adds SLH-DSA to the FIPS module in
crypto/fipsmodule/slh_dsa, with the SHAKE-128s, SHAKE-192s and SHAKE-256s parameter sets. It is a port of slhdsa-c (4745143) onto AWS-LC's SHAKE.There is no EVP or TLS support in this PR, and SLH-DSA is not an approved FIPS service yet.
Testing
crypto_testruns a subset of the signing tests. The rest run natively fromutil/all_tests.json, not under valgrind or SDE.Review considerations
PRIVATEsymbols.FileTest's line buffer grows to 112 KB, as in BoringSSL, so that SHAKE-256s signatures fit.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.