[Cryptech-Commits] [sw/stm32] 01/03: Use bulk erase in the one place it makes sense.

git at cryptech.is git at cryptech.is
Wed Feb 22 23:15:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch ksng
in repository sw/stm32.

commit 9335ada0d5d8a2754457fc705bb04a1e8cb6e470
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue Feb 21 09:25:21 2017 -0500

    Use bulk erase in the one place it makes sense.
---
 projects/hsm/mgmt-keystore.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/projects/hsm/mgmt-keystore.c b/projects/hsm/mgmt-keystore.c
index d04099b..81965c0 100644
--- a/projects/hsm/mgmt-keystore.c
+++ b/projects/hsm/mgmt-keystore.c
@@ -274,8 +274,8 @@ static int cmd_keystore_erase(struct cli_def *cli, const char *command, char *ar
 	return CLI_ERROR;
     }
 
-    cli_print(cli, "OK, erasing keystore, this might take a while...");
-    if ((status = keystore_erase_sectors(0, KEYSTORE_NUM_SECTORS - 1)) != 1) {
+    cli_print(cli, "OK, erasing keystore, this will take about 45 seconds...");
+    if ((status = keystore_erase_bulk()) != 1) {
         cli_print(cli, "Failed erasing token keystore: %i", status);
 	return CLI_ERROR;
     }



More information about the Commits mailing list