From 042f99af11085a1979ca5b2670b11672ad934654 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 29 Apr 2020 11:44:17 -0400 Subject: The new keywrap core now talks directly to the MKM, so there are some API changes. --- projects/hsm/mgmt-misc.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'projects/hsm/mgmt-misc.c') diff --git a/projects/hsm/mgmt-misc.c b/projects/hsm/mgmt-misc.c index e732484..377af73 100644 --- a/projects/hsm/mgmt-misc.c +++ b/projects/hsm/mgmt-misc.c @@ -230,40 +230,8 @@ static int cmd_rsa_modexpng(struct cli_def *cli, const char *command, char *argv return CLI_ERROR; } -static int cmd_keywrap_core(struct cli_def *cli, const char *command, char *argv[], int argc) -{ - int onoff; - - if (argc != 1) { - cli_print(cli, "Wrong number of arguments (%i).", argc); - cli_print(cli, "Syntax: %s ", command); - return CLI_ERROR; - } - - if (strcmp(argv[0], "on") == 0) - onoff = 1; - else if (strcmp(argv[0], "off") == 0) - onoff = 0; - else { - cli_print(cli, "Argument must be 'on' or 'off' - not '%s'", argv[0]); - return CLI_ERROR; - } - - hal_error_t err; - if ((err = hal_aes_use_keywrap_core(onoff)) == LIBHAL_OK) - return CLI_OK; - - cli_print(cli, hal_error_string(err)); - return CLI_ERROR; -} - void configure_cli_misc(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, "Set use of the keywrap core"); - #ifdef DO_PROFILING struct cli_command *c_profile = cli_register_command(cli, NULL, "profile", NULL, 0, 0, NULL); -- cgit v1.2.3