aboutsummaryrefslogtreecommitdiff
path: root/eim/sw/trng_extractor_eim.c
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-21 15:08:16 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-21 15:08:16 +0200
commit7bc543a279dca902bbbefedb66e5f639b82de635 (patch)
treee3690d7f305acbcb7b9c29862864a9de7c821eca /eim/sw/trng_extractor_eim.c
parent449822cb1921a98e33890b37c8e2e0fe3fb60f63 (diff)
(1) Changed to using symbolic defines for core name and version. (2) Minor cleanup of defines in header file.
Diffstat (limited to 'eim/sw/trng_extractor_eim.c')
-rw-r--r--eim/sw/trng_extractor_eim.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/eim/sw/trng_extractor_eim.c b/eim/sw/trng_extractor_eim.c
index 36e653e..330c153 100644
--- a/eim/sw/trng_extractor_eim.c
+++ b/eim/sw/trng_extractor_eim.c
@@ -59,9 +59,9 @@ int debug = 0; /* for dump() */
// Check availability of avalanche entropy core by reading core name and version.
uint32_t avalanche_check(void)
{
- uint8_t name0[4] = "extn";
- uint8_t name1[4] = "oise";
- uint8_t version[4] = "0.10";
+ uint8_t name0[4] = AVALANCHE_ENTROPY_NAME0;
+ uint8_t name1[4] = AVALANCHE_ENTROPY_NAME1;
+ uint8_t version[4] = AVALANCHE_ENTROPY_VERSION;
printf("Reading name and version words from avalanche_entropy core.\n");
@@ -75,9 +75,9 @@ uint32_t avalanche_check(void)
// check availability of rosc core by reading the core name and version.
uint32_t rosc_check(void)
{
- uint8_t name0[4] = "rosc";
- uint8_t name1[4] = " ent";
- uint8_t version[4] = "0.10";
+ uint8_t name0[4] = ROSC_ENTROPY_NAME0;
+ uint8_t name1[4] = ROSC_ENTROPY_NAME1;
+ uint8_t version[4] = ROSC_ENTROPY_VERSION;
printf("Reading name and version words from rosc_entropy core.\n");