Lines Matching defs:hashbuf
167 uint8_t hashbuf[NETPGP_BUFSIZ];
184 if (keysize > sizeof(hashbuf)) {
193 hashbuf[0] = 0;
194 hashbuf[1] = 1;
199 hashbuf[n] = 0xff;
201 hashbuf[n++] = 0;
203 (void) memcpy(&hashbuf[n], prefix, prefixsize);
205 if ((t = hash->finish(hash, &hashbuf[n])) != expected) {
210 pgp_write(out, &hashbuf[n], 2);
218 t = pgp_rsa_private_encrypt(sigbuf, hashbuf, keysize, secrsa, pubrsa);
233 uint8_t hashbuf[NETPGP_BUFSIZ];
244 t = hash->finish(hash, &hashbuf[0]);
250 pgp_write(output, &hashbuf[0], 2);
253 dsasig = pgp_dsa_sign(hashbuf, hashsize, sdsa, dsa);
276 uint8_t hashbuf[NETPGP_BUFSIZ];
286 t = hash->finish(hash, &hashbuf[0]);
293 pgp_write(output, &hashbuf[0], 2);
296 ecdsasig = pgp_ecdsa_sign(hashbuf, hashsize, secdsa, ecdsa);
395 hexdump(stderr, "sig hashbuf", hashbuf_from_sig, debug_len_decrypted);