Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Adds personalization options to ecdh.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jbdatko committed Jun 30, 2015
1 parent d0f06d5 commit 6bf92dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/ecdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ parse_opt (int key, char *arg, struct argp_state *state)
case 'g':
arguments->gen_key = 1;
break;
case 'p':
arguments->personalize = 1;
break;
case 'f':
arguments->input_file = arg;
break;
Expand Down Expand Up @@ -154,6 +157,12 @@ main (int argc, char **argv)

lca_print_hex_string ("cz:", cz.ptr, cz.len);

if (arguments.personalize)
{
rc = personalize (fd, arguments.input_file);
exit (rc);
}

if (arguments.gen_key)
genkey(arguments.slot, fd);

Expand Down

0 comments on commit 6bf92dd

Please sign in to comment.