Software APIs
sigverify_spx_test.c
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #include <stdbool.h>
6 
9 #include "sw/device/silicon_creator/lib/drivers/lifecycle.h"
10 #include "sw/device/silicon_creator/lib/drivers/otp.h"
11 #include "sw/device/silicon_creator/lib/manifest_def.h"
12 #include "sw/device/silicon_creator/lib/sigverify/spx_verify.h"
13 
14 #include "otp_ctrl_regs.h"
15 
16 OTTF_DEFINE_TEST_CONFIG();
17 
18 bool test_main(void) {
19  LOG_INFO("spx_en=0x%08x, spx_en_otp=0x%08x",
20  sigverify_spx_verify_enabled(lifecycle_state_get()),
21  otp_read32(OTP_CTRL_PARAM_CREATOR_SW_CFG_SIGVERIFY_SPX_EN_OFFSET));
22  return true;
23 }