summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-12-06 04:14:30 +0000
committerUlf Möller <ulf@openssl.org>2000-12-06 04:14:30 +0000
commitaecb0b018fcf4906ff43174622a42b5f672d889b (patch)
tree71897aef063c7267d4cccb6aad414a4fc89dd3e4
parente4d56bab5bee1f18b9bf462794e49c47bc192321 (diff)
downloadopenssl-new-aecb0b018fcf4906ff43174622a42b5f672d889b.tar.gz
test_mod_mul is useful, let's run it more often.
-rw-r--r--crypto/bn/bntest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c
index 91563dd222..12d68fc526 100644
--- a/crypto/bn/bntest.c
+++ b/crypto/bn/bntest.c
@@ -703,7 +703,7 @@ int test_mod(BIO *bp, BN_CTX *ctx)
int test_mod_mul(BIO *bp, BN_CTX *ctx)
{
BIGNUM *a,*b,*c,*d,*e;
- int i;
+ int i,j;
a=BN_new();
b=BN_new();
@@ -711,6 +711,7 @@ int test_mod_mul(BIO *bp, BN_CTX *ctx)
d=BN_new();
e=BN_new();
+ for (j=0; j<3; j++) {
BN_bntest_rand(c,1024,0,0); /**/
for (i=0; i<num0; i++)
{
@@ -761,6 +762,7 @@ int test_mod_mul(BIO *bp, BN_CTX *ctx)
return 0;
}
}
+ }
BN_free(a);
BN_free(b);
BN_free(c);