aboutsummaryrefslogtreecommitdiff
path: root/eim/sw
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-21 15:03:30 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-21 15:03:30 +0200
commit449822cb1921a98e33890b37c8e2e0fe3fb60f63 (patch)
tree3a39b30df5e41750664fdc9e19f3a40d038e2ed9 /eim/sw
parente6f9e4ed4c69a04b4d7240b9ebc3a6966efc026b (diff)
Completed move of core name and version strings to common header.
Diffstat (limited to 'eim/sw')
-rw-r--r--eim/sw/hash_tester_eim.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/eim/sw/hash_tester_eim.c b/eim/sw/hash_tester_eim.c
index da61cf1..6692b14 100644
--- a/eim/sw/hash_tester_eim.c
+++ b/eim/sw/hash_tester_eim.c
@@ -271,9 +271,9 @@ int TC0()
/* TC1: Read name and version from SHA-1 core. */
int TC1(void)
{
- uint8_t name0[4] = "sha1";
- uint8_t name1[4] = " ";
- uint8_t version[4] = "0.50";
+ uint8_t name0[4] = SHA1_NAME0;
+ uint8_t name1[4] = SHA1_NAME1;
+ uint8_t version[4] = SHA1_VERSION;
if (!quiet)
printf("TC1: Reading name and version words from SHA-1 core.\n");
@@ -340,9 +340,9 @@ int TC3(void)
/* TC4: Read name and version from SHA-256 core. */
int TC4(void)
{
- uint8_t name0[4] = "sha2";
- uint8_t name1[4] = "-256";
- uint8_t version[4] = "0.80";
+ uint8_t name0[4] = SHA256_NAME0;
+ uint8_t name1[4] = SHA256_NAME1;
+ uint8_t version[4] = SHA256_VERSION;
if (!quiet)
printf("TC4: Reading name, type and version words from SHA-256 core.\n");
@@ -457,9 +457,9 @@ int TC7()
/* TC8: Read name and version from SHA-512 core. */
int TC8()
{
- uint8_t name0[4] = "sha2";
- uint8_t name1[4] = "-512";
- uint8_t version[4] = "0.80";
+ uint8_t name0[4] = SHA512_NAME0;
+ uint8_t name1[4] = SHA512_NAME1;
+ uint8_t version[4] = SHA512_VERSION;
if (!quiet)
printf("TC8: Reading name, type and version words from SHA-512 core.\n");