wolfSPDM

wolfSPDM is a standalone SPDM requester that attests hardware and opens secure sessions. I created it by turning wolfTPM's SPDM core into its own stack, then added post-quantum support.

Role: creator C, SPDM 1.2 to 1.4, wolfCrypt, no allocation wolfSSL/wolfSPDM
01 / What I built

Main changes

02 / Design

One design choice

The caller supplies a fixed context buffer, or builds with dynamic memory for small stacks. CHUNK_GET reassembly sits inside the two transport functions, so every parser still sees one complete message and the transcript stays correct.

03 / Debugging

A bug I fixed

On a Nuvoton NPCT75x TPM, GET_PUBK sent first got ERROR UnexpectedRequest. GetPubKey now runs GET_VERSION first when the context is in its initial state, and returns a GET_VERSION failure without sending GET_PUBK. (#39)

04 / Verification

How it was checked

PREvidence
#39Mock responder rejects GET_PUBK before GET_VERSION; a second case fails GET_VERSION once and checks retry.
#17make check reports 70, 65, and 64 across chunk and ML-DSA configs; CI runs ML-DSA-44/65/87.
#76Library and crypto CPU per handshake went from 1.86 ms to 0.99 ms on x86_64.
05 / Limits

What is not done yet

The context is 72496 B with chunking, so small targets must shrink the chunk buffer or drop chunking. Messages above the 4096 B default depend on responder chunking.

All my merged pull requests 18 in wolfSSL/wolfSPDM
  • #76Drop redundant certificate and key checks from the standard handshake
  • #39Negotiate the SPDM version before GET_PUBK
  • #36Clean up the README and wiki documentation
  • #34Make wolfTPM's SPDM core the wolfSPDM stack, with the standard requester and PQC on top
  • #35Add bug, feature, and tracked follow-up issue forms
  • #18Add SPDM 1.4 ML-KEM post-quantum key exchange (FIPS 203)
  • #17Add SPDM 1.2 CHUNK_GET message chunking and enable ML-DSA-87 over the wire
  • #16Point CI branch triggers at main after default branch rename
  • #15Add SPDM 1.4 ML-DSA post-quantum signature support
  • #9Use GitHub Wiki for wolfSPDM documentation
  • #8Add wolfSPDM wiki documentation
  • #6Standalone SPDM 1.2/1.3/1.4 requester
  • #7Add empty brace scope CI scan
  • #5Fix wolfssl default config in readme
  • #4Add SPDM measurements, challenge, heartbeat, key update, and cert chain validation
  • #3Add static memory and dynamic memory
  • #2Fix SPDM Nuvoton session establishment and refactor
  • #1Fix CI Workflow Failures

all work view the repository