Skip to content

veer tests: Add an SPDM responder test over MCTP over I3C - #749

Open
swenson wants to merge 1 commit into
OpenPRoT:mainfrom
swenson:claude/veer-spdm-i3c
Open

swenson wants to merge 1 commit into
OpenPRoT:mainfrom
swenson:claude/veer-spdm-i3c

Conversation

@swenson

@swenson swenson commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Adds //target/veer/tests/spdm: an image with an SPDM responder on the MCTP-over-I3C stack of tests/mctp_i3c, and a host test that is the requester and drives the firmware through caliptra_mcu_hw_model. The test negotiates the version, capabilities and algorithms, and checks that the responder answers GET_DIGESTS with an error. It passes on the emulator and on the VCK190 FPGA.

The responder has no certificates and no measurements, so it advertises no capabilities. Its hash and random number generator use the Caliptra mailbox drivers, but the responder does not call them for the requests in this test.

Limitations:

  • The image has no app_no_panics_test. The app links panic paths from spdm-lib, //services/spdm/transport-mctp, the MCTP server process and heapless, so the test would fail. BUILD.bazel has a TODO.
  • The host test writes each request byte by byte and reads the response fields at fixed offsets. It should use an SPDM requester library. host_test.rs has a TODO.
  • The host test has copies of the MCTP and I3C helpers of the mctp_i3c host test.

The image runs the SPDM responder service on the MCTP-over-I3C stack of
tests/mctp_i3c. The responder has no certificates and no measurements.
The host test negotiates the version, capabilities and algorithms, and
checks that the responder answers GET_DIGESTS with an error. It passes
on the emulator and on the VCK190 FPGA.

The image has no app_no_panics_test, because the app links panic paths
from spdm-lib, //services/spdm/transport-mctp, the MCTP server process
and heapless. The host test writes each request byte by byte and reads
the response fields at fixed offsets; it should use an SPDM requester
library.

Assisted-by: Claude:claude-fable-5-2

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants