aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-05-25 13:50:46 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-05-25 13:50:46 +0200
commit705e513e20b42a577534588534359aac6f1291e4 (patch)
tree31baaec9dbd8ddc43a9a0720978c074c548c3608
parentffa12c3d3dc9d4d7b16d02562486b99bcbbace8e (diff)
Debugged the new testrunner on the Novena. Now all test cases works as expected.
-rw-r--r--sw/modexp_tester.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}