[sw/silicon_creator] Use manifest values to advance keymgr state
Signed-off-by: Alphan Ulusoy <alphan@google.com>
diff --git a/sw/device/silicon_creator/mask_rom/mask_rom.c b/sw/device/silicon_creator/mask_rom/mask_rom.c
index a05bed7..2e7db89 100644
--- a/sw/device/silicon_creator/mask_rom/mask_rom.c
+++ b/sw/device/silicon_creator/mask_rom/mask_rom.c
@@ -131,12 +131,8 @@
// CreatorRootKey (2.c.iv)
// - This is only allowed to be done if we have verified the signature on
// the current ROM_EXT.
- // TODO(#5955): Switch to manifest in C struct format update this code to
- // use the sw binding and max key version fields from the manifest.
- keymgr_binding_value_t binding_value = {0};
- uint32_t max_key_version = 0x1;
- if (keymgr_state_advance_to_creator(&binding_value, max_key_version) !=
- kErrorOk) {
+ if (keymgr_state_advance_to_creator(
+ &manifest->binding_value, manifest->max_key_version) != kErrorOk) {
break;
}