External Mailbox (MCI Mailbox) Commands Spec

Overview

This document outlines the external mailbox commands that enable SoC agents to interact with the MCU via MCI mailbox. These commands support common Caliptra management functions, including querying firmware information, retrieving debug and attestation logs, exporting attested CSRs, utilizing cryptographic services, secure debug unlock, and in-field fuse provisioning.

The MC_AUTHORIZED_COMMAND envelope described here is an MCU Runtime protocol. MCU ROM's boot-time fuse mailbox retains its ROM-specific direct command framing and is not changed by this Runtime ABI.

  • Device Identification and Capabilities

    • Retrieve firmware versions and device capabilities to ensure compatibility and proper configuration.
  • Debugging and Diagnostics

    • Retrieve debug logs to analyze device behavior, diagnose issues, and monitor runtime states.
    • Clear logs to reset diagnostic data and maintain storage efficiency.
  • Certificate Management

    • Export attested Certificate Signing Requests (CSRs) for device keys to facilitate secure provisioning.
    • Query certificate-chain metadata and SHA-384 digests, retrieve complete DER certificate chains, and provision or erase managed Owner and Tenant endorsements.
  • Cryptographic Services

    • AES encryption and decryption
    • SHA hashing
    • Random number generation
    • Digital signing
    • Signature verification
    • Key exchange
  • Debug Unlock Mechanisms

    • Facilitate secure debugging in production environments
    • Ensure controlled access to debugging features
  • In-Field Fuse Provisioning

Mailbox Commands List

NameCommand CodeDescription
MC_FIRMWARE_VERSION0x4D46_5756 ("MFWV")Retrieves the version of the target firmware.
MC_DEVICE_CAPABILITIES0x4D43_4150 ("MCAP")Retrieve the device capabilities.
MC_EXPORT_ATTESTED_CSR0x4D45_4143 ("MEAC")Discovers supported device keys or exports an attested CSR, wrapped in a CoseSign1 structure.
MC_DPE_SIGNER_CONTEXT_CERT0x4D44_5343 ("MDSC")Derives DPE signer context from EXPORT_CDI_TARGET and returns the derived leaf certificate.
MC_DPE_SIGNER_CONTEXT_SIGN0x4D44_5353 ("MDSS")Signs a SHA-384 digest with the stored ECC P-384 Exported-CDI key.
MC_GET_DPE_CERTIFICATE_CHAIN0x4D44_4343 ("MDCC")Retrieves the DPE certificate chain.
MC_GET_ATTESTATION0x4D47_4154 ("MGAT")Retrieves signed attestation evidence in a requester-selected format.
MC_GET_CERT_CHAIN_INFO0x4D47_4349 ("MGCI")Retrieves certificate-chain metadata, length, and raw DER SHA-384 digest.
MC_GET_CERT_CHAIN0x4D47_4343 ("MGCC")Retrieves a chunk of the complete raw DER certificate chain.
MC_SET_CERT_CHAIN0x4D53_4343 ("MSCC")Provisions, replaces, or erases a managed PKI endorsement chain.
MC_PROVISION_IDEV_CERT0x4D50_4943 ("MPIC")Populates an IDevID certificate into Caliptra Core and optionally OTP.
MC_GET_LOG0x4D47_4C47 ("MGLG")Retrieves the debug log
MC_CLEAR_LOG0x4D43_4C47 ("MCLG")Clears the debug log
MC_FIPS_SELF_TEST_START0x4D46_5354 ("MFST")Starts the FIPS self-test to exercise the crypto engine.
MC_FIPS_SELF_TEST_GET_RESULTS0x4D46_4752 ("MFGR")Retrieves the results of the FIPS self-test.
MC_FIPS_PERIODIC_ENABLE0x4D46_5045 ("MFPE")Enables or disables periodic FIPS self-test.
MC_FIPS_PERIODIC_STATUS0x4D46_5053 ("MFPS")Retrieves the status of periodic FIPS self-test.
MC_SHA_INIT0x4D43_5349 ("MCSI")Starts the computation of a SHA hash of data.
MC_SHA_UPDATE0x4D43_5355 ("MCSU")Continues a SHA computation started by MC_SHA_INIT or another MC_SHA_UPDATE.
MC_SHA_FINAL0x4D43_5346 ("MCSF")Finalizes the computation of a SHA and produces the hash of all the data.
MC_HMAC0x4D43_484D ("MCHM")Computes an HMAC according to RFC 2104.
MC_HMAC_KDF_COUNTER0x4D43_4B43 ("MCKC")Computes HMAC KDF in Counter Mode as specified in NIST SP800-108.
MC_HKDF_EXTRACT0x4D43_4B54 ("MCKT")Implements HKDF-Extract as specified in RFC 5869.
MC_HKDF_EXPAND0x4D43_4B50 ("MCKP")Implements HKDF-Expand as specified in RFC 5869.
MC_AES_ENCRYPT_INIT0x4D43_4349 ("MCCI")Starts an AES encryption operation.
MC_AES_ENCRYPT_UPDATE0x4D43_4355 ("MCCU")Continues an AES encryption operation started by MC_AES_ENCRYPT_INIT.
MC_AES_DECRYPT_INIT0x4D43_414A ("MCAJ")Starts an AES-256 decryption operation.
MC_AES_DECRYPT_UPDATE0x4D43_4155 ("MCAU")Continues an AES decryption operation started by MC_AES_DECRYPT_INIT.
MC_AES_GCM_ENCRYPT_INIT0x4D43_4749 ("MCGI")Starts an AES-256-GCM encryption operation.
MC_AES_GCM_ENCRYPT_UPDATE0x4D43_4755 ("MCGU")Continues an AES-GCM encryption operation started by MC_AES_GCM_ENCRYPT_INIT.
MC_AES_GCM_ENCRYPT_FINAL0x4D43_4746 ("MCGF")Finalizes the AES-GCM encryption operation and produces the final ciphertext and tag.
MC_AES_GCM_DECRYPT_INIT0x4D43_4449 ("MCDI")Starts an AES-256-GCM decryption operation.
MC_AES_GCM_DECRYPT_UPDATE0x4D43_4455 ("MCDU")Continues an AES-GCM decryption operation started by MC_AES_GCM_DECRYPT_INIT.
MC_AES_GCM_DECRYPT_FINAL0x4D43_4446 ("MCDF")Finalizes the AES-GCM decryption operation and verifies the tag.
MC_ECDH_GENERATE0x4D43_4547 ("MCEG")Computes the first half of an Elliptic Curve Diffie-Hellman exchange.
MC_ECDH_FINISH0x4D43_4546 ("MCEF")Computes the second half of an Elliptic Curve Diffie-Hellman exchange.
MC_ECDSA_CMK_PUBLIC_KEY0x4D43_4550 ("MCEP")Generates an ECDSA public key from a CMK.
MC_ECDSA_CMK_SIGN0x4D43_4553 ("MCES")Creates an ECDSA signature using a CMK.
MC_ECDSA_CMK_VERIFY0x4D43_4556 ("MCEV")Validates an ECDSA signature using a CMK.
MC_MLDSA_CMK_PUBLIC_KEY0x4D4D_4C50 ("MMLP")Generates an ML-DSA public key from a CMK.
MC_MLDSA_CMK_SIGN0x4D4D_4C53 ("MMLS")Creates an ML-DSA signature using a CMK.
MC_MLDSA_CMK_VERIFY0x4D4D_4C56 ("MMLV")Validates an ML-DSA signature using a CMK.
MC_RANDOM_STIR0x4D43_5253 ("MCRS")Adds additional entropy to the internal deterministic random bit generator.
MC_RANDOM_GENERATE0x4D43_5247 ("MCRG")Generates random bytes from the internal RNG.
MC_IMPORT0x4D43_494D ("MCIM")Imports a specified key and returns a CMK for it.
MC_DELETE0x4D43_444C ("MCDL")Deletes the object stored with the given mailbox ID.
MC_CM_STATUS0x4D43_5354 ("MCST")Reports cryptographic mailbox key-storage usage.
MC_ECDSA384_SIG_VERIFY0x4D45_4356 ("MECV")Verifies an ECDSA P-384 signature.
MC_LMS_SIG_VERIFY0x4D4C_4D56 ("MLMV")Verifies an LMS signature.
MC_PROD_DEBUG_UNLOCK_REQ0x4D50_5552 ("MPUR")Requests debug unlock in a production environment.
MC_PROD_DEBUG_UNLOCK_TOKEN0x4D50_5554 ("MPUT")Sends the debug unlock token.
MC_AUTHORIZED_COMMAND0x0000_0012Carries authorization-related target IDs, payloads, and authorization trailers.
MC_GET_AUTH_CMD_CHALLENGE0x4D41_4343 ("MACC")Target ID under MC_AUTHORIZED_COMMAND; requests a one-use challenge.
MC_FUSE_INCREASE_MIN_SVN0x4D43_4D53 ("MCMS")Target ID under MC_AUTHORIZED_COMMAND; increases the selected minimum SVN.
MC_FUSE_READ0x4946_5052 ("IFPR")MCI-only target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_FUSE_WRITE0x4946_5057 ("IFPW")MCI-only target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_FUSE_LOCK_PARTITION0x4946_504B ("IFPK")Target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_PROVISION_VENDOR_PK_HASH0x5056_504b ("PVPK")Target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_PROVISION_OWNER_PK_HASH0x504F_504B ("POPK")Target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_FE_PROG0x4D43_4650 ("MCFP")Target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_FE_STATUS0x4D43_4653 ("MCFS")Reports field entropy partition status.
MC_VENDOR_PK_HASH_STATUS0x4D56_5053 ("MVPS")Reports occupied vendor PK hash slots and their PQC key types.
MC_FUSE_REVOKE_VENDOR_PUB_KEY0x4D52_564B ("MRVK")Target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_FUSE_REVOKE_VENDOR_PK_HASH0x5256_4b48 ("RVKH")Target ID under MC_AUTHORIZED_COMMAND; see fuses spec.
MC_AUTH_SET_CERT_CHAIN0x4D41_5343 ("MASC")Target ID under MC_AUTHORIZED_COMMAND; authorizes a certificate-chain write or erase for a managed PKI slot.
MC_DEVICE_OWNERSHIP_TRANSFER0x0000_0011Native Device Ownership Transfer family; subcommand is carried in mailbox SRAM.
VENDOR_UNIQUE_COMMANDS"VU00"-"VUFF"Reserved for vendor-unique innermost commands; unsupported by the reference MCU.

Vendor-Unique Command IDs

VU00 through VUFF reserve exactly 256 four-byte command IDs for vendor-unique use. The first two bytes are the ASCII characters VU; each suffix byte is one uppercase ASCII hexadecimal digit (0-9 or A-F). Consequently, the numeric values between 0x5655_3030 (VU00) and 0x5655_4646 (VUFF) are not one contiguous allocation.

These are innermost command IDs. Both MCI and SPDM carry the ID inside AuthorizedCommand; it is not a top-level transport command code. The reference MCU does not implement vendor-specific behavior and returns an unsupported-command error.

Command Format

Common command payloads are defined in Caliptra Common Commands. This section lists the MCI mailbox command code for each common command and keeps mailbox-only command definitions in this document. MCI mailbox checksum, fips_status, and variable-length data_len fields are transport-specific response framing and are not part of the common command payload tables.

MC_AUTHORIZED_COMMAND

Every MCI authorization-related request uses command register value 0x00000012. The first payload dword is always a little-endian target ID. Direct targets carry their operation payload next; family targets carry a second little-endian family subcommand.

Direct: checksum || target_id:u32 || command_payload || authorization_trailer
Family: checksum || family_id:u32 || family_subcommand:u32
        || command_payload || authorization_trailer
MACC:   checksum || 0x4D41_4343:u32

MACC has no command payload or authorization trailer. For signed requests, the preimage is target_id(BE) || signed_payload || nonce; for a family target, the signed payload begins with the family subcommand.

MC_DEVICE_OWNERSHIP_TRANSFER

Native MCU Runtime DOT requests use MCI command register value 0x00000011. Authorized DOT requests use MC_AUTHORIZED_COMMAND with family target 0x00000011.

Native:     checksum || DOT_FourCC || DOT_payload
Authorized: checksum || 0x00000011 || DOT_FourCC
            || DOT_payload || authorization_trailer

The authorized trailer is nonce[48] || ecc_pub_x[48] || ecc_pub_y[48] || mldsa_pub[2592] || HybridSignature. For authorized DOT commands the signed preimage is 0x00000011(BE) || DOT_FourCC(LE) || DOT_payload || nonce.

FourCCCommandClassification
MDEN (0x4D44_454E)EnableAuthorized
MDLKLockAuthorized
MDDSDisableAuthorized
MDRTRotateAuthorized
MDBBGet backup blobAuthorized
MDUCUnlock challengeNative
MDULUnlockNative LAK signatures
MDSTStatusNative/read-only
MDRCRestore backup blobNative blob HMAC
DOTWOverride challengeNative fused recovery key
DOTXOverrideNative recovery-key signatures

Payload semantics match Caliptra SPDM VDM DOT commands.

For detailed command flows, state transitions, security properties, and use cases, see Device Ownership Transfer (DOT)

MC_FIRMWARE_VERSION

Retrieves the version of the target firmware.

Command Code: 0x4D46_5756 ("MFWV")

Payload semantics are defined by Firmware Version.

MCI mailbox response payload:

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.
data_lenu32Length in bytes of the valid version data.
versionu8[data_len]Firmware Version Number in ASCII format.

MC_DEVICE_CAPABILITIES

Retrieve the device capabilites.

Command Code: 0x4D43_4150 ("MCAP")

Payload semantics are defined by Device Capabilities.

MC_EXPORT_ATTESTED_CSR

Discovers supported Caliptra identity keys or exports an attested Certificate Signing Request (CSR) for a specified device key.

Command Code: 0x4D45_4143 ("MEAC")

Payload semantics are defined by Export Attested CSR.

MC_DPE_SIGNER_CONTEXT_CERT

Derives a DPE Exported-CDI context (EXPORT_CDI | CREATE_CERTIFICATE | RETAIN_PARENT_CONTEXT) from the configured EXPORT_CDI_TARGET in the MCU Attestation Manifest (MCAM), stashes the 32-byte exported_cdi handle in DPE Handle Storage, and returns the derived X.509 leaf certificate. Calling this command again automatically revokes any previously derived Exported-CDI handle in Caliptra before deriving a fresh context.

This command is optional and compiled in only with the allow-mcu-signer-cert cargo feature (caliptra-mcu-mbox-lib/allow-mcu-signer-cert, which is also enabled by ocp-lock and unsafe-allow-mcu-signing-oracle); without it, the MCI mailbox rejects the command as unsupported (UNSUPPORTED_COMMAND).

Command Code: 0x4D44_5343 ("MDSC")

Table: MC_DPE_SIGNER_CONTEXT_CERT input arguments

NameTypeDescription
chksumu32Checksum over input data.
target_fw_idu32Target DPE node fw_id (0 = default EXPORT_CDI_TARGET configured in MCAM).
algorithmu32Endorsement algorithm (0x0001 = ECDSA P-384, 0x0002 = ML-DSA-87).

Table: MC_DPE_SIGNER_CONTEXT_CERT output arguments

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.
data_lenu32Length in bytes of the DER-encoded leaf certificate.
cert_datau8[data_len]DER-encoded DPE Exported-CDI X.509 leaf certificate.

MC_DPE_SIGNER_CONTEXT_SIGN

Signs caller-supplied data using the stored DPE Exported-CDI handle for target_fw_id (0 uses the default EXPORT_CDI_TARGET configured in MCAM; MC_DPE_SIGNER_CONTEXT_CERT must have been executed first, and no TCB update on the EXPORT_CDI_TARGET lineage may have revoked the handle since derivation).

This command is optional and compiled in only with the unsafe-allow-mcu-signing-oracle cargo feature (caliptra-mcu-mbox-lib/unsafe-allow-mcu-signing-oracle); without it, the MCI mailbox rejects the command as unsupported (UNSUPPORTED_COMMAND).

Command Code: 0x4D44_5353 ("MDSS")

Table: MC_DPE_SIGNER_CONTEXT_SIGN input arguments

NameTypeDescription
chksumu32Checksum over input data.
target_fw_idu32Target DPE node fw_id (0 = default EXPORT_CDI_TARGET configured in MCAM).
algorithmu32Endorsement algorithm (0x0001 = ECDSA P-384, 0x0002 = ML-DSA-87).
data_lenu32Length of data in bytes (48 for ECDSA P-384 SHA-384 digest; 1..=4096 for ML-DSA-87 TBS message).
datau8[data_len]48-byte SHA-384 digest (ECDSA_384) or to-be-signed message up to 4096 bytes (MLDSA_87).

Table: MC_DPE_SIGNER_CONTEXT_SIGN output arguments

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.
data_lenu32Signature length in bytes (96 for ECDSA P-384 r || s; 4627 for ML-DSA-87).
signatureu8[data_len]Signature bytes verifiable under the MC_DPE_SIGNER_CONTEXT_CERT leaf public key.

MC_GET_ATTESTATION

Retrieves signed attestation evidence bound to a requester-supplied nonce.

Command Code: 0x4D47_4154 ("MGAT")

Payload semantics, the evidence format values, and the format-discovery query are defined by Get Attestation.

MCI mailbox response payload:

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.
data_lenu32Length in bytes of evidence_format plus evidence.
evidence_formatu32Echo of the requested evidence_format.
evidenceu8[data_len-4]Signed evidence blob, or a u32 supported-format bitmap when responding to the query.

MC_GET_CERT_CHAIN_INFO

Retrieves the metadata, total byte length, and SHA-384 digest of the complete DER certificate chain for a provisioned (role, algorithm) slot in the common certificate store. chain_digest is computed over the concatenated DER certificates from Root CA to leaf.

Fails if role or algorithm is invalid, or if the requested (role, algorithm) chain is not provisioned.

Command Code: 0x4D47_4349 ("MGCI")

Table: MC_GET_CERT_CHAIN_INFO input arguments

NameTypeDescription
chksumu32Checksum over input data.
roleu32Endorsement role (0x0000 = Vendor, 0x0001 = Owner, 0x0002 = Tenant).
algorithmu32Asymmetric algorithm (0x0001 = ECC P-384, 0x0002 = ML-DSA-87).

Table: MC_GET_CERT_CHAIN_INFO output arguments

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.
device_key_idu32Caliptra identity key certified by the endorsement (0 = Vendor IDevID, 1 = LDevID, 2 = FMC Alias, 3 = RT Alias).
chain_lenu32Total length in bytes of the complete DER certificate chain.
chain_digestu8[48]SHA-384 digest over the complete raw DER certificate chain.

MC_GET_CERT_CHAIN

Retrieves a contiguous byte slice of the complete raw DER certificate chain (PKI endorsement + Caliptra device certificates below the anchor point + DPE leaf) for a provisioned (role, algorithm) slot. Callers typically query MC_GET_CERT_CHAIN_INFO first to obtain chain_len and chain_digest, then read the chain in chunks up to MAX_RESP_DATA_SIZE (4096 bytes) per request.

If role or algorithm is invalid, size exceeds MAX_RESP_DATA_SIZE, the chain is not provisioned, or a concurrent endorsement update invalidates the chain mid-pagination, the command fails.

Command Code: 0x4D47_4343 ("MGCC")

Table: MC_GET_CERT_CHAIN input arguments

NameTypeDescription
chksumu32Checksum over input data.
roleu32Endorsement role (0x0000 = Vendor, 0x0001 = Owner, 0x0002 = Tenant).
algorithmu32Asymmetric algorithm (0x0001 = ECC P-384, 0x0002 = ML-DSA-87).
offsetu32Byte offset into the complete DER certificate chain (0 starts a fresh read).
sizeu32Maximum number of bytes to return (up to 4096).

Table: MC_GET_CERT_CHAIN output arguments

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.
data_lenu32Number of DER certificate-chain bytes returned.
cert_datau8[data_len]Requested slice of the complete raw DER certificate chain.

MC_SET_CERT_CHAIN

Provisions, replaces, or erases the PKI endorsement chain for a managed (role, algorithm) slot (Vendor when configured as a managed slot, Owner, or Tenant). Writes to a read-only Vendor slot (role = 0) are rejected. When auth_required is enabled on the targeted slot, the operation must first be pre-authorized via MC_AUTH_SET_CERT_CHAIN (0x4D41_5343 / "MASC" under MC_AUTHORIZED_COMMAND), which arms the expected (role, algorithm, total_size, expected_sha384) and verifies the staged DER SHA-384 digest at commit time; see Auth Set Cert Chain.

cert_data contains the concatenated DER endorsement certificates starting from the Root CA.

  • Erase (total_size == 0): Requires offset == 0 and data_len == 0. Durably erases the managed endorsement for (role, algorithm).
  • Single-chunk write (offset == 0 and data_len == total_size > 0): Validates and atomically commits the endorsement into the staging_region in one transaction.
  • Multi-chunk streamed write (total_size > data_len):
    • offset == 0 begins a staged write in the staging_region for total_size bytes and writes the first chunk (data_len > 0).
    • Intermediate chunks (0 < offset and offset + data_len < total_size) append sequential chunks (data_len > 0).
    • The final chunk (offset + data_len == total_size) finishes the stream, verifies the expected_sha384 claimed at admission (if a grant was present), computes the root certificate hash, atomically switches the active_region, and increments the slot's generation counter.

Restart and ordering:

  • While a write, erase, or finalization is executing, another mutation or re-arm on the same slot returns STORAGE_BUSY. Between messages, a valid MC_AUTH_SET_CERT_CHAIN can abandon an idle MCI or SPDM stream and arm its replacement.
  • An MCI request at offset == 0 can restart an idle stream owned by the MCI responder, but cannot displace another responder's stream without re-arming. If authorization is required, the restart needs a fresh grant; the abandoned stream's claimed grant is not reused.
  • Continuations must match the resolved key ID, total size, and exact next offset. Mismatches are rejected without destroying the current stream.
  • Callers must use a single ordered requester per (role, algorithm) and finish or retire all outstanding old requests before restarting. The command has no transfer ID: a delayed old chunk with identical key, size, and expected offset cannot be distinguished from a chunk of the replacement transfer.

For a managed Vendor slot (role = 0), device_key_id must be 0 (IDevID). When an Owner or Tenant role has a configured key anchor point (such as Owner pinned to LDevID), device_key_id = 0 resolves to that anchor point and any nonzero value must match it; when the role has no fixed anchor point (such as Tenant in the default policy), a nonzero device_key_id for a supported anchor point is required.

Command Code: 0x4D53_4343 ("MSCC")

Table: MC_SET_CERT_CHAIN input arguments

NameTypeDescription
chksumu32Checksum over input data.
roleu32Endorsement role (0x0000 = Vendor when configured as managed, 0x0001 = Owner, 0x0002 = Tenant).
algorithmu32Asymmetric algorithm (0x0001 = ECC P-384, 0x0002 = ML-DSA-87).
device_key_idu32Caliptra identity key (0 = Vendor IDevID or role's configured anchor point, 1 = LDevID, 2 = FMC Alias, 3 = RT Alias).
offsetu32Byte offset of this chunk within the endorsement chain (0 for single-chunk write, stream start, or erase).
total_sizeu32Total byte length of the DER endorsement chain, or 0 to erase the managed endorsement.
data_lenu32Number of endorsement bytes in cert_data for this request (up to 4096; 0 when total_size == 0).
cert_datau8[data_len]Raw DER endorsement bytes for this chunk.

Table: MC_SET_CERT_CHAIN output arguments

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.

MC_PROVISION_IDEV_CERT

Populates a DER-encoded IDevID certificate into Caliptra Core (POPULATE_IDEV_ECC384_CERT / POPULATE_IDEV_MLDSA87_CERT) and optionally persists and locks it in OTP.

Command Code: 0x4D50_4943 ("MPIC")

Payload semantics, operation modes, and state rules are defined by Provision IDevID Certificate.

Table: MC_PROVISION_IDEV_CERT input arguments

NameTypeDescription
chksumu32Checksum over input data.
algorithmu32Asymmetric algorithm (0x0001 = ECC P-384, 0x0002 = ML-DSA-87).
operationu32Provisioning mode (0x0000 = PopulateOnly, 0x0001 = WriteOtp).
cert_sizeu32Length in bytes of the DER-encoded IDevID certificate (1..=8192).
cert_datau8[cert_size]Raw DER-encoded IDevID certificate (zero-padded in the fixed request structure up to 8192 bytes).

Table: MC_PROVISION_IDEV_CERT output arguments

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.

MC_GET_LOG

Retrieves the debug log for the MCU Runtime.

Command Code: 0x4D47_4C47 ("MGLG")

Payload semantics and debug log format are defined by Get Debug Log.

MCI mailbox request payload contains only the mailbox checksum header. The command always retrieves the MCU Runtime debug log.

MCI mailbox response payload:

NameTypeDescription
chksumu32Response checksum.
fips_statusu32FIPS approved or an error.
data_lenu32Length in bytes of more_data plus log_data.
more_datau321 if more log data remains, 0 otherwise.
log_datau8[data_len-4]Debug log contents.

MC_CLEAR_LOG

Clears the debug log in the MCU Runtime.

Command Code: 0x4D43_4C47 ("MCLG")

Payload semantics are defined by Clear Debug Log.

MC_FIPS_PERIODIC_ENABLE

Enables or disables periodic FIPS self-test. When enabled, the MCU runs FIPS self-tests in the background at a configurable interval (default: 60 seconds).

The periodic FIPS commands in this section are available only when MCU Runtime enables the periodic-fips-self-test feature. Builds without that feature report both commands as unsupported.

Command Code: 0x4D46_5045 ("MFPE")

Table: MC_FIPS_PERIODIC_ENABLE input arguments

NameTypeDescription
chksumu32Checksum over input data
enableu320 = disable, 1 = enable periodic test

Table: MC_FIPS_PERIODIC_ENABLE output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error.

MC_FIPS_PERIODIC_STATUS

Retrieves the status of the periodic FIPS self-test, including whether it is enabled, the number of completed iterations, and the result of the last test.

Command Code: 0x4D46_5053 ("MFPS")

Table: MC_FIPS_PERIODIC_STATUS input arguments

NameTypeDescription
chksumu32Checksum over input data

Table: MC_FIPS_PERIODIC_STATUS output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error.
enabledu320 = disabled, 1 = enabled
iterationsu32Number of completed periodic test iterations
last_resultu32Last test result: 0 = not run yet, 1 = pass, 2 = fail

MC_ECDSA384_SIG_VERIFY

Command Code: 0x4D45_4356 ("MECV")

Payload format and verification behavior are defined by Caliptra Core ECDSA384_SIGNATURE_VERIFY. MCU Runtime translates the MCI command code to the Caliptra Core command code and forwards the request and response payloads unchanged apart from recalculating their transport checksums.

Successful verification returns fips_status 0x5553_5244 (USRD) because the digest is caller-supplied. An invalid signature completes the MCI mailbox transaction with failure and no response payload.

MC_LMS_SIG_VERIFY

Command Code: 0x4D4C_4D56 ("MLMV")

Payload format, supported LMS parameters, and verification behavior are defined by Caliptra Core LMS_SIGNATURE_VERIFY.

Successful verification returns fips_status 0x5553_5244 (USRD) because the digest is caller-supplied.

MC_PROD_DEBUG_UNLOCK_REQ

Requests debug unlock in production environment.

Command Code: 0x4D50_5552 ("MPUR")

Payload semantics are defined by Request Debug Unlock.

MC_PROD_DEBUG_UNLOCK_TOKEN

Sends the debug unlock token.

Command Code: 0x4D50_5554 ("MPUT")

Payload semantics are defined by Authorize Debug Unlock Token.

MC_GET_AUTH_CMD_CHALLENGE

Authorized target ID: 0x4D41_4343 ("MACC")

Payload semantics are defined by Get Auth Challenge. The MCI request contains no fields after the target ID. The response inserts a zero reserved:u32 between the mailbox response header and the common 48-byte challenge payload.

MC_FUSE_INCREASE_MIN_SVN

Increases the selected minimum SVN.

Authorized target ID: 0x4D43_4D53 ("MCMS")

Payload semantics and target assignments are defined by Fuse Increase Min SVN.

MC_FE_PROG

Programs field entropy for the selected fuse partition.

Authorized target ID: 0x4D43_4650 ("MCFP")

Payload semantics are defined by Program Field Entropy.

MC_FE_STATUS

Reports the field entropy partition status from Caliptra Core's live FW_INFO.fe_status. This command does not require authorization. A partition's Error state is returned in the status word; a failed Core query fails the command.

Command Code: 0x4D43_4653 ("MCFS")

The request contains only the mailbox checksum header. The response contains the standard mailbox response header followed by:

Byte(s)NameTypeDescription
0:3fe_statusu32Partition i occupies bits [2*i+1:2*i]: 0 Unprovisioned, 1 Provisioned, 2 Zeroized, 3 Error. Bits 31:8 are reserved (0).

MC_VENDOR_PK_HASH_STATUS

Reports occupied vendor public-key hash slots and their PQC key types without requiring authorization. Revoked slots remain occupied because OTP storage cannot be reused.

Command Code: 0x4D56_5053 ("MVPS")

The request contains only the mailbox checksum header. The response contains the standard mailbox response header followed by:

Byte(s)NameTypeDescription
0:3used_slots_bitmapu32Bits 0 through 15 indicate occupied vendor PK hash slots.
4:19key_typesu8[16]Per-slot PQC key type: 0 = unused, 1 = LMS, 3 = ML-DSA.

The identifiers in this section are MCU Runtime AuthorizedCommand target IDs, not top-level Runtime mailbox command-register values. Runtime requests use:

MBOX_CMD = 0x00000012
SRAM = checksum || target_id(LE) || operation_payload
       || nonce[48] || ecc_pub_x[48] || ecc_pub_y[48]
       || mldsa_pub[2592] || HybridSignature

The request tables below describe operation_payload; the common checksum, target ID, and authorization trailer are shown once above.

MCU ROM has a separate boot-time direct fuse API for IFPR, IFPW, and IFPK. ROM places that identifier directly in the mailbox command register and uses checksum || operation_payload without the Runtime target field or authorization trailer.

MC_FUSE_READ

Reads fuse values.

Runtime target ID / ROM direct command code: 0x4946_5052 ("IFPR")

Table: MC_FUSE_READ operation payload

NameTypeDescription
partitionu32Partition number to read from
entryu32Entry to read

Table: MC_FUSE_READ output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error
data_lenu32Runtime: bytes in length and data
length (bits)u32Number of bits that are valid
datau8[...]Fuse data (ceil(length/8) bytes)

MC_FUSE_WRITE

Write fuse values.

Runtime target ID / ROM direct command code: 0x4946_5057 ("IFPW")

Table: MC_FUSE_WRITE operation payload

NameTypeDescription
word_addru32Entry to write (word offset)
datau32Word to write
masku32Bit-Mask to only write specified bits

Table: MC_FUSE_WRITE output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error

Caveats:

  • This command is idempotent, so that identical writes will have no effect.
  • Will fail if any of the existing data is 1 but is set to 0 in the input data.
  • Bits cleared in mask are ignored
  • Writes to buffered partitions will not take effect until the next reset.

MC_FUSE_LOCK_PARTITION

Lock a partition.

Runtime target ID / ROM direct command code: 0x4946_504B ("IFPK")

Table: MC_FUSE_LOCK_PARTITION operation payload

NameTypeDescription
partitionu32Partition number to lock

Table: MC_FUSE_LOCK_PARTITION output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error

Caveats:

  • This command is idempotent, so that locking a partition twice has no effect.
  • Locking a partition causes subsequent writes to it to fail.
  • Locking does not fully take effect until the next reset.

MC_PROVISION_VENDOR_PK_HASH

Provision a new vendor PK hash.

Runtime authorized target ID: 0x5056_504b ("PVPK")

Table: MC_PROVISION_VENDOR_PK_HASH operation payload

NameTypeDescription
slotu32The vendor PK hash slot to use
hash[u8; 48]New vendor PK hash

Table: MC_PROVISION_VENDOR_PK_HASH output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error

Caveats:

  • Fails if the slot already contains data

MC_PROVISION_OWNER_PK_HASH

Provision CPTRA_SS_OWNER_PK_HASH using its 48-byte dword-reversed OTP representation.

Runtime authorized target ID: 0x504F_504B ("POPK")

Table: MC_PROVISION_OWNER_PK_HASH operation payload

NameTypeDescription
hash[u8; 48]New owner public-key hash

Table: MC_PROVISION_OWNER_PK_HASH output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error

Caveats:

  • The all-zero hash is rejected.
  • Reprovisioning the identical hash is idempotent.
  • Provisioning a different hash after any owner-hash data has been burned is rejected.
  • After verifying the hash, the command burns and verifies bit 0 of CPTRA_SS_OWNER_PK_HASH_VALID for use as a commit marker by ROM versions that enforce it.
  • Current MCU ROM does not check CPTRA_SS_OWNER_PK_HASH_VALID before consuming the hash. Provisioning must not be interrupted by reset or power loss; an interruption can cause ROM to consume a partial hash and prevent retrying the intended hash.
  • The newly provisioned owner hash is consumed by MCU ROM on the next reset.

MC_FUSE_REVOKE_VENDOR_PUB_KEY

Revoke one vendor firmware verification key within a vendor PK hash slot.

Runtime authorized target ID: 0x4D52_564B ("MRVK")

Table: MC_FUSE_REVOKE_VENDOR_PUB_KEY operation payload

NameTypeDescription
reservedu32Reserved; must be zero
vendor_pk_hash_slotu32Vendor PK hash slot containing the key to revoke
key_typeu320 = ECDSA P-384, 1 = LMS, 2 = MLDSA-87
key_indexu32Key index within the selected key type's revocation field

Table: MC_FUSE_REVOKE_VENDOR_PUB_KEY output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error

Caveats:

  • This command must be authorized.
  • The selected PK hash slot must be provisioned and valid.
  • The command fails if it targets the key used to boot the currently running firmware.
  • The last key index for a key type cannot be revoked.

MC_FUSE_REVOKE_VENDOR_PK_HASH

Revoke a vendor PK hash. Marks a vendor PK hash as invalid, revoking all of the associated keys.

Runtime authorized target ID: 0x5256_4b48 ("RVKH")

Table: MC_FUSE_REVOKE_VENDOR_PK_HASH operation payload

NameTypeDescription
reservedu32Reserved; must be zero
vendor_pk_hash_slotu32Vendor PK hash slot to revoke

Table: MC_FUSE_REVOKE_VENDOR_PK_HASH output arguments

NameTypeDescription
chksumu32
fips_statusu32FIPS approved or an error

Caveats:

  • This command must be authorized.
  • This command is idempotent, so that revoking a slot twice has no effect.
  • Trying to revoke an empty slot will result in an error
  • Trying to revoke the PK hash slot used to boot the currently running firmware will result in an error

Cryptographic Command Format

The MCI mailbox cryptographic commands are mapped to their corresponding Caliptra Mailbox Cryptographic commands. The mapping is detailed in the table below. For the specific format of each command, refer to the Mailbox Commands: Cryptographic Mailbox (2.0).

Table: mapping MCI commands to Caliptra Core commands

MCI Mailbox CommandCaliptra Core Mailbox Command
MC_FIPS_SELF_TEST_STARTSELF_TEST_START
MC_FIPS_SELF_TEST_GET_RESULTSSELF_TEST_GET_RESULTS
MC_SHA_INITCM_SHA_INIT
MC_SHA_UPDATECM_SHA_UPDATE
MC_SHA_FINALCM_SHA_FINAL
MC_HMACCM_HMAC
MC_HMAC_KDF_COUNTERCM_HMAC_KDF_COUNTER
MC_HKDF_EXTRACTCM_HKDF_EXTRACT
MC_HKDF_EXPANDCM_HKDF_EXPAND
MC_AES_ENCRYPT_INITCM_AES_ENCRYPT_INIT
MC_AES_ENCRYPT_UPDATECM_AES_ENCRYPT_UPDATE
MC_AES_DECRYPT_INITCM_AES_DECRYPT_INIT
MC_AES_DECRYPT_UPDATECM_AES_DECRYPT_UPDATE
MC_AES_GCM_ENCRYPT_INITCM_AES_GCM_ENCRYPT_INIT
MC_AES_GCM_ENCRYPT_UPDATECM_AES_GCM_ENCRYPT_UPDATE
MC_AES_GCM_ENCRYPT_FINALCM_AES_GCM_ENCRYPT_FINAL
MC_AES_GCM_DECRYPT_INITCM_AES_GCM_DECRYPT_INIT
MC_AES_GCM_DECRYPT_UPDATECM_AES_GCM_DECRYPT_UPDATE
MC_AES_GCM_DECRYPT_FINALCM_AES_GCM_DECRYPT_FINAL
MC_ECDH_GENERATECM_ECDH_GENERATE
MC_ECDH_FINISHCM_ECDH_FINISH
MC_ECDSA_CMK_PUBLIC_KEYCM_ECDSA_PUBLIC_KEY
MC_ECDSA_CMK_SIGNCM_ECDSA_SIGN
MC_ECDSA_CMK_VERIFYCM_ECDSA_VERIFY
MC_ECDSA384_SIG_VERIFYECDSA384_SIGNATURE_VERIFY
MC_LMS_SIG_VERIFYLMS_SIGNATURE_VERIFY
MC_MLDSA_CMK_PUBLIC_KEYCM_MLDSA_PUBLIC_KEY
MC_MLDSA_CMK_SIGNCM_MLDSA_SIGN
MC_MLDSA_CMK_VERIFYCM_MLDSA_VERIFY
MC_RANDOM_STIRCM_RANDOM_STIR
MC_RANDOM_GENERATECM_RANDOM_GENERATE
MC_IMPORTCM_IMPORT
MC_DELETECM_DELETE
MC_CM_STATUSCM_STATUS