Skip to content

hal/blocking, veer: Add certificate chain storage and serve a chain over SPDM - #762

Merged
zhalvorsen merged 3 commits into
OpenPRoT:mainfrom
swenson:claude/veer-spdm-certs
Nov 20, 2026
Merged

zhalvorsen merged 3 commits into
OpenPRoT:mainfrom
swenson:claude/veer-spdm-certs

Conversation

@swenson

@swenson swenson commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Adds a HAL for reading certificate chains and uses it in the VeeR SPDM
responder test, which now answers GET_DIGESTS and GET_CERTIFICATE.

  • openprot_hal_blocking::certificate: CertificateChain reads a chain
    at an offset into a buffer that the caller sizes. A chain that is larger
    than RAM can then come from flash, OTP or another processor. An MLDSA-87
    chain of four certificates is about 30 KB. CertificateStore selects a
    chain by slot and key algorithm. Concat joins two chains, and nests to
    join three or more.
  • veer_dpe::CaliptraDpeChain: the certificate chain of Caliptra's DPE as
    a CertificateChain. Each read sends GetCertificateChain commands.
  • //target/veer/tests/spdm: slot 0 holds the DPE chain (LDevID, FMC
    alias, runtime alias) and a CertifyKey leaf, 4228 bytes in all. The
    host test reads the chain and checks the digest and the root hash. It
    passes on the emulator and the VCK190.

Limitations:

  • The traits only read chains.
  • No implementation has an MLDSA-87 chain.
  • The code that adapts the HAL store to SpdmCertStore of spdm-lib is in
    the test. It handles one slot and does not sign.
  • The chain has no root CA certificate and no IDevID certificate. Its root
    hash is the hash of the LDevID certificate.
  • The host test does not check the signatures of the certificates.

CertificateChain reads one chain at an offset into a buffer that the
caller sizes, so a chain that is larger than RAM can come from flash,
from OTP or from another processor. CertificateStore selects a chain by
slot and key algorithm. Concat joins two chains, and nests to join three
or more. The traits only read chains.

Assisted-by: Claude:claude-fable-5-2
CaliptraDpeChain implements CertificateChain for the certificate chain
of Caliptra's DPE. Each read sends GetCertificateChain commands.

Assisted-by: Claude:claude-fable-5-2
Slot 0 holds the chain of Caliptra's DPE and a CertifyKey leaf. The host
test reads the digest with GET_DIGESTS and the chain with
GET_CERTIFICATE, and checks the digest and the root hash. It does not
check the signatures of the certificates.

Assisted-by: Claude:claude-fable-5-2
@zhalvorsen
zhalvorsen merged commit 1cb6738 into OpenPRoT:main Nov 20, 2026
5 checks passed
@swenson
swenson deleted the claude/veer-spdm-certs branch November 20, 2026 00:21
@swenson

swenson commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks!

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