diff options
author | Paul Selkirk <paul@psgd.org> | 2015-05-05 16:15:10 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-05-05 16:15:10 -0400 |
commit | 05b139f4407890a8671bc3f40c48e4d54e3a83c5 (patch) | |
tree | 1d1e9ab6ed090baaf0b8bd71c33fd0b67aff0f23 /sw/cryptech.h | |
parent | 5311cc678dc82222146a384080d5f2bc95cb1eb6 (diff) |
Rename bitmask symbols.
Diffstat (limited to 'sw/cryptech.h')
-rw-r--r-- | sw/cryptech.h | 14 |
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 |