[Cryptech-Commits] [core/platform/novena] 01/02: Completed move of core name and version strings to common header.
git at cryptech.is
git at cryptech.is
Tue Apr 21 13:08:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch master
in repository core/platform/novena.
commit 449822cb1921a98e33890b37c8e2e0fe3fb60f63
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Tue Apr 21 15:03:30 2015 +0200
Completed move of core name and version strings to common header.
---
eim/sw/hash_tester_eim.c | 18 +++++++++---------
1 file 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");
More information about the Commits
mailing list