summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ectest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ectest.c')
-rw-r--r--src/lib/libcrypto/ec/ectest.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ectest.c b/src/lib/libcrypto/ec/ectest.c
index 7509cb9c7c..6148d553f9 100644
--- a/src/lib/libcrypto/ec/ectest.c
+++ b/src/lib/libcrypto/ec/ectest.c
@@ -432,7 +432,9 @@ void prime_field_tests()
432 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 432 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
433 fprintf(stdout, "."); 433 fprintf(stdout, ".");
434 fflush(stdout); 434 fflush(stdout);
435#if 0
435 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; 436 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT;
437#endif
436 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; 438 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT;
437 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 439 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
438 fprintf(stdout, " ok\n"); 440 fprintf(stdout, " ok\n");
@@ -476,7 +478,9 @@ void prime_field_tests()
476 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 478 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
477 fprintf(stdout, "."); 479 fprintf(stdout, ".");
478 fflush(stdout); 480 fflush(stdout);
481#if 0
479 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; 482 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT;
483#endif
480 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; 484 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT;
481 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 485 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
482 fprintf(stdout, " ok\n"); 486 fprintf(stdout, " ok\n");
@@ -521,7 +525,9 @@ void prime_field_tests()
521 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 525 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
522 fprintf(stdout, "."); 526 fprintf(stdout, ".");
523 fflush(stdout); 527 fflush(stdout);
528#if 0
524 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; 529 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT;
530#endif
525 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; 531 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT;
526 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 532 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
527 fprintf(stdout, " ok\n"); 533 fprintf(stdout, " ok\n");
@@ -571,7 +577,9 @@ void prime_field_tests()
571 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 577 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
572 fprintf(stdout, "."); 578 fprintf(stdout, ".");
573 fflush(stdout); 579 fflush(stdout);
580#if 0
574 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; 581 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT;
582#endif
575 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; 583 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT;
576 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 584 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
577 fprintf(stdout, " ok\n"); 585 fprintf(stdout, " ok\n");
@@ -627,7 +635,9 @@ void prime_field_tests()
627 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 635 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
628 fprintf(stdout, "."); 636 fprintf(stdout, ".");
629 fflush(stdout); 637 fflush(stdout);
638#if 0
630 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; 639 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT;
640#endif
631 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; 641 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT;
632 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; 642 if (!EC_POINT_is_at_infinity(group, Q)) ABORT;
633 fprintf(stdout, " ok\n"); 643 fprintf(stdout, " ok\n");
@@ -799,7 +809,7 @@ void prime_field_tests()
799 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; \ 809 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; \
800 fprintf(stdout, "."); \ 810 fprintf(stdout, "."); \
801 fflush(stdout); \ 811 fflush(stdout); \
802 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; \ 812 /* if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; */ \
803 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; \ 813 if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; \
804 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; \ 814 if (!EC_POINT_is_at_infinity(group, Q)) ABORT; \
805 fprintf(stdout, " ok\n"); \ 815 fprintf(stdout, " ok\n"); \
@@ -1326,7 +1336,7 @@ int main(int argc, char *argv[])
1326#endif 1336#endif
1327 CRYPTO_cleanup_all_ex_data(); 1337 CRYPTO_cleanup_all_ex_data();
1328 ERR_free_strings(); 1338 ERR_free_strings();
1329 ERR_remove_thread_state(NULL); 1339 ERR_remove_state(0);
1330 CRYPTO_mem_leaks_fp(stderr); 1340 CRYPTO_mem_leaks_fp(stderr);
1331 1341
1332 return 0; 1342 return 0;