SPDM Responder Support

This page lists what the SPDM responder in runtime/userspace/api/spdm-lib supports. For the supported requests, see Supported Requests. For the design, see SPDM.

This branch targets Caliptra 2.0. SPDM 1.4 attestation is supported, but SPDM 1.4 secure sessions and ML-KEM are not.

The responder's local policy is set in ConnectionState::caliptra() in stack/src/stack.rs.

Versions

ItemSupportedSource
SPDM version (DSP0274)1.2, 1.3, 1.4SUPPORTED_VERSIONS in stack/src/version.rs
Secured message version (DSP0277)1.1select_version in codec/src/opaque.rs
  • SPDM 1.0 and 1.1 are not supported. GET_VERSION itself must still use version 1.0 in its header, as the specification requires.
  • The secured message version is selected in KEY_EXCHANGE from the requester's supported-version list (opaque data, OpaqueDataFmt1). Only major and minor version are compared. If the list does not contain 1.1, KEY_EXCHANGE fails with InvalidRequest. If the requester sends no opaque data, KEY_EXCHANGE is accepted and no version selection is returned.

Capabilities

CAPABILITIES response flags. A flag is only sent if the negotiated SPDM version defines it.

Flag (bit)AdvertisedCondition
CERT_CAP (1)Yes
CHAL_CAP (2)Yes
MEAS_CAP (3-4)YesValue 10b: measurements with signature
ENCRYPT_CAP (6)YesOnly if the transport supports secured messages 1
MAC_CAP (7)YesOnly if the transport supports secured messages 1
KEY_EX_CAP (9)YesOnly if the transport supports secured messages 1
CHUNK_CAP (17)YesOnly if the PAL can buffer at least one transport MTU
ALIAS_CERT_CAP (18)Yes
SET_CERT_CAP (19)Optionalset-certificate feature
MULTI_KEY_CAP (26-27)Optionalset-certificate feature, value 10b (MultiKeyConnRsp), SPDM 1.3+
GET_KEY_PAIR_INFO_CAP (28)Optionalset-certificate feature, SPDM 1.3+
LARGE_RESP_CAP (31)YesSPDM 1.4 only

All other flags are not advertised. These include CACHE_CAP, MEAS_FRESH_CAP, MUT_AUTH_CAP, PSK_CAP, ENCAP_CAP, HBEAT_CAP, KEY_UPD_CAP, HANDSHAKE_IN_THE_CLEAR_CAP, PUB_KEY_ID_CAP, CSR_CAP, CERT_INSTALL_RESET_CAP, EP_INFO_CAP, MEL_CAP, EVENT_CAP, SET_KEY_PAIR_INFO_CAP and SET_KEY_PAIR_RESET_CAP.

Other CAPABILITIES fields:

FieldValue
CTExponent20 (2^20 µs, about 1 s)
DataTransferSizeTransport MTU
MaxSPDMmsgSizePAL maximum inbound request size with CHUNK_CAP, otherwise the MTU
Extended flagsNone
1

Only DOE with SPDM 1.2 or 1.3. SPDM 1.4 does not advertise secure session capabilities or select session algorithms on Caliptra 2.0. See Transport Support.

Algorithms

The responder supports exactly one algorithm per family. In ALGORITHMS it selects that algorithm if the requester offers it, and selects nothing otherwise.

FamilyAlgorithmCondition
MeasurementSpecificationDMTF
MeasurementHashAlgoSHA-384Always selected; the requester does not negotiate it
BaseHashAlgoSHA-384
BaseAsymAlgoECDSA NIST P-384Used if ML-DSA-87 is not selected
PqcAsymAlgoML-DSA-87SPDM 1.4 only; preferred over ECDSA if the requester offers both
DHESECP384R1Secured-message transports only 1
AEADAES-256-GCMSecured-message transports only 1
KeyScheduleSPDM key scheduleSecured-message transports only 1
OtherParamsSupportOpaqueDataFmt1
OtherParamsSupportMULTI_KEY_CONNset-certificate feature, SPDM 1.3+

Extended algorithms (ExtAsym, ExtHash, extended AlgStruct entries) are not supported.

ML-DSA-87 attestation uses the native DPE raw-message signing path. External-mu signing and ML-KEM are not supported on Caliptra 2.0.

Limitations

  • No mutual authentication: the responder never authenticates the requester (MUT_AUTH_CAP, encapsulated requests).
  • No pre-shared keys: sessions are only created with KEY_EXCHANGE, not PSK_EXCHANGE.
  • No HEARTBEAT or KEY_UPDATE: session keys are not updated during a session.
  • FINISH is always encrypted: HANDSHAKE_IN_THE_CLEAR_CAP is not supported.
  • Secure sessions only over DOE with SPDM 1.2 or 1.3: see Transport Support.
  • Number of sessions: limited by the MAX_SESSIONS parameter of SpdmStack (default 1).
  • KEY_EXCHANGE opaque data size: SPDM allows up to 1024 bytes of OpaqueData in KEY_EXCHANGE. This implementation only guarantees support for opaque data containing a single secured message supported-version list with up to 8 versions (or a total of 28 bytes of opaque data). Buffer allocation for KEY_EXCHANGE requests with more than 28 bytes of opaque data might fail.