summaryrefslogtreecommitdiffstats
path: root/test/exptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/exptest.c')
-rw-r--r--test/exptest.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/exptest.c b/test/exptest.c
index 71ee031a43..234ad7b2b9 100644
--- a/test/exptest.c
+++ b/test/exptest.c
@@ -223,11 +223,12 @@ static int test_mod_exp_x2(int idx)
BIGNUM *m2 = NULL;
int factor_size = 0;
- /*
- * Currently only 1024-bit factor size is supported.
- */
if (idx <= 100)
factor_size = 1024;
+ else if (idx <= 200)
+ factor_size = 1536;
+ else if (idx <= 300)
+ factor_size = 2048;
if (!TEST_ptr(ctx = BN_CTX_new()))
goto err;
@@ -303,6 +304,6 @@ int setup_tests(void)
{
ADD_TEST(test_mod_exp_zero);
ADD_ALL_TESTS(test_mod_exp, 200);
- ADD_ALL_TESTS(test_mod_exp_x2, 100);
+ ADD_ALL_TESTS(test_mod_exp_x2, 300);
return 1;
}