Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The intended FIPS target needs maintainer confirmation because the diagnostic and eligibility checks specify different versions.
1 open issue
What changed in this PR
Updates the V523_NONFIPS_SHAKE integration introduced in #11831 to use standard wolfSSL paths instead of the internal fips/ directory, which is omitted from releases.
Changes:
- Updates SHAKE header references across library code, tests, and benchmarks.
- Adjusts configure checks and Automake build/install paths.
- Revises the prerequisite diagnostic to name FIPS 5.2.3 and certificate #5548.
| File | Description |
|---|---|
| wolfssl/wolfcrypt/wc_mlkem.h | Updates the SHAKE include while preserving include order. |
| wolfssl/wolfcrypt/wc_mldsa.h | Uses the standard SHAKE header path. |
| wolfssl/wolfcrypt/settings.h | Revises the FIPS prerequisite diagnostic. |
| wolfssl/wolfcrypt/include.am | Updates the SHAKE header installation path. |
| wolfcrypt/test/test.c | Updates the self-test SHAKE include. |
| wolfcrypt/src/wc_mldsa.c | Updates the ML-DSA SHAKE include. |
| wolfcrypt/src/hash.c | Updates the hashing SHAKE include. |
| wolfcrypt/src/asn.c | Updates the ASN.1 SHAKE include. |
| wolfcrypt/benchmark/benchmark.c | Updates the benchmark SHAKE include. |
| tests/api/test_sha3.c | Updates the API-test SHAKE include. |
| src/include.am | Builds SHAKE from wolfcrypt/src/shake.c. |
| configure.ac | Checks the new overlay paths and updates related guidance. |
Review effort: Balanced
| #if defined(V523_NONFIPS_SHAKE) && \ | ||
| (!defined(HAVE_FIPS) || !FIPS_VERSION3_EQ(5,2,1)) | ||
| #error "V523_NONFIPS_SHAKE requires FIPS v5 cert4718 (5.2.1)" | ||
| #error "V523_NONFIPS_SHAKE requires FIPS v5 cert #5548 (5.2.3)" |
references to shake.c/h updated to wolfcrypt/ and wolfssl/wolfcrypt/. The fips directory is not included in FIPS bundles Use Cert wolfSSL#5548, v5.2.3 in error message
rlm2002
force-pushed
the
fipsV5customSHAKEPQ
branch
from
October 27, 2026 15:39
9598dc9 to
7052b51
Compare
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.

Description
PR #11831 added an opt-in V523_NONFIPS_SHAKE to enable SHAKE 128/256 algorithms. The path to the new files was incorrect.
Replace path to
fips/v5.2.3-custom-shake-pq/<shake.c/h>to referencewolfcrypt/src/shake.candwolfssl/wolfcrypt/shake.h. Removes reference tofips/which is not included in release process.Also fixes error message for
V523_NONFIPS_SHAKEto reference v5.2.3 and correct cert.Testing