Output multiple hashes

megamind6155 megamind6155 at nixnet.email
Sun Apr 7 15:16:10 CEST 2024


Hello,
I wanted libgcrypt to print hashes of a buffer in various algorithms.
for example if I have a buffer:

char* buffer = "hello\n";

How do I get multiple hashes? For example, MD5 and SHA1?

I've enabled both using `gcry_md_enable`, but I can only read using one 
algorithm using `gcry_md_read` Am I supposed to make 2 reads? What if I 
have many algorithms I want to use?

Any help provided would be appreciated.

Yours Faithfully,
megamind6155.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20240407/59415bde/attachment.sig>


More information about the Gnupg-devel mailing list