aboutsummaryrefslogtreecommitdiff
path: root/verilog_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'verilog_constants.h')
-rw-r--r--verilog_constants.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/verilog_constants.h b/verilog_constants.h
index 8db5e29..80ff27d 100644
--- a/verilog_constants.h
+++ b/verilog_constants.h
@@ -102,6 +102,11 @@
#define SHA3_256_DIGEST_LEN bitsToBytes(256)
#define SHA3_384_DIGEST_LEN bitsToBytes(384)
#define SHA3_512_DIGEST_LEN bitsToBytes(512)
+#define SHA3_MODE_SHA3_224 (0 << 2)
+#define SHA3_MODE_SHA3_256 (1 << 2)
+#define SHA3_MODE_SHA3_384 (2 << 2)
+#define SHA3_MODE_SHA3_512 (3 << 2)
+#define SHA3_MODE_MASK (3 << 2)
/*
* RNG cores.