aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-07-14 00:20:03 -0400
committerRob Austein <sra@hactrn.net>2015-07-14 00:20:03 -0400
commit0915302b7ffa0757be1859d73f14037f338c0253 (patch)
tree80f047113c5a290c13be95758ab58a0dd0f1ab1e /tests
parent0ababd7dc7ab6a080971e669598a862ad23d2fa1 (diff)
Changes to support Pavel's ModExpS6 core.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-rsa.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/test-rsa.c b/tests/test-rsa.c
index 0fd2002..4b4d7b3 100644
--- a/tests/test-rsa.c
+++ b/tests/test-rsa.c
@@ -271,9 +271,15 @@ static int test_rsa(const rsa_tc_t * const tc)
/* RSA decyrption using CRT */
time_check(test_decrypt("Signature (CRT)", tc));
+#if 1
+#warning Key generation tests disabled
+#else
+
/* Key generation and CRT -- not test vector, so writes key and sig to file */
time_check(test_gen("Generation and CRT", tc));
+#endif
+
return ok;
}
@@ -287,8 +293,8 @@ int main(int argc, char *argv[])
* Initialize EIM and report what core we're running.
*/
- if ((err = hal_io_read(MODEXP_ADDR_NAME0, name, sizeof(name))) != HAL_OK ||
- (err = hal_io_read(MODEXP_ADDR_VERSION, version, sizeof(version))) != HAL_OK) {
+ if ((err = hal_io_read(MODEXPS6_ADDR_NAME0, name, sizeof(name))) != HAL_OK ||
+ (err = hal_io_read(MODEXPS6_ADDR_VERSION, version, sizeof(version))) != HAL_OK) {
printf("Initialization failed: %s\n", hal_error_string(err));
return 1;
}
@@ -301,6 +307,11 @@ int main(int argc, char *argv[])
hal_modexp_set_debug(1);
+#if 1
+#warning RSA blinding disabled
+ hal_rsa_set_blinding(0);
+#endif
+
/* Normal test */
for (i = 0; i < (sizeof(rsa_tc)/sizeof(*rsa_tc)); i++)