6 #include "sw/device/lib/base/status.h"
7 #include "sw/device/lib/crypto/drivers/entropy.h"
8 #include "sw/device/lib/testing/test_framework/check.h"
10 #include "sw/device/lib/testing/test_framework/ujson_ottf.h"
11 #include "sw/device/lib/ujson/ujson.h"
14 #include "sw/device/tests/penetrationtests/json/commands.h"
15 #include "sw/device/tests/penetrationtests/json/otbn_fi_commands.h"
18 #include "fi/otbn_fi.h"
20 OTTF_DEFINE_TEST_CONFIG(.enable_uart_flow_control =
true);
24 penetrationtest_cmd_t cmd;
25 TRY(ujson_deserialize_penetrationtest_cmd_t(uj, &cmd));
27 case kPenetrationtestCommandOtbnFi:
28 RESP_ERR(uj, handle_otbn_fi(uj));
31 LOG_ERROR(
"Unrecognized command: %d", cmd);
32 RESP_ERR(uj, INVALID_ARGUMENT());
40 CHECK_STATUS_OK(entropy_complex_init());
41 ujson_t uj = ujson_ottf_console();
42 return status_ok(process_cmd(&uj));