Lines Matching defs:output
97 pgp_output_t *output; /* how to do the writing */
125 pgp_output_delete(sig->output);
126 sig->output = NULL;
229 pgp_output_t *output)
250 pgp_write(output, &hashbuf[0], 2);
262 pgp_write_mpi(output, r);
263 pgp_write_mpi(output, s);
272 pgp_output_t *output)
293 pgp_write(output, &hashbuf[0], 2);
310 pgp_write_mpi(output, r);
311 pgp_write_mpi(output, s);
669 pgp_writer_set_memory(sig->output, sig->mem);
672 pgp_write_scalar(sig->output, (unsigned)sig->sig.info.version, 1);
673 pgp_write_scalar(sig->output, (unsigned)sig->sig.info.type, 1);
674 pgp_write_scalar(sig->output, (unsigned)sig->sig.info.key_alg, 1);
675 pgp_write_scalar(sig->output, (unsigned)sig->sig.info.hash_alg, 1);
679 pgp_write_scalar(sig->output, 0, 2);
698 sig->output = pgp_output_new();
732 sig->output = pgp_output_new();
781 return pgp_write_scalar(sig->output, 0, 2);
797 pgp_write_sig(pgp_output_t *output,
862 /* and write it directly to the output instead of via memory. */
868 sig->output)) {
877 sig->output)) {
886 sig->output)) {
899 ret = pgp_write_ptag(output, PGP_PTAG_CT_SIGNATURE);
902 ret = pgp_write_length(output, (unsigned)len) &&
903 pgp_write(output, pgp_mem_data(sig->mem), (unsigned)len);
908 PGP_ERROR_1(&output->errors, PGP_E_W, "%s",
914 /* add a time stamp to the output */
923 return pgp_write_ss_header(sig->output, 5, tag) &&
924 pgp_write_scalar(sig->output, (uint32_t)when, (unsigned)sizeof(uint32_t));
940 return pgp_write_ss_header(sig->output, PGP_KEY_ID_SIZE + 1,
942 pgp_write(sig->output, keyid, PGP_KEY_ID_SIZE);
956 pgp_write_ss_header(sig->output, 2, PGP_PTAG_SS_PRIMARY_USER_ID);
957 pgp_write_scalar(sig->output, primary, 1);
974 /* open up an output file */
976 open_output_file(pgp_output_t **output,
984 /* setup output file */
987 fd = pgp_setup_file_write(output, NULL, overwrite);
989 fd = pgp_setup_file_write(output, outname, overwrite);
1000 fd = pgp_setup_file_write(output, f, overwrite);
1034 pgp_output_t *output;
1043 output = NULL;
1069 /* setup output file */
1070 fd_out = open_output_file(&output, inname, outname,
1081 pgp_teardown_file_write(output, fd_out);
1088 if (pgp_writer_push_clearsigned(output, sig) != 1) {
1093 pgp_write(output, pgp_mem_data(infile), (unsigned)pgp_mem_len(infile));
1099 ret = pgp_writer_use_armored_sig(output) &&
1103 pgp_teardown_file_write(output, fd_out);
1110 pgp_write_sig(output, sig, &seckey->pubkey, seckey);
1112 pgp_teardown_file_write(output, fd_out);
1115 PGP_ERROR_1(&output->errors, PGP_E_W, "%s",
1121 pgp_writer_push_armor_msg(output);
1125 pgp_write_one_pass_sig(output, seckey, hash_alg, sig_type);
1132 /* output file contents as Literal Data packet */
1133 pgp_write_litdata(output, pgp_mem_data(infile),
1153 pgp_write_sig(output, sig, &seckey->pubkey, seckey);
1156 pgp_teardown_file_write(output, fd_out);
1194 pgp_output_t *output;
1202 output = NULL;
1231 pgp_setup_memory_write(&output, &mem, insize);
1238 ret = pgp_writer_push_clearsigned(output, sig) &&
1239 pgp_write(output, input, (unsigned)insize) &&
1240 pgp_writer_use_armored_sig(output) &&
1246 pgp_output_delete(output);
1250 pgp_writer_push_armor_msg(output);
1256 pgp_write_one_pass_sig(output, seckey, hash_alg, sig_type);
1262 /* output file contents as Literal Data packet */
1266 pgp_write_litdata(output, input, (const int)insize, ld_type);
1280 pgp_write_sig(output, sig, &seckey->pubkey, seckey);
1283 pgp_writer_close(output);
1302 pgp_output_t *output;
1314 /* setup output file */
1315 fd = open_output_file(&output, f, sigfile,
1318 (void) fprintf(io->errs,"Can't open output file: %s\n", f);
1329 pgp_teardown_file_write(output, fd);
1334 pgp_writer_push_armor_msg(output);
1345 pgp_write_sig(output, sig, &seckey->pubkey, seckey);
1346 pgp_teardown_file_write(output, fd);