aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-03-10 23:49:06 +0000
committerBodo Möller <bodo@openssl.org>2001-03-10 23:49:06 +0000
commite44fcedadf77c9d4d44b636d69e7927de5b2df14 (patch)
tree6702ebae6180486407fa6a81c0b6cf4b7fba5819
parent6f8f4431705bb3f8f58f86f9b9f54daa0d42667d (diff)
downloadopenssl-e44fcedadf77c9d4d44b636d69e7927de5b2df14.tar.gz
Change timing output: We don't have "exponents" here, curves are
considered additive
-rw-r--r--crypto/ec/ectest.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c
index ac9eec8598..9955be5313 100644
--- a/crypto/ec/ectest.c
+++ b/crypto/ec/ectest.c
@@ -90,7 +90,7 @@ void timings(EC_GROUP *group, int simult, BN_CTX *ctx)
if (!EC_GROUP_get_curve_GFp(group, s, NULL, NULL, ctx)) ABORT;
fprintf(stdout, "Timings for %d bit prime, ", (int)BN_num_bits(s));
if (!EC_GROUP_get_order(group, s, ctx)) ABORT;
- fprintf(stdout, "%d bit exponents ", (int)BN_num_bits(s));
+ fprintf(stdout, "%d bit scalars ", (int)BN_num_bits(s));
fflush(stdout);
P = EC_POINT_new(group);
@@ -529,6 +529,14 @@ int main(int argc, char *argv[])
#if 0
timings(P_192, 0, ctx);
timings(P_192, 1, ctx);
+ timings(P_224, 0, ctx);
+ timings(P_224, 1, ctx);
+ timings(P_256, 0, ctx);
+ timings(P_256, 1, ctx);
+ timings(P_384, 0, ctx);
+ timings(P_384, 1, ctx);
+ timings(P_521, 0, ctx);
+ timings(P_521, 1, ctx);
#endif