[Cryptech-Commits] [core/novena] 01/04: fix status bits as values, not positions
git at cryptech.is
git at cryptech.is
Thu Nov 20 00:11:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository core/novena.
commit 9a6299ea9c3bda1d908e5435d2ea332849b4a4f5
Author: Paul Selkirk <paul at psgd.org>
Date: Thu Nov 13 10:25:45 2014 -0500
fix status bits as values, not positions
---
src/sw/hash_tester.c | 4 ++--
src/sw/hash_tester.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/sw/hash_tester.c b/src/sw/hash_tester.c
index f202a03..04f6c6d 100644
--- a/src/sw/hash_tester.c
+++ b/src/sw/hash_tester.c
@@ -82,8 +82,8 @@
#define CTRL_INIT_CMD 1
#define CTRL_NEXT_CMD 2
#define ADDR_STATUS 0x09
-#define STATUS_READY_BIT 0
-#define STATUS_VALID_BIT 1
+#define STATUS_READY_BIT 1
+#define STATUS_VALID_BIT 2
/* addresses and codes for the specific hash cores */
#define SHA1_ADDR_PREFIX 0x10
diff --git a/src/sw/hash_tester.py b/src/sw/hash_tester.py
index 6a5ff0b..a1b838b 100755
--- a/src/sw/hash_tester.py
+++ b/src/sw/hash_tester.py
@@ -66,8 +66,8 @@ ADDR_CTRL = 0x08
CTRL_INIT_CMD = 1
CTRL_NEXT_CMD = 2
ADDR_STATUS = 0x09
-STATUS_READY_BIT = 0
-STATUS_VALID_BIT = 1
+STATUS_READY_BIT = 1
+STATUS_VALID_BIT = 2
#----------------------------------------------------------------
# NIST sample message blocks and expected digests
More information about the Commits
mailing list