aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-07-10 11:41:29 +0000
committerBodo Möller <bodo@openssl.org>2001-07-10 11:41:29 +0000
commit9c10b2c8d314db4efe3be8d1439411563bb0a5c0 (patch)
tree36745da02d32ba4ecb0e41eb5fd9c62e14bb3bd9
parent56a106115fd97065613de1aac9e86f3f516dacc7 (diff)
downloadopenssl-9c10b2c8d314db4efe3be8d1439411563bb0a5c0.tar.gz
For consistency with the terminology used in my SAC2001 paper, avoid
the term "simultaneous multiplication" (which -- acording to the paper, at least -- applies only to certain methods which we don't use here)
-rw-r--r--crypto/ec/ectest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c
index bebfb24e42..c1f0b44c9b 100644
--- a/crypto/ec/ectest.c
+++ b/crypto/ec/ectest.c
@@ -76,7 +76,7 @@ int main(int argc, char * argv[]) { puts("Elliptic curves are disabled."); retur
} while (0)
-void timings(EC_GROUP *group, int simult, BN_CTX *ctx)
+void timings(EC_GROUP *group, int multi, BN_CTX *ctx)
{
clock_t clck;
int i, j;
@@ -101,13 +101,13 @@ void timings(EC_GROUP *group, int simult, BN_CTX *ctx)
for (i = 0; i < 10; i++)
{
if (!BN_pseudo_rand(s, BN_num_bits(s), 0, 0)) ABORT;
- if (simult)
+ if (multi)
{
if (!BN_pseudo_rand(s0, BN_num_bits(s), 0, 0)) ABORT;
}
for (j = 0; j < 10; j++)
{
- if (!EC_POINT_mul(group, P, s, simult ? P : NULL, simult ? s0 : NULL, ctx)) ABORT;
+ if (!EC_POINT_mul(group, P, s, multi ? P : NULL, multi ? s0 : NULL, ctx)) ABORT;
}
fprintf(stdout, ".");
fflush(stdout);
@@ -130,7 +130,7 @@ void timings(EC_GROUP *group, int simult, BN_CTX *ctx)
#endif
fprintf(stdout, "%i %s in %.2f " UNIT "\n", i*j,
- simult ? "s*P+t*Q operations" : "point multiplications",
+ multi ? "s*P+t*Q operations" : "point multiplications",
(double)clck/CLOCKS_PER_SEC);
fprintf(stdout, "average: %.4f " UNIT "\n", (double)clck/(CLOCKS_PER_SEC*i*j));
@@ -551,7 +551,7 @@ int main(int argc, char *argv[])
scalars[0] = y; /* (group order + 1)/2, so y*Q + y*Q = Q */
scalars[1] = y;
- fprintf(stdout, "simultaneous multiplication ...");
+ fprintf(stdout, "combined multiplication ...");
fflush(stdout);
/* z is still the group order */