Compute debug unlock tokens for the Caliptra WASM emulator. Manufacturing mode uses a shared secret token; production mode uses a cryptographic challenge-response.
Send a 32-byte token via the MANUF_DEBUG_UNLOCK_REQ_TOKEN (0x4D445554) mailbox command.
The ROM computes SHA-512 of the token and compares against the fuse value.
Used when running with default Fuses (non-subsystem mode).
Used with OTP provisioning (DEFAULT_MANUF_DEBUG_UNLOCK_RAW_TOKEN from hw-model).
Two-step challenge-response flow using ECC P-384 + ML-DSA-87 signatures. The public key hash must be programmed into OTP fuses for the desired unlock level.
Generate or import key pairs. The PK hash must match OTP fuses for the unlock level.
Program this 48-byte hash into OTP for the desired unlock level.
Send PRODUCTION_AUTH_DEBUG_UNLOCK_REQ (0x50445552) to get a challenge.
Paste the hex response from PRODUCTION_AUTH_DEBUG_UNLOCK_REQ command.
Signs SHA-384(uid || level || reserved || challenge) with ECC, and
SHA-512(uid || level || reserved || challenge) with MLDSA.
Assembles the complete PRODUCTION_AUTH_DEBUG_UNLOCK_TOKEN (0x50445554) mailbox command.