howto do a hash
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
Hope that helps,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 260 bytes
Desc: OpenPGP digital signature
More information about the Gcrypt-devel