Lines Matching refs:stdout
105 fflush(stdout); \
127 fprintf(stdout, "Timings for %d-bit field, ", EC_GROUP_get_degree(group));
129 fprintf(stdout, "%d-bit scalars ", (int)BN_num_bits(s));
130 fflush(stdout);
158 fprintf(stdout, "\n");
174 fprintf(stdout, "%i %s in %.2f " UNIT "\n", i*j,
177 fprintf(stdout, "%i %s in %.2f " UNIT "\n", i*j,
180 fprintf(stdout, "%i %s in %.2f " UNIT "\n", i*j,
183 fprintf(stdout, "average: %.4f " UNIT "\n", (double)clck/(CLOCKS_PER_SEC*i*j));
204 fprintf(stdout, "verify group order ..."); in group_order_tests()
205 fflush(stdout); in group_order_tests()
209 fprintf(stdout, "."); in group_order_tests()
210 fflush(stdout); in group_order_tests()
214 fprintf(stdout, " ok\n"); in group_order_tests()
215 fprintf(stdout, "long/negative scalar tests ... "); in group_order_tests()
229 fprintf(stdout, "ok\n"); in group_order_tests()
281 fprintf(stdout, "Curve defined by Weierstrass equation\n y^2 = x^3 + a*x + b (mod 0x"); in prime_field_tests()
282 BN_print_fp(stdout, p); in prime_field_tests()
283 fprintf(stdout, ")\n a = 0x"); in prime_field_tests()
284 BN_print_fp(stdout, a); in prime_field_tests()
285 fprintf(stdout, "\n b = 0x"); in prime_field_tests()
286 BN_print_fp(stdout, b); in prime_field_tests()
287 fprintf(stdout, "\n"); in prime_field_tests()
321 fprintf(stdout, "A cyclic subgroup:\n"); in prime_field_tests()
328 fprintf(stdout, " point at infinity\n"); in prime_field_tests()
333 fprintf(stdout, " x = 0x"); in prime_field_tests()
334 BN_print_fp(stdout, x); in prime_field_tests()
335 fprintf(stdout, ", y = 0x"); in prime_field_tests()
336 BN_print_fp(stdout, y); in prime_field_tests()
337 fprintf(stdout, "\n"); in prime_field_tests()
364 fprintf(stdout, "Generator as octet string, compressed form:\n "); in prime_field_tests()
365 for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); in prime_field_tests()
371 fprintf(stdout, "\nGenerator as octet string, uncompressed form:\n "); in prime_field_tests()
372 for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); in prime_field_tests()
378 fprintf(stdout, "\nGenerator as octet string, hybrid form:\n "); in prime_field_tests()
379 for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); in prime_field_tests()
382 …fprintf(stdout, "\nA representation of the inverse of that generator in\nJacobian projective coord… in prime_field_tests()
383 BN_print_fp(stdout, x); in prime_field_tests()
384 fprintf(stdout, ", Y = 0x"); in prime_field_tests()
385 BN_print_fp(stdout, y); in prime_field_tests()
386 fprintf(stdout, ", Z = 0x"); in prime_field_tests()
387 BN_print_fp(stdout, z); in prime_field_tests()
388 fprintf(stdout, "\n"); in prime_field_tests()
411 fprintf(stdout, "\nSEC2 curve secp160r1 -- Generator:\n x = 0x"); in prime_field_tests()
412 BN_print_fp(stdout, x); in prime_field_tests()
413 fprintf(stdout, "\n y = 0x"); in prime_field_tests()
414 BN_print_fp(stdout, y); in prime_field_tests()
415 fprintf(stdout, "\n"); in prime_field_tests()
420 fprintf(stdout, "verify degree ..."); in prime_field_tests()
422 fprintf(stdout, " ok\n"); in prime_field_tests()
445 fprintf(stdout, "\nNIST curve P-192 -- Generator:\n x = 0x"); in prime_field_tests()
446 BN_print_fp(stdout, x); in prime_field_tests()
447 fprintf(stdout, "\n y = 0x"); in prime_field_tests()
448 BN_print_fp(stdout, y); in prime_field_tests()
449 fprintf(stdout, "\n"); in prime_field_tests()
454 fprintf(stdout, "verify degree ..."); in prime_field_tests()
456 fprintf(stdout, " ok\n"); in prime_field_tests()
479 fprintf(stdout, "\nNIST curve P-224 -- Generator:\n x = 0x"); in prime_field_tests()
480 BN_print_fp(stdout, x); in prime_field_tests()
481 fprintf(stdout, "\n y = 0x"); in prime_field_tests()
482 BN_print_fp(stdout, y); in prime_field_tests()
483 fprintf(stdout, "\n"); in prime_field_tests()
488 fprintf(stdout, "verify degree ..."); in prime_field_tests()
490 fprintf(stdout, " ok\n"); in prime_field_tests()
514 fprintf(stdout, "\nNIST curve P-256 -- Generator:\n x = 0x"); in prime_field_tests()
515 BN_print_fp(stdout, x); in prime_field_tests()
516 fprintf(stdout, "\n y = 0x"); in prime_field_tests()
517 BN_print_fp(stdout, y); in prime_field_tests()
518 fprintf(stdout, "\n"); in prime_field_tests()
523 fprintf(stdout, "verify degree ..."); in prime_field_tests()
525 fprintf(stdout, " ok\n"); in prime_field_tests()
553 fprintf(stdout, "\nNIST curve P-384 -- Generator:\n x = 0x"); in prime_field_tests()
554 BN_print_fp(stdout, x); in prime_field_tests()
555 fprintf(stdout, "\n y = 0x"); in prime_field_tests()
556 BN_print_fp(stdout, y); in prime_field_tests()
557 fprintf(stdout, "\n"); in prime_field_tests()
563 fprintf(stdout, "verify degree ..."); in prime_field_tests()
565 fprintf(stdout, " ok\n"); in prime_field_tests()
598 fprintf(stdout, "\nNIST curve P-521 -- Generator:\n x = 0x"); in prime_field_tests()
599 BN_print_fp(stdout, x); in prime_field_tests()
600 fprintf(stdout, "\n y = 0x"); in prime_field_tests()
601 BN_print_fp(stdout, y); in prime_field_tests()
602 fprintf(stdout, "\n"); in prime_field_tests()
609 fprintf(stdout, "verify degree ..."); in prime_field_tests()
611 fprintf(stdout, " ok\n"); in prime_field_tests()
649 fprintf(stdout, "combined multiplication ..."); in prime_field_tests()
650 fflush(stdout); in prime_field_tests()
658 fprintf(stdout, "."); in prime_field_tests()
659 fflush(stdout); in prime_field_tests()
670 fprintf(stdout, "."); in prime_field_tests()
671 fflush(stdout); in prime_field_tests()
687 fprintf(stdout, " ok\n\n"); in prime_field_tests()
743 fprintf(stdout, "\n%s -- Generator:\n x = 0x", _name); \
744 BN_print_fp(stdout, x); \
745 fprintf(stdout, "\n y = 0x"); \
746 BN_print_fp(stdout, y); \
747 fprintf(stdout, "\n"); \
760 fprintf(stdout, "\n%s -- Generator:\n x = 0x", _name); \
761 BN_print_fp(stdout, x); \
762 fprintf(stdout, "\n y = 0x"); \
763 BN_print_fp(stdout, y); \
764 fprintf(stdout, "\n");
773 fprintf(stdout, "verify degree ..."); \
775 fprintf(stdout, " ok\n"); \
825 …fprintf(stdout, "Curve defined by Weierstrass equation\n y^2 + x*y = x^3 + a*x^2 + b (mod 0x"… in char2_field_tests()
826 BN_print_fp(stdout, p); in char2_field_tests()
827 fprintf(stdout, ")\n a = 0x"); in char2_field_tests()
828 BN_print_fp(stdout, a); in char2_field_tests()
829 fprintf(stdout, "\n b = 0x"); in char2_field_tests()
830 BN_print_fp(stdout, b); in char2_field_tests()
831 fprintf(stdout, "\n(0x... means binary polynomial)\n"); in char2_field_tests()
875 fprintf(stdout, "A cyclic subgroup:\n"); in char2_field_tests()
882 fprintf(stdout, " point at infinity\n"); in char2_field_tests()
887 fprintf(stdout, " x = 0x"); in char2_field_tests()
888 BN_print_fp(stdout, x); in char2_field_tests()
889 fprintf(stdout, ", y = 0x"); in char2_field_tests()
890 BN_print_fp(stdout, y); in char2_field_tests()
891 fprintf(stdout, "\n"); in char2_field_tests()
908 fprintf(stdout, "Generator as octet string, compressed form:\n "); in char2_field_tests()
909 for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); in char2_field_tests()
916 fprintf(stdout, "\nGenerator as octet string, uncompressed form:\n "); in char2_field_tests()
917 for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); in char2_field_tests()
925 fprintf(stdout, "\nGenerator as octet string, hybrid form:\n "); in char2_field_tests()
926 for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); in char2_field_tests()
929 fprintf(stdout, "\n"); in char2_field_tests()
1122 fprintf(stdout, "combined multiplication ..."); in char2_field_tests()
1123 fflush(stdout); in char2_field_tests()
1131 fprintf(stdout, "."); in char2_field_tests()
1132 fflush(stdout); in char2_field_tests()
1143 fprintf(stdout, "."); in char2_field_tests()
1144 fflush(stdout); in char2_field_tests()
1156 fprintf(stdout, " ok\n\n"); in char2_field_tests()
1236 fprintf(stdout, "testing internal curves: "); in internal_curve_test()
1245 fprintf(stdout, "\nEC_GROUP_new_curve_name() failed with" in internal_curve_test()
1253 fprintf(stdout, "\nEC_GROUP_check() failed with" in internal_curve_test()
1259 fprintf(stdout, "."); in internal_curve_test()
1260 fflush(stdout); in internal_curve_test()
1264 fprintf(stdout, " ok\n\n"); in internal_curve_test()
1267 fprintf(stdout, " failed\n\n"); in internal_curve_test()
1340 fprintf(stdout, "\nNIST curve P-%d (optimised implementation):\n", test->degree); in nistp_single_test()
1368 fprintf(stdout, "verify degree ... "); in nistp_single_test()
1370 fprintf(stdout, "ok\n"); in nistp_single_test()
1372 fprintf(stdout, "NIST test vectors ... "); in nistp_single_test()
1414 fprintf(stdout, "ok\n"); in nistp_single_test()