aboutsummaryrefslogtreecommitdiff
path: root/sw/hash_tester.c
diff options
context:
space:
mode:
Diffstat (limited to 'sw/hash_tester.c')
-rw-r--r--sw/hash_tester.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/hash_tester.c b/sw/hash_tester.c
index 3df62d3..7e4f2c8 100644
--- a/sw/hash_tester.c
+++ b/sw/hash_tester.c
@@ -460,7 +460,7 @@ int TC8()
int tc9(int mode, const uint8_t *expected, int digest_len)
{
const uint8_t *block = NIST_1024_SINGLE;
- uint8_t init[4] = { 0, 0, 0, CTRL_INIT_CMD + mode };
+ uint8_t init[4] = { 0, 0, 0, CTRL_INIT + mode };
return
/* Write block to SHA-512. */
@@ -502,8 +502,8 @@ int TC9()
int tc10(int mode, const uint8_t *expected, int digest_len)
{
const uint8_t *block[2] = { NIST_1024_DOUBLE0, NIST_1024_DOUBLE1 };
- uint8_t init[4] = { 0, 0, 0, CTRL_INIT_CMD + mode };
- uint8_t next[4] = { 0, 0, 0, CTRL_NEXT_CMD + mode };
+ uint8_t init[4] = { 0, 0, 0, CTRL_INIT + mode };
+ uint8_t next[4] = { 0, 0, 0, CTRL_NEXT + mode };
return
/* Write first block to SHA-512. */