Repository navigation
3x compliance items (CBC, ECDH, DSA) - #11668
Open
kaleb-himes wants to merge 9 commits into
Open
kaleb-himes wants to merge 9 commits into
kaleb-himes wants to merge 9 commits into
Conversation
|
kaleb-himes
force-pushed
the
PQ-FS-2026-Part3-SecurityReview-nofallback-U
branch
from
October 6, 2026 22:32
6edc4ee to
a5c85ff
Compare
lealem47
requested changes
Oct 7, 2026
lealem47
left a comment
Contributor
There was a problem hiding this comment.
Great changes Kaleb! One small suggestion: we could make sure the ECC point we validate is exactly the one we use. The SP check sp_ecc_check_key_ validates (x, y) with Z = 1, but sp_ecc_secret_gen_* uses the caller's Z, and the non-SP path also doesn't check it. Rejecting !mp_isone(point->z) in _ecc_validate_public_key should close that gap
kaleb-himes
force-pushed
the
PQ-FS-2026-Part3-SecurityReview-nofallback-U
branch
from
October 8, 2026 01:37
a5c85ff to
d9ab3ae
Compare
philljj
self-requested a review
October 8, 2026 15:51
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
AES-CBC: FIPS v7 builds now define WOLFSSL_AES_CBC_LENGTH_CHECKS (SP 800-38A sec 5.2). A partial-block CBC call returns BAD_LENGTH_E instead of silently dropping the tail.
ECDH raw point: wc_ecc_shared_secret_ex takes a bare ecc_point that no import path validates, so it accepted off-curve and wrong-curve points. It now runs full public key validation (wc_ecc_check_key, SP 800-56Ar3 sec 5.6.2.3.3) first.
HashML-DSA: sign and verify reject a pre-hash weaker than the parameter set's lambda (FIPS 204 sec 5.4). This matches the existing SLH-DSA check. The crypto-callback test now pre-hashes with SHAKE256.
Testing
Checklist