Repository navigation
Fix spdm_ctrl public key output and error reporting - #670
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The ECC validation accepts oversized P-384 coordinates after the parser truncates them, allowing malformed keys to be printed without rejecting the lossy decoding.
1 open issue
What changed in this PR
This PR updates the SPDM control example to print complete responder public keys and improve error reporting, with regression tests and mock updates supporting the changes.
Changes:
- Print full P-384 X||Y keys and validate decoded public-key fields.
- Report wolfSPDM error names while preserving HAL handling for
-1. - Recognize parameter-qualified capability errors and update SPDM test fixtures.
| File | Description |
|---|---|
tests/unit_tests.c |
Recognizes and tests unsupported SPDM capability responses with parameter bits. |
tests/spdm_ctrl_tests.c |
Adds error-string and public-key conversion regression tests. |
src/spdm/unit_test.c |
Adds GET_VERSION mock responses and adjusts string buffer declarations. |
examples/spdm/spdm_ctrl.c |
Adds full public-key output, validation, and consistent error reporting. |
Review effort: Balanced
aidangarske
force-pushed
the
fix-spdm-known-bugs
branch
from
November 6, 2026 20:26
af7934e to
99508bb
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #670
Scan targets checked: wolftpm-src, wolftpm-bugs
Coverage: 4 of 4 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: Max
dgarske
approved these changes
Nov 6, 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.

Uh oh!
There was an error while loading. Please reload this page.