Repository navigation
hal/blocking, veer: Add certificate chain storage and serve a chain over SPDM - #762
Merged
Merged
Conversation
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
approved these changes
Nov 20, 2026
Contributor
Author
|
Thanks! |
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.
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:CertificateChainreads a chainat 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.
CertificateStoreselects achain by slot and key algorithm.
Concatjoins two chains, and nests tojoin three or more.
veer_dpe::CaliptraDpeChain: the certificate chain of Caliptra's DPE asa
CertificateChain. Each read sendsGetCertificateChaincommands.//target/veer/tests/spdm: slot 0 holds the DPE chain (LDevID, FMCalias, runtime alias) and a
CertifyKeyleaf, 4228 bytes in all. Thehost test reads the chain and checks the digest and the root hash. It
passes on the emulator and the VCK190.
Limitations:
SpdmCertStoreof spdm-lib is inthe test. It handles one slot and does not sign.
hash is the hash of the LDevID certificate.