aboutsummaryrefslogtreecommitdiff
path: root/sw/cryptech.h
diff options
context:
space:
mode:
Diffstat (limited to 'sw/cryptech.h')
-rw-r--r--sw/cryptech.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/cryptech.h b/sw/cryptech.h
index 186f804..05862bb 100644
--- a/sw/cryptech.h
+++ b/sw/cryptech.h
@@ -90,11 +90,11 @@ in order to map it into a 16-bit address space.
#define ADDR_NAME1 0x01
#define ADDR_VERSION 0x02
#define ADDR_CTRL 0x08
-#define CTRL_INIT_BIT 1
-#define CTRL_NEXT_BIT 2
+#define CTRL_INIT 1
+#define CTRL_NEXT 2
#define ADDR_STATUS 0x09
-#define STATUS_READY_BIT 1
-#define STATUS_VALID_BIT 2
+#define STATUS_READY 1
+#define STATUS_VALID 2
// a handy macro from cryptlib
@@ -136,8 +136,6 @@ in order to map it into a 16-bit address space.
// Hashes segment.
//------------------------------------------------------------------
// addresses common to all hash cores
-#define CTRL_INIT_CMD 1
-#define CTRL_NEXT_CMD 2
#define ADDR_BLOCK 0x10
#define ADDR_DIGEST 0x20 // except SHA512
@@ -294,8 +292,8 @@ in order to map it into a 16-bit address space.
#define AES_ADDR_STATUS AES_ADDR_BASE + ADDR_STATUS
#define AES_ADDR_CONFIG AES_ADDR_BASE + 0x0a
-#define AES_CONFIG_ENCDEC_BIT 1
-#define AES_CONFIG_KEYLEN_BIT 2
+#define AES_CONFIG_ENCDEC 1
+#define AES_CONFIG_KEYLEN 2
#define AES_ADDR_KEY0 0x10
#define AES_ADDR_KEY1 0x11