From 37c3028b1c9826bcd6593fcd61defc8c7fb1ebc1 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 16 Mar 2022 12:02:09 +0100 Subject: [PATCH] Adding code for AES derive Signed-off-by: Pol Henarejos --- src/hsm/sc_hsm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hsm/sc_hsm.h b/src/hsm/sc_hsm.h index ca77f22..619acac 100644 --- a/src/hsm/sc_hsm.h +++ b/src/hsm/sc_hsm.h @@ -60,11 +60,12 @@ extern const uint8_t sc_hsm_aid[]; #define ALGO_EC_SHA256 0x73 /* ECDSA signature with SHA-256 hash */ #define ALGO_EC_DH 0x80 /* ECDH key derivation */ -#define ALGO_EC_DERIVE 0x98 /* Derive EC key from EC key */ +#define ALGO_EC_DERIVE 0x98 /* Derive EC key from EC key */ #define ALGO_AES_CBC_ENCRYPT 0x10 #define ALGO_AES_CBC_DECRYPT 0x11 -#define ALGO_AES_CMAC 0x18 +#define ALGO_AES_CMAC 0x18 +#define ALGO_AES_DERIVE 0x99 extern int pin_reset_retries(const file_t *pin, bool); extern int pin_wrong_retry(const file_t *pin);