Lines Matching refs:bio_err
138 if (bio_err == NULL) in MAIN()
139 if ((bio_err=BIO_new(BIO_s_file())) != NULL) in MAIN()
140 BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT); in MAIN()
142 if (!load_config(bio_err, NULL)) in MAIN()
162 BIO_printf(bio_err,"%s is an unknown cipher\n",pname); in MAIN()
241 BIO_printf(bio_err,"unable to read key from '%s'\n", in MAIN()
248 BIO_printf(bio_err,"unable to read key from '%s'\n", in MAIN()
262 BIO_printf(bio_err,"zero length password\n"); in MAIN()
298 BIO_printf(bio_err,"unknown option '%s'\n",*argv); in MAIN()
300 BIO_printf(bio_err,"options are\n"); in MAIN()
301 BIO_printf(bio_err,"%-14s input file\n","-in <file>"); in MAIN()
302 BIO_printf(bio_err,"%-14s output file\n","-out <file>"); in MAIN()
303 BIO_printf(bio_err,"%-14s pass phrase source\n","-pass <arg>"); in MAIN()
304 BIO_printf(bio_err,"%-14s encrypt\n","-e"); in MAIN()
305 BIO_printf(bio_err,"%-14s decrypt\n","-d"); in MAIN()
306 BIO_printf(bio_err,"%-14s base64 encode/decode, depending on encryption flag\n","-a/-base64"); in MAIN()
307 BIO_printf(bio_err,"%-14s passphrase is the next argument\n","-k"); in MAIN()
308 BIO_printf(bio_err,"%-14s passphrase is the first line of the file argument\n","-kfile"); in MAIN()
309 BIO_printf(bio_err,"%-14s the next argument is the md to use to create a key\n","-md"); in MAIN()
310 BIO_printf(bio_err,"%-14s from a passphrase. One of md2, md5, sha or sha1\n",""); in MAIN()
311 BIO_printf(bio_err,"%-14s salt in hex is the next argument\n","-S"); in MAIN()
312 BIO_printf(bio_err,"%-14s key/iv in hex is the next argument\n","-K/-iv"); in MAIN()
313 BIO_printf(bio_err,"%-14s print the iv/key (then exit if -P)\n","-[pP]"); in MAIN()
314 BIO_printf(bio_err,"%-14s buffer size\n","-bufsize <n>"); in MAIN()
315 BIO_printf(bio_err,"%-14s disable standard block padding\n","-nopad"); in MAIN()
317 BIO_printf(bio_err,"%-14s use engine e, possibly a hardware device.\n","-engine e"); in MAIN()
320 BIO_printf(bio_err,"Cipher Types\n"); in MAIN()
323 bio_err); in MAIN()
324 BIO_printf(bio_err,"\n"); in MAIN()
333 setup_engine(bio_err, engine, 0); in MAIN()
338 BIO_printf(bio_err, "AEAD ciphers not supported by the enc utility\n"); in MAIN()
344 BIO_printf(bio_err, "Ciphers in XTS mode are not supported by the enc utility\n"); in MAIN()
350 BIO_printf(bio_err,"%s is an unsupported message digest type\n",md); in MAIN()
377 BIO_printf(bio_err,"invalid 'bufsize' specified.\n"); in MAIN()
385 if (verbose) BIO_printf(bio_err,"bufsize=%d\n",bsize); in MAIN()
392 BIO_printf(bio_err,"OPENSSL_malloc failure %ld\n",(long)EVP_ENCODE_LENGTH(bsize)); in MAIN()
400 ERR_print_errors(bio_err); in MAIN()
407 BIO_set_callback_arg(in,(char *)bio_err); in MAIN()
408 BIO_set_callback_arg(out,(char *)bio_err); in MAIN()
429 if(!app_passwd(bio_err, passarg, NULL, &pass, NULL)) { in MAIN()
430 BIO_printf(bio_err, "Error getting password\n"); in MAIN()
459 BIO_printf(bio_err,"bad password read\n"); in MAIN()
512 BIO_set_callback_arg(b64,(char *)bio_err); in MAIN()
539 BIO_printf(bio_err, in MAIN()
552 BIO_printf(bio_err,"error writing output file\n"); in MAIN()
559 BIO_printf(bio_err,"error reading input file\n"); in MAIN()
562 BIO_printf(bio_err,"bad magic number\n"); in MAIN()
583 BIO_printf(bio_err,"invalid hex iv value\n"); in MAIN()
592 BIO_printf(bio_err, "iv undefined\n"); in MAIN()
597 BIO_printf(bio_err,"invalid hex key value\n"); in MAIN()
616 BIO_printf(bio_err, "Error setting cipher %s\n", in MAIN()
618 ERR_print_errors(bio_err); in MAIN()
627 BIO_printf(bio_err, "Error setting cipher %s\n", in MAIN()
629 ERR_print_errors(bio_err); in MAIN()
636 BIO_set_callback_arg(benc,(char *)bio_err); in MAIN()
680 BIO_printf(bio_err,"error writing output file\n"); in MAIN()
686 BIO_printf(bio_err,"bad decrypt\n"); in MAIN()
693 BIO_printf(bio_err,"bytes read :%8ld\n",BIO_number_read(in)); in MAIN()
694 BIO_printf(bio_err,"bytes written:%8ld\n",BIO_number_written(out)); in MAIN()
697 ERR_print_errors(bio_err); in MAIN()
720 BIO_printf(bio_err,"hex string is too long\n"); in set_hex()
737 BIO_printf(bio_err,"non-hex digit\n"); in set_hex()