aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/mgmt-keywrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'projects/cli-test/mgmt-keywrap.c')
-rw-r--r--projects/cli-test/mgmt-keywrap.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/projects/cli-test/mgmt-keywrap.c b/projects/cli-test/mgmt-keywrap.c
index 77e38c9..7d3e219 100644
--- a/projects/cli-test/mgmt-keywrap.c
+++ b/projects/cli-test/mgmt-keywrap.c
@@ -217,7 +217,7 @@ static int cmd_keywrap_test(struct cli_def *cli, const char *command, char *argv
cli_print(cli, "hal_aes_keyunwrap: %s", hal_error_string(err));
return CLI_ERROR;
}
- if (q_len != keysize) {
+ if (q_len != (size_t)keysize) {
cli_print(cli, "unwrap size mismatch: expected %d, got %d", (int)keysize, (int)q_len);
return CLI_ERROR;
}
@@ -307,33 +307,10 @@ static int cmd_keywrap_test(struct cli_def *cli, const char *command, char *argv
return CLI_OK;
}
-static int cmd_keywrap_core(struct cli_def *cli, const char *command, char *argv[], int argc)
-{
- command = command;
-
- if (argc == 1) {
- int onoff = -1;
- if (strcmp(argv[0], "on") == 0)
- onoff = 1;
- else if (strcmp(argv[0], "off") == 0)
- onoff = 0;
- if (onoff >= 0) {
- hal_aes_use_keywrap_core(onoff);
- return CLI_OK;
- }
- }
-
- cli_print(cli, "Syntax: keywrap core <on|off>");
- return CLI_ERROR;
-}
-
void configure_cli_keywrap(struct cli_def *cli)
{
struct cli_command *c_keywrap = cli_register_command(cli, NULL, "keywrap", NULL, 0, 0, NULL);
- /* keywrap core */
- cli_register_command(cli, c_keywrap, "core", cmd_keywrap_core, 0, 0, "Toggle use of the keywrap core");
-
/* keywrap test */
cli_register_command(cli, c_keywrap, "test", cmd_keywrap_test, 0, 0, "Test the keywrap core");
}