Lines Matching refs:BIO_printf

225             BIO_printf(bio_err, "unknown option %s\n", *argv);
235 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog);
236 BIO_printf(bio_err, "where options are\n");
237 BIO_printf(bio_err, " -inform arg input format - "
239 BIO_printf(bio_err, " -outform arg output format - "
241 BIO_printf(bio_err, " -in arg input file - "
243 BIO_printf(bio_err, " -out arg output file - "
245 BIO_printf(bio_err, " -noout do not print the "
247 BIO_printf(bio_err, " -text print the ec "
249 BIO_printf(bio_err, " -check validate the ec "
251 BIO_printf(bio_err, " -C print a 'C' "
253 BIO_printf(bio_err, " -name arg use the "
255 BIO_printf(bio_err, " -list_curves prints a list of "
257 BIO_printf(bio_err, " -conv_form arg specifies the "
259 BIO_printf(bio_err, " possible values:"
261 BIO_printf(bio_err, " "
263 BIO_printf(bio_err, " "
265 BIO_printf(bio_err, " -param_enc arg specifies the way"
267 BIO_printf(bio_err, " in the asn1 der "
269 BIO_printf(bio_err, " possible values:"
271 BIO_printf(bio_err, " "
273 BIO_printf(bio_err, " -no_seed if 'explicit'"
275 BIO_printf(bio_err, " -genkey generate ec" " key\n");
276 BIO_printf(bio_err, " -rand file files to use for"
278 BIO_printf(bio_err, " -engine e use engine e, "
344 BIO_printf(out, " %-10s: ", sname);
345 BIO_printf(out, "%s\n", comment);
362 BIO_printf(bio_err, "using curve name prime192v1 "
366 BIO_printf(bio_err, "using curve name prime256v1 "
376 BIO_printf(bio_err, "unknown curve name (%s)\n", curve_name);
382 BIO_printf(bio_err, "unable to create curve (%s)\n", curve_name);
392 BIO_printf(bio_err, "bad input format specified\n");
397 BIO_printf(bio_err, "unable to load elliptic curve parameters\n");
418 BIO_printf(bio_err, "checking elliptic curve parameters: ");
420 BIO_printf(bio_err, "failed\n");
424 BIO_printf(bio_err, "ok\n");
495 BIO_printf(out, "\n\n");
497 BIO_printf(out, "EC_GROUP *get_ec_group_%d(void)\n\t{\n", len);
498 BIO_printf(out, "\tint ok=0;\n");
499 BIO_printf(out, "\tEC_GROUP *group = NULL;\n");
500 BIO_printf(out, "\tEC_POINT *point = NULL;\n");
501 BIO_printf(out, "\tBIGNUM *tmp_1 = NULL, *tmp_2 = NULL, "
503 BIO_printf(out, "\tif ((tmp_1 = BN_bin2bn(ec_p_%d, "
506 BIO_printf(out, "\tif ((tmp_2 = BN_bin2bn(ec_a_%d, "
509 BIO_printf(out, "\tif ((tmp_3 = BN_bin2bn(ec_b_%d, "
513 BIO_printf(out, "\tif ((group = EC_GROUP_new_curve_"
520 BIO_printf(out, "\t/* build generator */\n");
521 BIO_printf(out, "\tif ((tmp_1 = BN_bin2bn(ec_gen_%d, "
524 BIO_printf(out, "\tpoint = EC_POINT_bn2point(group, tmp_1, "
526 BIO_printf(out, "\tif (point == NULL)\n\t\tgoto err;\n");
527 BIO_printf(out, "\tif ((tmp_2 = BN_bin2bn(ec_order_%d, "
530 BIO_printf(out, "\tif ((tmp_3 = BN_bin2bn(ec_cofactor_%d, "
533 BIO_printf(out, "\tif (!EC_GROUP_set_generator(group, point,"
535 BIO_printf(out, "\n\tok=1;\n");
536 BIO_printf(out, "err:\n");
537 BIO_printf(out, "\tif (tmp_1)\n\t\tBN_free(tmp_1);\n");
538 BIO_printf(out, "\tif (tmp_2)\n\t\tBN_free(tmp_2);\n");
539 BIO_printf(out, "\tif (tmp_3)\n\t\tBN_free(tmp_3);\n");
540 BIO_printf(out, "\tif (point)\n\t\tEC_POINT_free(point);\n");
541 BIO_printf(out, "\tif (!ok)\n");
542 BIO_printf(out, "\t\t{\n");
543 BIO_printf(out, "\t\tEC_GROUP_free(group);\n");
544 BIO_printf(out, "\t\tgroup = NULL;\n");
545 BIO_printf(out, "\t\t}\n");
546 BIO_printf(out, "\treturn(group);\n\t}\n");
558 BIO_printf(bio_err, "bad output format specified for"
563 BIO_printf(bio_err, "unable to write elliptic "
573 BIO_printf(bio_err, "%ld semi-random bytes loaded\n",
601 BIO_printf(bio_err, "bad output format specified "
642 BIO_printf(out, "static unsigned char %s_%d[] = {", var, len);
644 BIO_printf(out, "\n\t0x00");
651 BIO_printf(out, "\n\t");
652 BIO_printf(out, "0x%02X,", buffer[i]);
655 BIO_printf(out, "\n\t");
656 BIO_printf(out, "0x%02X", buffer[i]);
658 BIO_printf(out, "\n\t};\n\n");