From 2a770ee7c9ee11666c1aa2ea581038f0f1f80edd Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 21 Feb 2022 16:24:32 +0100 Subject: [PATCH] DKEKS are also initialized. Signed-off-by: Pol Henarejos --- sc_hsm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sc_hsm.c b/sc_hsm.c index d569ed4..10a4c44 100644 --- a/sc_hsm.c +++ b/sc_hsm.c @@ -334,6 +334,7 @@ static int cmd_challenge() { static int cmd_initialize() { initialize_flash(); scan_flash(); + dkeks = 0; const uint8_t *p = apdu.cmd_apdu_data; while (p-apdu.cmd_apdu_data < apdu.cmd_apdu_data_len) { uint8_t tag = *p++;