Skip to content

Commit

Permalink
[rom_ext] Initialize ownership in UDS
Browse files Browse the repository at this point in the history
Initialize ownership at the UDS stage so that the ownership seal is
bound to the hardware rather than any mutable code.

Signed-off-by: Chris Frantz <[email protected]>
  • Loading branch information
cfrantz committed Nov 22, 2024
1 parent dde03f8 commit eef6aeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sw/device/silicon_creator/rom_ext/rom_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,8 +1286,6 @@ static rom_error_t rom_ext_start(boot_data_t *boot_data, boot_log_t *boot_log) {
// Establish our identity.
HARDENED_RETURN_IF_ERROR(dice_chain_init());
HARDENED_RETURN_IF_ERROR(dice_chain_attestation_silicon());
HARDENED_RETURN_IF_ERROR(
dice_chain_attestation_creator(&boot_measurements.rom_ext, self));

// Initialize the boot_log in retention RAM.
const chip_info_t *rom_chip_info = (const chip_info_t *)_chip_info_start;
Expand All @@ -1312,6 +1310,9 @@ static rom_error_t rom_ext_start(boot_data_t *boot_data, boot_log_t *boot_log) {
dbg_printf("ownership_init: %x\r\n", error);
}

HARDENED_RETURN_IF_ERROR(
dice_chain_attestation_creator(&boot_measurements.rom_ext, self));

// Configure SRAM execution as the owner requested.
rom_ext_sram_exec(owner_config.sram_exec);

Expand Down

0 comments on commit eef6aeb

Please sign in to comment.