Lines Matching refs:BIO_printf
239 BIO_printf(bio_err,"unknown option %s\n",*argv);
250 BIO_printf(bio_err, "%s [options] <infile >outfile\n",prog);
251 BIO_printf(bio_err, "where options are\n");
252 BIO_printf(bio_err, " -inform arg input format - "
254 BIO_printf(bio_err, " -outform arg output format - "
256 BIO_printf(bio_err, " -in arg input file - "
258 BIO_printf(bio_err, " -out arg output file - "
260 BIO_printf(bio_err, " -noout do not print the "
262 BIO_printf(bio_err, " -text print the ec "
264 BIO_printf(bio_err, " -check validate the ec "
266 BIO_printf(bio_err, " -C print a 'C' "
268 BIO_printf(bio_err, " -name arg use the "
270 BIO_printf(bio_err, " -list_curves prints a list of "
272 BIO_printf(bio_err, " -conv_form arg specifies the "
274 BIO_printf(bio_err, " possible values:"
276 BIO_printf(bio_err, " "
278 BIO_printf(bio_err, " "
280 BIO_printf(bio_err, " -param_enc arg specifies the way"
282 BIO_printf(bio_err, " in the asn1 der "
284 BIO_printf(bio_err, " possible values:"
286 BIO_printf(bio_err, " "
288 BIO_printf(bio_err, " -no_seed if 'explicit'"
291 BIO_printf(bio_err, " -genkey generate ec"
293 BIO_printf(bio_err, " -rand file files to use for"
295 BIO_printf(bio_err, " -engine e use engine e, "
374 BIO_printf(out, " %-10s: ", sname);
375 BIO_printf(out, "%s\n", comment);
393 BIO_printf(bio_err, "using curve name prime192v1 "
399 BIO_printf(bio_err, "using curve name prime256v1 "
408 BIO_printf(bio_err, "unknown curve name (%s)\n",
416 BIO_printf(bio_err, "unable to create curve (%s)\n",
433 BIO_printf(bio_err, "bad input format specified\n");
439 BIO_printf(bio_err,
465 BIO_printf(bio_err, "no elliptic curve parameters\n");
466 BIO_printf(bio_err, "checking elliptic curve parameters: ");
469 BIO_printf(bio_err, "failed\n");
473 BIO_printf(bio_err, "ok\n");
554 BIO_printf(out, "\n\n");
556 BIO_printf(out, "EC_GROUP *get_ec_group_%d(void)\n\t{\n", len);
557 BIO_printf(out, "\tint ok=0;\n");
558 BIO_printf(out, "\tEC_GROUP *group = NULL;\n");
559 BIO_printf(out, "\tEC_POINT *point = NULL;\n");
560 BIO_printf(out, "\tBIGNUM *tmp_1 = NULL, *tmp_2 = NULL, "
562 BIO_printf(out, "\tif ((tmp_1 = BN_bin2bn(ec_p_%d, "
565 BIO_printf(out, "\tif ((tmp_2 = BN_bin2bn(ec_a_%d, "
568 BIO_printf(out, "\tif ((tmp_3 = BN_bin2bn(ec_b_%d, "
573 BIO_printf(out, "\tif ((group = EC_GROUP_new_curve_"
582 BIO_printf
583 BIO_printf(out, "\tif ((tmp_1 = BN_bin2bn(ec_gen_%d, "
586 BIO_printf(out, "\tpoint = EC_POINT_bn2point(group, tmp_1, "
588 BIO_printf(out, "\tif (point == NULL)\n\t\tgoto err;\n");
589 BIO_printf(out, "\tif ((tmp_2 = BN_bin2bn(ec_order_%d, "
592 BIO_printf(out, "\tif ((tmp_3 = BN_bin2bn(ec_cofactor_%d, "
595 BIO_printf(out, "\tif (!EC_GROUP_set_generator(group, point,"
597 BIO_printf(out, "\n\tok=1;\n");
598 BIO_printf(out, "err:\n");
599 BIO_printf(out, "\tif (tmp_1)\n\t\tBN_free(tmp_1);\n");
600 BIO_printf(out, "\tif (tmp_2)\n\t\tBN_free(tmp_2);\n");
601 BIO_printf(out, "\tif (tmp_3)\n\t\tBN_free(tmp_3);\n");
602 BIO_printf(out, "\tif (point)\n\t\tEC_POINT_free(point);\n");
603 BIO_printf(out, "\tif (!ok)\n");
604 BIO_printf(out, "\t\t{\n");
605 BIO_printf(out, "\t\tEC_GROUP_free(group);\n");
606 BIO_printf(out, "\t\tgroup = NULL;\n");
607 BIO_printf(out, "\t\t}\n");
608 BIO_printf(out, "\treturn(group);\n\t}\n");
619 BIO_printf(bio_err,"bad output format specified for"
625 BIO_printf(bio_err, "unable to write elliptic "
636 BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
664 BIO_printf(bio_err, "bad output format specified "
704 BIO_printf(out, "static unsigned char %s_%d[] = {", var, len);
706 BIO_printf(out, "\n\t0x00");
715 BIO_printf(out, "\n\t");
716 BIO_printf(out, "0x%02X,", buffer[i]);
719 BIO_printf(out, "\n\t");
720 BIO_printf(out, "0x%02X", buffer[i]);
722 BIO_printf(out, "\n\t};\n\n");