Adding dkek_decode_key for unwrapping.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-03-29 20:18:08 +02:00
parent 0141e0ab4e
commit 1c272842a7
2 changed files with 187 additions and 3 deletions

View File

@@ -62,6 +62,9 @@ extern const uint8_t sc_hsm_aid[];
#define HSM_EXEC_ERROR -1006
#define HSM_WRONG_LENGTH -1007
#define HSM_WRONG_DATA -1008
#define HSM_WRONG_DKEK -1009
#define HSM_WRONG_SIGNATURE -1010
#define HSM_WRONG_PADDING -1011
#define ALGO_RSA_RAW 0x20 /* RSA signature with external padding */
#define ALGO_RSA_DECRYPT 0x21 /* RSA decrypt */