Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Direct macro builds fail to imply TCG support, and the advertised Infineon PSK connection alias is undefined.
3 open findings
What changed in this PR
Adds Infineon OPTIGA SLB9678 vendor commands and vendor-neutral TCG identity mode support.
Changes:
- Adds Infineon status, lock, and PSK provisioning APIs.
- Adds plain TCG mode selection and KEY_EXCHANGE opaque data.
- Adds Infineon build configuration and transport detection.
| File | Description |
|---|---|
wolfspdm/spdm.h |
Exposes TCG mode, PSK alias, Infineon API, and I/O detection. |
wolfspdm/spdm_infineon.h |
Declares Infineon commands and status structures. |
src/vendor/spdm_infineon.c |
Implements Infineon vendor commands. |
src/spdm_msg.c |
Adds TCG-specific KEY_EXCHANGE opaque data. |
src/spdm_internal.h |
Recognizes plain TCG mode. |
src/spdm_context.c |
Implements I/O detection and TCG mode dispatch. |
Makefile.am |
Builds and installs Infineon components. |
configure.ac |
Adds --enable-infineon. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
dgarske
force-pushed
the
infineon_slb9678
branch
from
October 14, 2026 18:25
18d899d to
4123401
Compare
dgarske
force-pushed
the
infineon_slb9678
branch
from
October 14, 2026 18:34
4123401 to
1b4beb7
Compare
aidangarske
reviewed
Oct 15, 2026
aidangarske
left a comment
Member
There was a problem hiding this comment.
Skoll Code Review
Scan type: review
Overall recommendation: COMMENT
Findings: 4 total — 4 posted, 0 skipped
4 finding(s) posted as inline comments (see file-level comments below)
Posted findings
- [Medium] Advertised Infineon PSK alias does not exist —
wolfspdm/spdm_infineon.h:87 - [Medium] The Infineon feature is never compiled in CI —
Makefile.am:30-32 - [Medium] New public behavior lacks direct unit coverage —
test/unit_test.c:2415-2423 - [Medium] API reference omits the new public surface —
wolfspdm/spdm.h:38-44
Review generated by Skoll
dgarske
force-pushed
the
infineon_slb9678
branch
from
October 15, 2026 18:52
1b4beb7 to
99e751d
Compare
aidangarske
reviewed
Oct 16, 2026
dgarske
force-pushed
the
infineon_slb9678
branch
from
October 16, 2026 18:42
99e751d to
8335404
Compare
aidangarske
approved these changes
Oct 16, 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
Adds the Infineon OPTIGA SLB9678 vendor command set, and a
WOLFSPDM_MODE_TCGfor a part that implements the TCG binding but adds no vendor commands to the handshake.What it adds
src/vendor/spdm_infineon.c,wolfspdm/spdm_infineon.h-GET_STS,SPDM_ONLY,PSK_SET,PSK_CLEAR, and a PSK clear carrying the VCA transcriptwolfspdm/spdm.h-WOLFSPDM_MODE_TCGandwolfSPDM_HasIOconfigure.ac,Makefile.am---enable-infineon, implying--enable-tcgwolfSPDM_IsTcgMode,wolfSPDM_ConnectandwolfSPDM_KeyExOpaque; without them such a part gets MCTP framing, an invalid-argument return and the wrong KEY_EXCHANGE opaque blockTesting
Validated against an SLB9678 on firmware 45.91 over I2C from an Infineon PSOC Control C3 (C3M6): handshake against a pinned responder key, a TPM command inside the session, clean close. Builds clean with
--enable-infineon, with--disable-tcgand by default;make checkpasses.