From 401965f1e9f74b43c88477d2ff6ac4d6c62ab5a8 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 28 Apr 2020 12:11:49 -0400 Subject: The new keywrap core now talks directly to the MKM, so I split the code that talks to that core out of aes_keywrap.c. The HSM will now be built with just the keywrap core, with no user access to aes or mkmif. --- verilog_constants.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'verilog_constants.h') diff --git a/verilog_constants.h b/verilog_constants.h index 9ed84d4..4588c20 100644 --- a/verilog_constants.h +++ b/verilog_constants.h @@ -344,12 +344,17 @@ #define MKMIF_ADDR_EMEM_DATA (0x20) /* - * AES Keywrap core + * AES Keywrap core, with Master Key Memory Interface */ +#define KEYWRAP_CTRL_READ (4) +#define KEYWRAP_CTRL_WRITE (8) + #define KEYWRAP_ADDR_CONFIG (0x0a) #define KEYWRAP_CONFIG_ENCDEC (1) #define KEYWRAP_CONFIG_KEYLEN (2) +#define KEYWRAP_CONFIG_MKS (4) +#define KEYWRAP_CONFIG_MKK (8) #define KEYWRAP_ADDR_RLEN (0x0c) #define KEYWRAP_ADDR_A0 (0x0e) @@ -364,6 +369,8 @@ #define KEYWRAP_ADDR_KEY6 (0x16) #define KEYWRAP_ADDR_KEY7 (0x17) +#define KEYWRAP_ADDR_MSTATUS (0x20) + #define KEYWRAP_ADDR_R_DATA (0x800) #define KEYWRAP_LEN_R_DATA (0x800) -- cgit v1.2.3