[Cryptech-Commits] [core/platform/novena] 01/01: Debugged the new testrunner on the Novena. Now all test cases works as expected.

git at cryptech.is git at cryptech.is
Mon May 25 11:50:55 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 705e513e20b42a577534588534359aac6f1291e4
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Mon May 25 13:50:46 2015 +0200

    Debugged the new testrunner on the Novena. Now all test cases works as expected.
---
 sw/modexp_tester.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sw/modexp_tester.c b/sw/modexp_tester.c
index 023bc67..26249d1 100644
--- a/sw/modexp_tester.c
+++ b/sw/modexp_tester.c
@@ -301,10 +301,11 @@ uint8_t testrunner(uint32_t exp_len, uint32_t *exponent,
 
   correct = 1;
 
+  tc_w32(MODEXP_RESULT_PTR_RST, 0x00000000);
   for (i = 0 ; i < mod_len ; i++) {
     result = tc_r32(MODEXP_RESULT_DATA);
     if (result != expected[i]) {
-      printf("TC1: Error. Expected 0x00000009, got 0x%08x\n", result);
+      printf("TC1: Error. Expected 0x%08x, got 0x%08x\n", expected[i], result);
       correct = 0;
     }
   }



More information about the Commits mailing list