5 #include "sw/device/lib/base/status.h"
8 #include "sw/device/silicon_creator/lib/boot_log.h"
9 #include "sw/device/silicon_creator/lib/drivers/retention_sram.h"
11 #ifdef WITH_OWNERSHIP_INFO
12 #include "sw/device/silicon_creator/lib/drivers/flash_ctrl.h"
13 #include "sw/device/silicon_creator/lib/ownership/datatypes.h"
17 TRY(flash_ctrl_info_read(&kFlashCtrlInfoPageOwnerSlot0, 0,
18 sizeof(config) /
sizeof(uint32_t), &config));
23 LOG_INFO(
"owner_page0 min_security_version_bl0 = %08x",
30 status_t ownership_print(
void) {
return OK_STATUS(); }
45 return "CreatorRootKey";
47 return "OwnerIntermediateKey";
49 return "OwnerRootKey";
66 LOG_INFO(
"keymgr state = %s", keymgr_state(state));
70 LOG_INFO(
"keymgr bind_sealing = %08x%08x%08x%08x%08x%08x%08x%08x",
73 LOG_INFO(
"keymgr bind_attest = %08x%08x%08x%08x%08x%08x%08x%08x",
83 LOG_INFO(
"keymgr sw_key = %08x%08x%08x%08x%08x%08x%08x%08x",
84 out.value[0][0] ^ out.value[1][0], out.value[0][1] ^ out.value[1][1],
85 out.value[0][2] ^ out.value[1][2], out.value[0][3] ^ out.value[1][3],
86 out.value[0][4] ^ out.value[1][4], out.value[0][5] ^ out.value[1][5],
87 out.value[0][6] ^ out.value[1][6],
88 out.value[0][7] ^ out.value[1][7]);
93 status_t keymgr_print(
void) {
return OK_STATUS(); }
96 OTTF_DEFINE_TEST_CONFIG();
101 LOG_INFO(
"boot_log chip_version = %08x%08x",
109 LOG_INFO(
"boot_log rom_ext_nonce = %08x%08x",
117 TRY(ownership_print());
123 status_t sts = boot_log_print(&retention_sram_get()->creator.boot_log);
124 if (status_err(sts)) {
127 return status_ok(sts);