Hardware Interfaces

Referring to the Comportable guideline for peripheral device functionality, the module keymgr_dpe has the following hardware interfaces defined

  • Primary Clock: clk_i
  • Other Clocks: clk_edn_i
  • Bus Device Interfaces (TL-UL): tl
  • Bus Host Interfaces (TL-UL): none
  • Peripheral Pins for Chip IO: none

Inter-Module Signals

Port NamePackage::StructTypeActWidthDescription
ednedn_pkg::ednreq_rspreq1Connection to the entropy distribution network, used to reseed the internal LFSR that provides the randomness for masking and decoy data.
aes_keykeymgr_dpe_pkg::hw_key_requnireq1Sideload key interface for the AES IP block to sideload a 256-bit key in two shares.
kmac_keykeymgr_dpe_pkg::hw_key_requnireq1Sideload key interface for the KMAC IP block to sideload a 256-bit key in two shares. If KMAC is used as KDF engine (KdfEngineSel is either KdfEngineKmac or KdfEngineBoth), the internal key replaces the sideload key on this interface during key derivation.
hmac_keykeymgr_dpe_pkg::wide_hw_key_requnireq1Sideload key interface for the HMAC IP block to sideload a 512-bit key in two shares.
otbn_keykeymgr_dpe_pkg::wide_hw_key_requnireq1Sideload key interface for the OTBN IP block to sideload a 512-bit key in two shares. If OTBN is used as KDF engine (KdfEngineSel is either KdfEngineOtbn or KdfEngineBoth), the internal key (zero-extended to 512 bits) replaces the sideload key on this interface during key derivation.
kmac_appkmac_pkg::appreq_rspreq1KDF interface to KMAC’s application interface. The request transfers the input message, the response returns the digest that becomes the derived key.
kmac_sensitive_keyprim_mubi_pkg::mubi4unireq1Signal to KMAC that the key applied to the sideload port (kmac_key_o) is sensitive. This restricts the usage of the key inside KMAC.
otbn_appkmac_pkg::appreq_rspreq1KDF interface to OTBN’s application interface. The request transfers the input message, the response returns the digest that becomes the derived key.
otbn_sensitive_keyprim_mubi_pkg::mubi4unireq1Signal to OTBN that the key applied to the sideload port (otbn_key_o) is sensitive. This enforces additional security countermeasures inside OTBN.
creator_root_keykeymgr_dpe_pkg::keymgr_dpe_creator_root_keyunircv1384-bit creator root key provided by OTP in two shares, each with its own valid bit. It is the root secret of the primary DICE hierarchy.
secondary_root_keykeymgr_dpe_pkg::keymgr_dpe_creator_root_keyunircv1Optional 384-bit secondary root key provided in two shares, each with its own valid bit. Its source depends on the integration (e.g., OTP). If left unconnected, both shares are marked invalid.
creator_seedkeymgr_dpe_pkg::keymgr_dpe_creator_seedunircv1Unique 256-bit seed provided by non-volatile storage (RRAM / Flash / OTP). Provisioned by the Silicon Creator.
owner_seedkeymgr_dpe_pkg::keymgr_dpe_owner_seedunircv1Unique 256-bit seed provided by non-volatile storage (RRAM / Flash / OTP). Provisioned by the Silicon Owner.
device_idkeymgr_dpe_pkg::keymgr_dpe_device_idunircv1256-bit non-secret device identifier provided by OTP.
field_entropykeymgr_dpe_pkg::keymgr_dpe_field_entropyunircv1256-bit secret with a valid bit, consumed when advancing from the CreatorInt boot stage (only if NumBootStages equals 4). If the secret is not marked as valid, the netlist constant RndCnstFieldEntropySeed is used instead.
lc_keymgr_enlc_ctrl_pkg::lc_txunircv1Enable signal for the keymgr_dpe, driven by the life cycle controller. When disabled, the internal key state is wiped and the keymgr_dpe becomes invalid.
lc_keymgr_divlc_ctrl_pkg::lc_keymgr_divunircv1128-bit diversification constant that depends on the current life cycle state, driven by the life cycle controller.
rom_digestrom_ctrl_pkg::keymgr_dataunircvNumRomDigestInputsNumRomDigestInputs 256-bit digests calculated over the ROM code provided by the rom_ctrl instance(s). The digests are concatenated into the KDF message.
kmac_en_maskinglogicunircv1KMAC masking enable (only used for assertion checks).
tltlul_pkg::tlreq_rsprsp1

Interrupts

Interrupt NameTypeDescription
op_doneEventOperation complete

Security Alerts

Alert NameDescription
recov_operation_errAlert for key manager operation errors. These errors could have been caused by software
fatal_fault_errAlert for key manager faults. These errors cannot be caused by software

Security Countermeasures

Countermeasure IDDescription
KEYMGR_DPE.BUS.INTEGRITYEnd-to-end bus integrity scheme.
KEYMGR_DPE.CONFIG.SHADOWVarious critical registers are shadowed: including operation CONTROL_SHADOWED, RESEED_INTERVAL_SHADOWED, KDF_ENGINE_SHADOWED and MAX_KEY_VER_SHADOWED.
KEYMGR_DPE.OP.CONFIG.REGWENVarious control registers are locked during the duration of an operation: START, CONTROL_SHADOWED, SIDELOAD_CLEAR, SALT and KEY_VERSION.
KEYMGR_DPE.RESEED.CONFIG.REGWENReseed interval is software lockable.
KEYMGR_DPE.KDF_ENGINE.CONFIG.REGWENKdf engine selection is software lockable.
KEYMGR_DPE.SW_BINDING.CONFIG.REGWENSoftware binding is lockable by software in each stage. When keymgr_dpe successfully advances, the lock is released to allow the next stage the freedom to program.
KEYMGR_DPE.MAX_KEY_VER.CONFIG.REGWENMax key version is software lockable.
KEYMGR_DPE.SLOT_POLICY.CONFIG.REGWENSlot policy is software lockable.
KEYMGR_DPE.LOAD_ROOT_KEY_LOCK.CTRL.LOCK_MUBIThe LOAD_ROOT_KEY_LOCK register is multibit encoded. If this register is set then the load root key operation is disabled until the next reset. The operation is rejected with ERR_CODE.INVALID_OP when invoked.
KEYMGR_DPE.LOAD_SECONDARY_ROOT_KEY_LOCK.CTRL.LOCK_MUBIThe LOAD_SECONDARY_ROOT_KEY_LOCK register is multibit encoded. If this register is set then the load secondary root key operation is disabled until the next reset. The operation is rejected with ERR_CODE.INVALID_OP when invoked.
KEYMGR_DPE.ENFORCE_SW_BINDING.CTRL.LOCK_MUBIOnce ENFORCE_SW_BINDING is set, hardware requires CONTROL_SHADOWED.SW_BINDING_ONLY to be set on every subsequent advance operation from a parent whose boot stage consumes HW binding values. Otherwise an invalid_op error is raised, the operation is rejected, and the destination slot is not updated. ENFORCE_SW_BINDING is multibit encoded.
KEYMGR_DPE.KDF_ENGINE.CTRL.MUBIKdf engine selection register is multibit encoded.
KEYMGR_DPE.METADATA.CONFIG.REGRENOnce METADATA_READ_LOCK is set, METADATA_LOW and METADATA_HIGH read as zero until the next reset. METADATA_READ_LOCK is multibit encoded.
KEYMGR_DPE.LC_CTRL.INTERSIG.MUBILife cycle control signal is multibit.
KEYMGR_DPE.CONSTANTS.CONSISTENCYBasic consistency checks (all 0’s or all 1’s) for keymgr_dpe diversification constants.
KEYMGR_DPE.INTERSIG.CONSISTENCYBasic consistency checks (all 0’s or all 1’s) for otp diversification inputs.
KEYMGR_DPE.HW.KEY.SW_NOACCESSSideload keys are not directly accessible by software.
KEYMGR_DPE.INTERNAL.KEY.SW_NOACCESSInternal keys are invisible to SW.
KEYMGR_DPE.OUTPUT_KEYS.CTRL.REDUNSoftware and sideload keys are redundantly controlled. Each generate operation creates a valid and a data enable (software and sideload specific). In order for a key to be populated into the software register, both the software valid and the software data enable must be asserted. The same is true for sideload. This makes it more difficult for an attack to fault a sideload key into the software key slot. An attacker would need to fault both the software valid and the software data enable. During a sideload operation, if an attacker manages to fault the valid but not the data enable, the software key is populated with random data. If an attacker manages to fault the data enable but not the valid, then the software key retains its previous value.
KEYMGR_DPE.CTRL.FSM.SPARSEMain control FSM is sparsely encoded.
KEYMGR_DPE.DATA.FSM.SPARSEControl data FSM (for redundant data control) is sparsely encoded.
KEYMGR_DPE.CTRL.FSM.LOCAL_ESCMain control FSM locally escalates based on any detected fault in keymgr_dpe. When a fault is detected (sync or async) the FSM transitions to invalid state to prevent further legal operations from executing.
KEYMGR_DPE.CTRL.FSM.CONSISTENCYMain and operational FSM transitions are consistent with software commands.
KEYMGR_DPE.CTRL.FSM.GLOBAL_ESCWhen the system globally escalates, the main control FSM also transitions to invalid state to prevent further legal operations from executing.
KEYMGR_DPE.CTRL.CTR.REDUNPrimary count is duplicated.
KEYMGR_DPE.KMAC_IF.FSM.SPARSEkmac interface FSM is sparsely encoded.
KEYMGR_DPE.KMAC_IF.CTR.REDUNPrimary count uses cross count.
KEYMGR_DPE.KMAC_IF_CMD.CTRL.CONSISTENCYOne hot check for kmac interface commands. Also, command enable (adv_en, id_en, gen_en) is checked for consistency throughout the operation.
KEYMGR_DPE.KMAC_IF_DONE.CTRL.CONSISTENCYSpurious kmac done check.
KEYMGR_DPE.RESEED.CTR.REDUNPrimary count is duplicated.
KEYMGR_DPE.SIDE_LOAD_SEL.CTRL.CONSISTENCYSideload key slot select is checked for consistency. When a key slot is valid when it should not be, an error is triggered. The reverse case is not checked, since an invalid key cannot be used anyways.
KEYMGR_DPE.SIDELOAD_CTRL.FSM.SPARSESideload control FSM is sparsely encoded.
KEYMGR_DPE.CTRL.KEY.INTEGRITYInternal secret key is protected with ECC.