puthexdump
puthexdump(hex, buf, size);
puthexdump(hex, hash, size);
puthexdump(hex, pubkey, pubkey_len);
puthexdump(hex, privkey, privkey_len);