aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cryptech_novena_i2c_coretest.c4
-rw-r--r--src/cryptech_novena_i2c_entropy.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cryptech_novena_i2c_coretest.c b/src/cryptech_novena_i2c_coretest.c
index 31b4345..bb543ad 100644
--- a/src/cryptech_novena_i2c_coretest.c
+++ b/src/cryptech_novena_i2c_coretest.c
@@ -106,8 +106,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.
diff --git a/src/cryptech_novena_i2c_entropy.c b/src/cryptech_novena_i2c_entropy.c
index 226ad1a..b2e6e22 100644
--- a/src/cryptech_novena_i2c_entropy.c
+++ b/src/cryptech_novena_i2c_entropy.c
@@ -106,8 +106,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
/*
* Address for reading 32 bits of entropy from the noise board.