Caliptra Common Commands
Overview
This document defines the common Caliptra device management commands. These commands are transport-agnostic and common across all vendors integrating the Caliptra subsystem. They are accessed via the following transport mechanisms:
For the unified software architecture that handles both paths, see Unified Caliptra Command Handling.
Transport-specific command codes are defined by the transport documents. This document defines the common command names, transport assignment, and payload semantics.
Transport Selection
Commands are assigned to MCTP VDM IANA when they do not require SPDM authorization, SPDM-defined semantics, or SPDM streaming/chunking. Commands are assigned to SPDM VDM IANA when they require those properties. The MCI mailbox provides the in-band path for the same common command semantics where implemented.
Command List
The following table describes the commands defined under this specification. There are two categories: (1) Required commands (R) that are mandatory for all implementations, (2) Optional commands (O) that may be utilized if the specific implementation requires it.
| Message Name | R/O | Transport(s) | Description |
|---|---|---|---|
| Firmware Version | R | MCTP VDM, MCI Mailbox | Retrieve firmware version information. |
| Device Capabilities | R | MCTP VDM, MCI Mailbox | Retrieve device capabilities. |
| Get Debug Log | R | MCTP VDM, MCI Mailbox | Retrieve debug log. |
| Clear Debug Log | R | MCTP VDM, MCI Mailbox | Clear debug log. |
| Get Attestation | O | SPDM VDM, MCI Mailbox | Retrieve signed attestation evidence in a requester-selected format. |
| Request Debug Unlock | O | SPDM VDM, MCI Mailbox | Request debug unlock in production environment. |
| Authorize Debug Unlock Token | O | SPDM VDM, MCI Mailbox | Send debug unlock token to device for authorization. |
| Export Attested CSR | O | SPDM VDM, MCI Mailbox | Discover Caliptra identity keys or export an attested CSR for LDevID, FMC Alias, or RT Alias. |
| Provision IDevID Certificate | O | SPDM VDM, MCI Mailbox | Populate a DER-encoded IDevID certificate into Caliptra Core and optionally persist and lock it in OTP. |
| Device Ownership Transfer | O | SPDM VDM, MCI Mailbox | Query and change the implemented DOT state. |
| Field Entropy Status | O | MCI Mailbox | Report field entropy partition status. |
| Vendor PK Hash Status | O | MCI Mailbox | Report occupied vendor PK hash slots and each slot's PQC key type. |
| Authorization-Gated Subcommands | O | SPDM VDM, MCI Mailbox | Security-sensitive provisioning and fuse subcommands using a manifest-backed hybrid signature and signer-selected nonce form. |
Authorization-Gated Subcommands
The following subcommands are assigned to the SPDM VDM IANA authorization-gated path and are also available through the MCI mailbox path where implemented. Both paths use the same versioned Authorization Block, authority policy, target rules, and signature verification; only their outer framing differs. The signer selects Challenge-bound or replayable Offline authorization per request.
| Subcommand Name | Transport(s) | Description |
|---|---|---|
| Get Auth Challenge | SPDM VDM IANA, MCI Mailbox | Challenge acquisition for authorization-gated use. |
| Provision Vendor PK Hash | SPDM VDM IANA, MCI Mailbox | Provision vendor public key hash. |
| Fuse Increase Min SVN | SPDM VDM IANA, MCI Mailbox | Increase a selected minimum SVN. |
| Program Field Entropy | SPDM VDM IANA, MCI Mailbox | Program field entropy. |
| Fuse Revoke Vendor Public Key | SPDM VDM IANA, MCI Mailbox | Revoke vendor public key. |
| Fuse Revoke Vendor PK Hash | SPDM VDM IANA, MCI Mailbox | Revoke vendor public key hash. |
| Fuse Lock Partition | SPDM VDM IANA, MCI Mailbox | Lock fuse partition. |
| Auth Set Cert Chain | SPDM VDM IANA, MCI Mailbox | Authorize a certificate-chain write or erase for a managed PKI slot. |
| Dot Enable | SPDM VDM IANA, MCI Mailbox | Program the one-time DOT initialization gate. |
| Dot Lock | SPDM VDM IANA, MCI Mailbox | Lock the DOT after ownership validation. |
| Dot Disable | SPDM VDM IANA, MCI Mailbox | Enter ODD state with no DOT-supplied CAK. |
| Dot Rotate | SPDM VDM IANA, MCI Mailbox | Replace DOT key digests and advance the epoch. |
| Get Dot Backup Blob | SPDM VDM IANA, MCI Mailbox | Export the current DOT backup blob. |
Command Definitions
This section defines the request and response payloads for each command.
Common response payload tables describe command-specific response data only. They exclude transport-specific status and framing fields such as SPDM VDM completion codes, MCTP VDM completion codes, MCI mailbox chksum, MCI mailbox fips_status, and MCI mailbox variable-length data_len headers.
Firmware Version
Retrieves the version of the target firmware.
Request Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | area_index | u32 | Area Index: - 00h = Caliptra core firmware - 01h = MCU Runtime firmware - 02h = Optional integrator-defined aggregate SoC firmware-set version Additional indexes are firmware-specific |
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:31 | version | u8[32] | Firmware Version Number in ASCII format |
Versions use major.minor.patch ASCII format. Index 02h returns UnsupportedOperation when the integrator does not provide a single aggregate SoC firmware-set version. Individual SoC component versions may use firmware-specific additional indexes.
Device Capabilities
Request Payload: Empty
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:7 | caliptra_rt | u64 | Caliptra Runtime capabilities, copied from Core, big-endian |
| 8:11 | caliptra_fmc | u32 | Caliptra FMC capabilities, copied from Core, big-endian |
| 12:15 | caliptra_rom | u32 | Caliptra ROM capabilities, copied from Core, big-endian |
| 16:19 | mcu_rom | u32 | MCU ROM capabilities, big-endian |
| 20:23 | mcu_rt | u32 | MCU Runtime feature capabilities, big-endian |
| 24:27 | external_commands | u32 | Supported top-level common commands, big-endian |
| 28:31 | authorized_subcommands | u32 | Supported subcommands under AuthorizedCommand, big-endian |
| 32:47 | reserved | u8[16] | Reserved; responders set to zero |
| 48:63 | vendor | u8[16] | Vendor-defined capabilities |
external_commands covers the OCP command codes 01h through 20h. Command code N maps to bitmap bit N - 1, allowing all 32 top-level codes to fit in this field. This is Caliptra common-command discovery carried by DeviceCapabilities; it is not MCTP Control Protocol command discovery.
External Common-Command Capability Flags:
| Bitmap Bit | Command Code | Command | Transport |
|---|---|---|---|
| 0 | 01h | FirmwareVersion | MCTP VDM |
| 1 | 02h | DeviceCapabilities | MCTP VDM |
| 2 | 03h | GetDebugLog | MCTP VDM |
| 3 | 04h | ClearDebugLog | MCTP VDM |
| 4 | 05h | GetAttestation | SPDM VDM, MCU mailbox |
| 5 | 06h | RequestDebugUnlock | SPDM VDM |
| 6 | 07h | AuthorizeDebugUnlockToken | SPDM VDM |
| 7 | 08h | ExportAttestedCsr | SPDM VDM, MCI mailbox |
| 8 | 09h | ProvisionIdevCert | SPDM VDM, MCI mailbox |
| 16 | 11h | DeviceOwnershipTransfer | SPDM VDM, MCI mailbox |
| 17 | 12h | AuthorizedCommand | SPDM VDM, MCI mailbox |
This table defines the bit assignment for every allocated command code. A responder sets a bit only when the corresponding command is implemented. GetAttestation is set when a responder that carries it is built and the device can produce at least one evidence format. AuthorizedCommand is set when its wrapper and at least one authorized subcommand are implemented.
Authorized-Subcommand Capability Flags:
| Bitmap Bit | Subcommand | Status |
|---|---|---|
| 0 | GetAuthChallenge | Implemented |
| 1 | ProvisionVendorPkHash | Implemented |
| 2 | FuseIncreaseMinSvn | Implemented |
| 3 | ProgramFieldEntropy | Implemented |
| 4 | FuseRevokeVendorPublicKey | Implemented |
| 5 | FuseRevokeVendorPkHash | Implemented |
| 6 | FuseLockPartition | Implemented |
| 7 | ProvisionOwnerPkHash | Implemented |
| 8 | DotLock | Implemented |
| 9 | DotDisable | Implemented |
| 10 | DotRotate | Implemented |
| 11 | GetDotBackupBlob | Implemented |
| 12:13 | Reserved | — |
| 14 | DotEnable | Implemented |
| 15:17 | Reserved | — |
| 18 | AuthSetCertChain | Implemented |
| 19:31 | Reserved | — |
The authorized-subcommand assignments are stable capability indexes; they are not transport command IDs. A responder sets a bit only when that subcommand is implemented under AuthorizedCommand. Authorization, lifecycle, or policy restrictions do not clear an implementation capability bit; execution can still return AccessDenied, PolicyViolation, or InvalidState.
The 0x4D5A_524D (MZRM) UDS/field-entropy OTP zeroization command is not
implemented on Caliptra 2.0 over SPDM VDM or MCI mailbox. Bit 17 remains
reserved and must be clear.
MCU Runtime Capability Flags:
| Bit | Name | Description |
|---|---|---|
| 0 | FLASH_BOOT | MCU Runtime supports flash-based image loading |
| 1 | STREAMING_BOOT | MCU Runtime supports streaming image loading |
| 2 | FIRMWARE_UPDATE | MCU Runtime supports firmware update |
| 3 | SPDM_RESPONDER | MCU Runtime includes the SPDM responder |
| 4 | MCTP_VDM_RESPONDER | MCU Runtime includes the MCTP VDM responder |
| 5 | USERSPACE_DEBUG_LOG | MCU Runtime includes userspace debug logging |
| 6 | MCI_MAILBOX_SERVICE | MCU Runtime includes the external MCI mailbox service |
| 7 | DOE | MCU Runtime includes the DOE transport |
The mcu_rom field is populated from the versioned ROM-to-Runtime handoff. A
Runtime paired with an MCU ROM handoff version before 1.3 reports zero.
MCU ROM Capability Flags:
| Bit | Name | Description |
|---|---|---|
| 0 | STREAMING_BOOT_I3C | MCU ROM supports streaming boot over I3C |
| 1 | FLASH_BOOT | MCU ROM supports flash boot |
| 2:3 | Reserved | Responders report zero |
| 4 | FW_MANIFEST_DOT | MCU ROM supports Device Ownership Transfer manifests |
| 5 | COMPONENT_SVN_MANIFEST | MCU ROM supports component SVN manifests |
| 6 | Reserved | Responders report zero |
| 7 | DOT_BOOT | MCU ROM supports DOT blob authentication during boot |
| 8 | DOT_LOCKED_RECOVERY | MCU ROM has a configured DOT locked-state recovery path |
| 9 | I3C_DOT_RECOVERY | MCU ROM supports DOT recovery over I3C |
| 10:31 | Reserved | Responders report zero |
Get Debug Log
Retrieves the debug log for the MCU Runtime.
Request Payload: Empty
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | more_data | u32 | 1 if more log data remains |
| 4:7 | data_size | u32 | Size of the valid log data in bytes |
| 8:N | data | u8[data_size] | Debug log contents |
For defmt-based debug logs, the device exposes a sequential drain interface rather than random access to individual log entries. Callers drain the debug log by repeating this command until more_data is 0. Each response contains zero or more complete defmt frames. The host concatenates the returned data and decodes the resulting frame stream using the matching firmware ELF.
Debug Log Format:
The debug log payload is an opaque byte stream. For the MCU Runtime debug log, the current implementation uses the defmt crate. Each defmt log macro emits one complete rzCOBS-encoded frame, and the MCU runtime logging backend appends that complete frame as one flash log entry. Get Debug Log returns the concatenated raw frame bytes.
The device does not store human-readable log strings in the debug log. A host tool decodes the returned byte stream with defmt-decoder or defmt-print using the exact app's ELF that produced the log; the ELF .defmt section contains the interned format strings and metadata required to render readable messages.
Clear Debug Log
Clears the debug log in the MCU Runtime. No authorization is required.
Request Payload: Empty
Response Payload: Empty. Command completion status is carried by the transport-specific response framing.
Get Attestation
Retrieves signed attestation evidence bound to a requester-supplied nonce.
The requester selects the evidence format at runtime. The set of formats a device can produce is fixed at build time by the evidence generators it links. A requester discovers that set with the format-discovery query below.
OCP EAT is signed with the selected DPE leaf attestation key; PCR Quote is signed with the Caliptra AliasFMC key. Evidence retrieved over the MCI mailbox can be verified using the corresponding certificate chain retrieved over SPDM, and the reverse.
Evidence Formats
| Value | Name | Description |
|---|---|---|
0x0000 | (query) | Reserved. Selects the format-discovery query. |
0x0001 | OCP EAT | Signed OCP Entity Attestation Token (COSE_Sign1) carrying OCP EAT profile claims. |
0x0002 | PCR Quote | Caliptra PCR quote. |
A device that supports a format need not support it under every algorithm. The
OCP EAT signer supports ESP384 (-51) and ML-DSA-87 (-50). A
request naming an unsupported (evidence_format, algorithm) pair returns
UNSUPPORTED_OPERATION and no evidence is generated.
PKI Entity Slot (EndorsementRole)
pki_entity_slot (or role in MCI certificate commands) names the PKI entity whose hierarchy endorses the signing key or certificate chain. This encoding is shared across Caliptra attestation and certificate-management commands:
| Value | Name | Description |
|---|---|---|
0x0000 | Vendor | Device manufacturer hierarchy. |
0x0001 | Owner | Owner hierarchy. |
0x0002 | Tenant | Tenant hierarchy. |
A value not listed above returns INVALID_PARAMS. Requesting an unprovisioned (pki_entity_slot, algorithm) certificate chain returns INVALID_STATE.
Format Discovery
A request with evidence_format = 0x0000 is a query, not an evidence request.
The device returns a bitmap of the formats it can produce instead of evidence.
Bit n of the bitmap is set when the device supports the format whose wire
value is n; bit 0 is never set.
The supported set depends on which evidence generators the integrator built into
the device. A requester issues this query before requesting evidence rather than
inferring the set from DeviceCapabilities.
Request Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | evidence_format | u32 | Requested evidence format, or 0x0000 for the format-discovery query |
| 4:7 | algorithm | u32 | Asymmetric Algorithm: - 0x0001 = ECC P-384 - 0x0002 = ML-DSA-87 Ignored for the query request |
| 8:11 | pki_entity_slot | u32 | PKI entity (EndorsementRole): - 0x0000 = Vendor - 0x0001 = Owner - 0x0002 = Tenant Ignored for the query request |
| 12:43 | nonce | u8[32] | Nonce bound into the signed evidence for freshness. Ignored for the query request. |
For the query request, algorithm, pki_entity_slot, and nonce are ignored.
For an evidence request, a value outside the tables above returns
INVALID_PARAMS.
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | evidence_format | u32 | Echo of the requested evidence_format |
| 4:N | data | u8[] | For a format request: the signed evidence blob. For the query (evidence_format = 0x0000): a u32 bitmap of supported formats. |
The evidence blob is variable length, delimited by the transport's length field. The transports scope that field differently:
| Transport | Length field | Counts |
|---|---|---|
| SPDM VDM | data_len, framed after evidence_format | The evidence bytes only |
| MCI Mailbox | MailboxRespHeaderVarSize.data_len | The evidence_format field plus the evidence bytes |
For the MCI mailbox the evidence length is therefore data_len - 4.
Truncated evidence cannot pass signature verification, so a device that cannot fit the evidence in the response buffer fails the command instead.
Transport Sizing
Attestation evidence is variable length, and its size depends on which evidence generators the integrator builds into the device. Each transport sizes its response buffer from those generators:
- SPDM VDM reserves the size the requested format needs. Evidence that does
not fit in a single message is returned over the large-response (chunked)
path. The advertised
MaxSPDMmsgSizemust cover the largest evidence the device can produce. See SPDM VDM commands. - MCI Mailbox sizes the
GET_ATTESTATIONresponse buffer for the largest supported evidence. Other commands' response buffers are unaffected.
Request Debug Unlock
Requests debug unlock in production environment.
Request Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | length | u32 | Length of the message in DWORDs |
| 4 | unlock_level | u8 | Debug unlock level (1-8) |
| 5:7 | reserved | u8[3] | Reserved field |
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | length | u32 | Length of the message in DWORDs |
| 4:35 | unique_device_identifier | u8[32] | Device identifier of the Caliptra device |
| 36:83 | challenge | u8[48] | Random number challenge |
Authorize Debug Unlock Token
Authorizes the debug unlock token. The request body is identical for MCI mailbox and SPDM VDM transports. The requester computes the leading checksum field as the Caliptra RT mailbox request checksum so the unified command handler can relay the complete request unchanged.
Request Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | checksum | u32 | Requester-computed Caliptra RT mailbox request checksum (MailboxReqHeader.checksum) |
| 4:7 | length | u32 | Length of the message in DWORDs |
| 8:39 | unique_device_identifier | u8[32] | Device identifier of the Caliptra device |
| 40 | unlock_level | u8 | Debug unlock level (1-8) |
| 41:43 | reserved | u8[3] | Reserved field |
| 44:91 | challenge | u8[48] | Random number challenge |
| 92:187 | ecc_public_key | u32[24] | ECC public key in hardware format (little endian) |
| 188:2779 | mldsa_public_key | u32[648] | MLDSA public key in hardware format (little endian) |
| 2780:2875 | ecc_signature | u32[24] | ECC P-384 signature of the message hashed using SHA2-384 (R and S coordinates) |
| 2876:7503 | mldsa_signature | u32[1157] | MLDSA signature of the message hashed using SHA2-512 (4627 bytes + 1 reserved byte) |
Response Payload: Empty. Command completion status is carried by the transport-specific response framing.
Export Attested CSR
Discovers supported Caliptra identity keys or exports an attested Certificate Signing Request (CSR) for a specified device key.
This command is optional and compiled in only with the attested-csr cargo
feature (caliptra-mcu-mbox-lib/attested-csr for the MCI mailbox,
caliptra-mcu-spdm-vdm-handler/attested-csr for SPDM VDM); without it, the
command is rejected as unsupported (SPDM VDM completion UnsupportedOperation;
MCI mailbox command failure) and the EXPORT_ATTESTED_CSR capability bit is
clear.
Request Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | device_key_id | u32 | Device Key Identifier: - 0x0000 = Discover supported identity keys - 0x0001 = LDevID - 0x0002 = FMC Alias - 0x0003 = RT Alias |
| 4:7 | algorithm | u32 | Asymmetric Algorithm: - 0x0001 = ECC P-384 - 0x0002 = ML-DSA-87 |
| 8:39 | nonce | u8[32] | 32-byte nonce for freshness |
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | data_size | u32 | Length in bytes of the attested response data |
| 4:N | data | u8[data_size] | Attested key inventory or attested CSR data |
When device_key_id is 0, data SHALL contain the OCP Device Identity
Provisioning (DIP) signed-cwt discovery response, encoded as a tagged
COSE_Sign1 object whose payload is a cwt-attested-csr-eat-inventory map:
| CWT claim | Label | Type | Value |
|---|---|---|---|
| Nonce | 10 | byte string | The 32-byte request nonce |
| KeyPair Inventory | -70003 | CBOR array | One entry for every supported identity key for the requested algorithm |
Each KeyPair Inventory entry has this CBOR structure:
[
device_key_id: uint (1..255),
derivation_attributes: { tagged_oid: uint_bitfield, ... }
]
The derivation-attribute map SHALL contain OID
1.3.6.1.4.1.42623.1.2, encoded using CBOR tag 111. Its unsigned-integer
bitfield identifies the inputs used to derive the key: bit 0 = UDS, bit 1 =
field entropy, bit 2 = owner-provisioned non-confidential fuse, bit 3 =
vendor-provisioned non-confidential fuse, bit 4 = FMC, and bit 5 = runtime
firmware. Additional vendor OIDs MAY be present.
This encoding is defined by the OCP DIP
cwt-attested-csr-eat-inventory
CDDL. data_size covers the complete tagged COSE_Sign1 object.
When device_key_id is nonzero, data SHALL contain the OCP DIP
cwt-attested-csr-eat-csr signed CWT for the selected device key and
algorithm. Its payload contains the request nonce (claim 10), the DER-encoded
CSR (private claim -70001), and the key's derivation-attribute map (private
claim -70002).
Provision IDevID Certificate
Populates a DER-encoded IDevID certificate into Caliptra Core (POPULATE_IDEV_ECC384_CERT / POPULATE_IDEV_MLDSA87_CERT) and optionally burns, readback-verifies, and locks the platform's IDevID OTP partition for algorithm.
This command is optional and compiled in only when cert-provisioning is enabled (and vendor-certs-oob is not enabled); without it, the command is rejected as UnsupportedOperation and the PROVISION_IDEV_CERT capability bit (09h, bit 8) is clear.
Request Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | algorithm | u32 | Asymmetric Algorithm: - 0x0001 = ECC P-384 - 0x0002 = ML-DSA-87 |
| 4:7 | operation | u32 | Provisioning Mode: - 0x0000 = PopulateOnly (populate Caliptra Core only; do not write OTP) - 0x0001 = WriteOtp (write, readback-verify, and lock the IDevID OTP partition, then populate Caliptra Core) |
| 8:11 | cert_size | u32 | Length in bytes of the DER-encoded IDevID certificate (1..=8192) |
| 12:N | cert_data | u8[cert_size] | Raw DER-encoded IDevID certificate |
Response Payload: Empty. Command completion status is carried by the transport-specific response framing.
State and Authorization Rules:
- Both
PopulateOnlyandWriteOtpreturnInvalidState(0x0F) if the algorithm'sIDevIDOTP partition is already locked (is_partition_locked(partition_id) == true).PopulateOnlyalso returnsInvalidState(0x0F) ifIDevIDforalgorithmis already populated in Caliptra Core (is_idevid_populated(algorithm) == true). IfIDevIDis already populated while the OTP partition is still unlocked (for example, after a reset between saving the certificate to OTP and locking the partition),WriteOtpverifies that the stored OTP certificate matchescert_dataand completes locking the partition (returningInvalidStateif the stored bytes do not match). cert_datamust begin with a valid ASN.1SEQUENCE(0x30) whose outer DER length equalscert_size; otherwiseInvalidParameter(0x02) is returned.- In
WriteOtpmode (0x0001), the MCU writes the word-padded DER certificate to the algorithm'sIDevIDOTP partition, reads back and verifies every word, and locks the partition before invokingPOPULATE_IDEV_ECC384_CERT/POPULATE_IDEV_MLDSA87_CERTon Caliptra Core. - On success, the certificate store marks
IDevIDpopulated foralgorithm, makingEndorsementRole::Vendor(Slot 0) provisioned if its CA endorsement chain is also configured.
Authorization-Gated Subcommand Wrapper
Security-sensitive provisioning and fuse subcommands are assigned to the SPDM
VDM IANA authorization-gated path and the MCI mailbox path. The SPDM VDM
transport and MCI both use an Authorized Command (0x12) wrapper. In both
cases the first four payload bytes are a little-endian target ID. Protected
commands append the common version-1
Authorization Block, including
metadata, nonce, public keys, and both signatures. Both signatures bind:
target_id(BE) || command_payload ||
version(LE) || authority(LE) || soc_ueid[16] || nonce[48]
The signer chooses the nonce form per request. In Challenge-bound mode, it is a live, one-use device challenge. In Offline mode, it is 48 zero bytes and no challenge request is needed. See Caliptra SPDM VDM Commands for the signature algorithms and key encodings.
Request Payload
Let P be the command-specific payload length. Transport headers and checksums
are outside this body.
| Offset | Length (bytes) | Field | Description |
|---|---|---|---|
| 0 | 4 | sub_cmd_id | Little-endian target ID. |
| 4 | P | command_payload | Command-specific bytes, including any family operation ID. |
4 + P | 7,484 | authorization_block | The fixed-size Authorization Block. |
GetAuthChallenge is the bootstrap exception: its wrapper payload contains
only the target ID, without an Authorization Block.
Response Payload
SPDM VDM uses the response payload below after its Caliptra command header. MCI instead uses normal mailbox response framing and command-status reporting.
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0 | completion_code | u8 | OCP completion code (0x00 = Success, 0x0C = Access Denied). |
| 1:N | sub_response | u8[N] | Subcommand-specific response data, absent if completion_code != 0x00. |
The subcommands covered by this wrapper are listed in Authorization-Gated Subcommands.
DotEnable, DotLock, DotDisable, DotRotate, and GetDotBackupBlob are the DOT-family subcommands that use this authorization wrapper. The remaining DOT commands (DotUnlockChallenge, DotUnlock, DotStatus, DotRecovery, DotOverrideChallenge, and DotOverride) are native device-ownership-transfer commands carried under top-level command 0x11 rather than via the AuthorizedCommand wrapper.
Subcommand-specific payloads are defined by the corresponding command specifications and contain no mailbox request header.
Vendor-Unique Command IDs
The innermost target-ID namespace reserves VU00 through VUFF for
vendor-unique commands. This is exactly 256 FourCC values: VUxy, where x
and y are uppercase ASCII hexadecimal digits. Both transports carry VUxy
inside AuthorizedCommand; it does not consume a top-level transport command
code.
The reference MCU assigns no behavior to this namespace and returns
UnsupportedOperation. Vendor implementations may define payloads and behavior
within this reserved namespace without colliding with Caliptra-defined FourCCs.
Platform Extension Hooks
Platforms opt in through their existing CaliptraCmdHandler backend:
vendor_command_limits(cmd_id) declares body limits for supported VUxy IDs,
and handle_vendor_command(alloc, cmd_id, payload, response) implements them.
The metadata lookup must have no side effects. Its default returns None;
the execution hook defaults to UnsupportedOperation and runs only after the
normal authorization checks pass.
The payload excludes the target ID and Authorization Block. It must fit the
declared limit and command::MAX_AUTHORIZED_PAYLOAD_LEN (60 bytes, or 104 with
device-ownership-transfer). The response buffer excludes transport framing;
the hook returns its written length, bounded by the declared response limit.
Exact payload lengths and semantics remain the platform's responsibility.
Transport buffers and framing are unchanged. The declared response limit must
fit the buffer already supplied by the frontend: the normal MCU mailbox scratch
service provides four vendor response-body bytes, and SPDM uses its existing
inline response capacity. Insufficient space returns InsufficientResources
(mailbox command failure). Vendor hooks do not enable large responses, resize
buffers, override standard IDs, or expose top-level VUxy mailbox opcodes.
Get Auth Challenge
Returns a one-use 48-byte nonce for Challenge-bound authorization. Offline requests instead use an all-zero nonce.
Request Payload: Empty
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:47 | challenge | u8[48] | One-use command authorization challenge. |
Provision Vendor PK Hash
Provisions the vendor public key hash.
Request Payload: slot:u32 | hash:u8[48] | AuthorizationBlock
Response Payload: Empty
Provision Owner PK Hash
Provisions the firmware owner public-key hash in OTP. This is distinct from
configuring the command-key digest in Owner SoC Manifest IME 0x6.
Request Payload: hash:u8[48] | AuthorizationBlock
The hash retains its existing dword-reversed OTP byte representation.
Response Payload: Empty
Fuse Increase Min SVN
Increases a selected minimum SVN using command code 0x4D43_4D53 (MCMS).
flags is reserved and must be zero.
| Target | Name | Requested SVN | Fuse |
|---|---|---|---|
0 | Caliptra Runtime | 1-128 | CPTRA_CORE_RUNTIME_SVN |
1 | SoC Manifest | 1-128 | CPTRA_CORE_SOC_MANIFEST_SVN |
2 | Owner SoC Manifest | 1-64 (SDK default) | OWNER_SOC_MANIFEST_MIN_SVN |
Unknown targets, zero, values outside the target's range, and decreases below
the current fuse floor are invalid. The Caliptra Runtime target is additionally
bounded by the running SVN reported by FW_INFO. The SoC Manifest target is
bounded by CPTRA_CORE_SOC_MANIFEST_MAX_SVN. No trusted running SoC Manifest SVN is
currently exposed, so that target cannot verify the requested floor against the
currently running image.
The Owner SoC Manifest target is additionally bounded by
FW_INFO.owner_auth_manifest_current_svn, the SVN accepted by Core.
After programming any target, the command verifies the full SVN field by
readback. A read failure or a mismatch returns OperationFailed.
The command does not reset the device. For Owner SoC Manifest storage and activation, see Owner SoC Manifest SVN.
Request Payload: flags:u32 | target:u32 | svn:u32 | AuthorizationBlock
Response Payload: Empty
Program Field Entropy
Programs field entropy by forwarding Caliptra Core's FE_PROG command after
authorization and request validation.
Request Payload: partition:u32 | AuthorizationBlock
Response Payload: Empty
Field Entropy Status
Queries Caliptra Core's FW_INFO.fe_status and returns the packed status word.
Partition i (0..3) occupies bits [2*i+1:2*i] (0 = Unprovisioned,
1 = Provisioned, 2 = Zeroized, 3 = Error); bits 31:8 are reserved (0).
This command does not require authorization.
Request Payload: Empty
Response Payload:
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | fe_status | u32 | Packed status from FW_INFO.fe_status; partition i (0..3) is encoded in bits [2*i+1:2*i]. |
Fuse Revoke Vendor Public Key
Revokes a vendor public key.
Request Payload: reserved:u32 | slot:u32 | key_type:u32 | key_index:u32 | AuthorizationBlock
Response Payload: Empty
Fuse Revoke Vendor PK Hash
Revokes a vendor public key hash.
Request Payload: reserved:u32 | slot:u32 | AuthorizationBlock
Response Payload: Empty
Fuse Lock Partition
Locks a fuse partition.
Request Payload: partition:u32 | AuthorizationBlock
Response Payload: Empty
Auth Set Cert Chain
Pre-authorizes and arms a single certificate-chain write or erase transaction
for a managed (pki_entity_slot, algorithm) slot using command code
0x4D41_5343 (MASC). After Auth Set Cert Chain succeeds, the caller
transfers the DER certificate chain via MC_SET_CERT_CHAIN (in-band MCI
mailbox) or SPDM SET_CERTIFICATE (out-of-band).
Request Payload: pki_entity_slot:u32 | algorithm:u32 | total_size:u32 | expected_sha384:u8[48] | AuthorizationBlock
| Byte(s) | Name | Type | Description |
|---|---|---|---|
| 0:3 | pki_entity_slot | u32 | Target PKI entity slot: - 0x0000 = Vendor - 0x0001 = Owner - 0x0002 = Tenant |
| 4:7 | algorithm | u32 | Asymmetric Algorithm: - 0x0001 = ECC P-384 - 0x0002 = ML-DSA-87 |
| 8:11 | total_size | u32 | Total DER endorsement byte length to write, or 0 to authorize an erase |
| 12:59 | expected_sha384 | u8[48] | Expected SHA-384 digest over the complete DER endorsement bytes (0 when total_size == 0 is permitted for erase) |
Response Payload: Empty
Per-Slot Authority Policy and Execution Semantics:
pki_entity_slot | Required CommandAuthority | Authorized Key Source |
|---|---|---|
0 (Vendor) | VendorOwner (1) or Owner (2) | Base SoC Manifest IME 0x4 (V_AUTH_KEY_ID) or Owner SoC Manifest IME 0x6 (O_AUTH_KEY_ID) |
1 (Owner) | Owner (2) | Owner SoC Manifest IME 0x6 (O_AUTH_KEY_ID) |
2 (Tenant) | None (allowed without MC_AUTH_SET_CERT_CHAIN by default) | MC_AUTH_SET_CERT_CHAIN rejected with AccessDenied (0x0C) |
- Any other
CommandAuthorityfor the requestedpki_entity_slotis rejected withAccessDenied(0x0C). - If the targeted
(pki_entity_slot, algorithm)slot is not configured as a managed endorsement slot, the command returnsUnsupportedOperation(0x07). Iftotal_sizeexceeds the slot's configured capacity, it returnsInvalidParameter(0x02). - While a mutation is executing on a
(pki_entity_slot, algorithm)slot (including hashing and storage I/O), re-arming or another mutation returnsSTORAGE_BUSYwithout changing the stream or authorization. - Between chunks, a valid re-arm aborts an idle multi-chunk stream on that slot, whether started over MCI or SPDM, and replaces the pending grant. An invalid re-arm leaves both unchanged.
- During the subsequent
MC_SET_CERT_CHAINor SPDMSET_CERTIFICATEoperation on a slot withauth_requiredenabled:- A write or erase without a matching armed
(pki_entity_slot, algorithm)or with a mismatchedtotal_sizeis rejected. - Admission claims the matching grant for that transaction. It cannot authorize another transaction, and is not restored after an abort or failure. Rejected admission leaves the pending grant unchanged.
- Multi-chunk writes retain the claimed authorization across intermediate chunks. A mismatched continuation is rejected without aborting the current stream.
- At commit, the certificate store verifies that the staged DER endorsement's SHA-384 digest matches the claimed
expected_sha384before switching the active region. Changingauth_requireddoes not change an already-admitted transaction's authorization.
- A write or erase without a matching armed
Device Ownership Transfer (DOT)
The device-ownership-transfer family is carried under the top-level DeviceOwnershipTransfer command (0x11). This family uses the DOT FourCC namespace and is split between authorization-gated and native commands:
- Authorization-gated:
MDEN(DotEnable),MDLK(DotLock),MDDS(DotDisable),MDRT(DotRotate),MDBB(GetDotBackupBlob) - Native:
MDUC(DotUnlockChallenge),MDUL(DotUnlock),MDST(DotStatus),MDRC(DotRecovery),DOTW(DotOverrideChallenge),DOTX(DotOverride)
The authorization-gated DOT commands are sent via the AuthorizedCommand wrapper and are rejected if delivered directly under 0x11. The native DOT commands perform challenge-and-signature verification against the current ownership blob or the recovery-key hash, as appropriate for the command.
| FourCC | Command | Path | Description |
|---|---|---|---|
MDEN (0x4D44_454E) | DotEnable | Authorized | Program the redundant dot_initialized fuse bits when DOT and its epoch counter are pristine. |
MDLK | DotLock | Authorized | Lock DOT with a nonzero CAK digest and LAK digest. |
MDDS | DotDisable | Authorized | Enter ODD state with a zero CAK digest and a nonzero LAK digest. |
MDRT | DotRotate | Authorized | Replace the CAK and LAK digests and advance the DOT epoch by two. |
MDBB | GetDotBackupBlob | Authorized | Export a valid backup copy of the active DOT blob. |
MDUC | DotUnlockChallenge | Native | Request the unlock challenge for a valid ODD DOT state. |
MDUL | DotUnlock | Native | Complete ownership unlock using public keys matching the stored LAK digest and both challenge signatures. |
MDST | DotStatus | Native/read-only | Return the current DOT status and fuse state. |
MDRC | DotRecovery | Native | Restore DOT from a previously backed-up blob. |
DOTW | DotOverrideChallenge | Native | Start DOT recovery using the recovery-key challenge flow. |
DOTX | DotOverride | Native | Complete DOT recovery by verifying the hybrid recovery signature. |
See DOT Commands for the detailed state machine, validation rules, and command sequencing.
Completion Codes
Command responses include a completion code indicating the result of the operation. Standard codes (0x00-0x0F) follow the OCP command registry. Codes 0xC0-0xFF are reserved for Caliptra project-specific errors.
OCP Standard Codes
| Code | Name | Description |
|---|---|---|
0x00 | Success | Command completed successfully |
0x01 | General Error | Unspecified error |
0x02 | Invalid Parameter | One or more parameters are invalid |
0x03 | Invalid Length | Request/response length mismatch |
0x04 | Invalid Identifier | Unknown or invalid identifier |
0x05 | Operation Failed | Operation could not be completed |
0x06 | Insufficient Resources | Not enough resources to complete command |
0x07 | Unsupported Operation | Command is not supported |
0x08 | Device Not Ready | Device is not ready to process command |
0x09 | Invalid Command Version | Command version not supported |
0x0A | Invalid Payload Size | Payload size does not match expected |
0x0B | Timeout | Operation timed out |
0x0C | Access Denied | Authorization required |
0x0D | Resource Unavailable | Requested resource is not available |
0x0E | Policy Violation | Operation violates configured policy |
0x0F | Invalid State | Device is not in the correct state |
Caliptra Project-Specific Codes (0xC0-0xFF)
| Code | Name | Description |
|---|---|---|
0xC0 | Caliptra Mailbox Busy | Caliptra mailbox is not ready |
0xC1 | Caliptra Buffer Too Small | Response buffer too small |