howto do a hash
Moritz Schulte
mo at g10code.com
Thu Jan 1 20:44:01 CET 2009
> What I don't know now is how to correctly create this 'context'? Everywhere
> this is a 'pointer to void', and I cannot read the how.
Why are you trying to fiddle around with Libgcrypt internals instead of
using the exported programing interface as it is documented in the manual?
Have a look at the manual and the included test programs.
To answer your specific question about the origin of the hash context:
the gcry_md_spec_t structure contains the info about the required size
for the context buffer. This is allocated in md.c and then initialized
with the algorithm-specific initialization function (also contained in
that struct).
Hope that helps,
moritz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20090101/6dac45bb/attachment.pgp>
More information about the Gcrypt-devel
mailing list