Repository navigation
Conversation
ageprocpp
force-pushed
the
fix/fenrir-19103
branch
from
November 24, 2026 22:21
db941e5 to
b78871d
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #12252
Scan targets checked: wolfssl-bugs
Unchanged since last review (not re-run): wolfcrypt-src, wolfcrypt-bugs
Not reviewed (no scan target covers them): tests/api/test_ecc.h
Coverage: 1 of 1 in-scope changed file(s) opened by the reviewer
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
Review tier: Lite
wolfSSL-Fenrir-bot
dismissed stale reviews from themself
November 25, 2026 07:31
Fenrir's latest completed scan found no issues; clearing the prior automated change request.
ageprocpp
marked this pull request as ready for review
November 25, 2026 07:32
|
retest this please |
|
SparkiDev
requested changes
Nov 26, 2026
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
Fixes Fenrir #19103
Validate untrusted X9.63 public points against the selected custom curve during import. In
wc_ecc_shared_secret(), reject custom-curve keys when their stored size, cofactor, prime, a, b, order, Gx, or Gy values differ. Custom curves share theECC_CURVE_CUSTOMid, so comparing only the curve id does not distinguish different parameter sets.Testing
Built and ran the targeted API test with custom curves enabled and the minimum ECC size set to zero.
The regression test verifies that import rejects an off-curve point, ECDH succeeds when the stored custom-curve parameters match, and
wc_ecc_shared_secret()returnsECC_BAD_ARG_Ewhen they differ.Some existing tests generated errors by giving invalid off-curve points, so changed it to valid points provided that the modification can keep the original intention for those tests.
Checklist