[PATCH] Message digest test suite and incomplete MD4 support

Simon Josefsson jas@extundo.com
Thu, 21 Nov 2002 17:34:47 +0100

Werner Koch <wk@gnupg.org> writes:

> On Sat, 02 Nov 2002 22:45:21 +0100, Simon Josefsson said:
>> I need MD4 support so I wrote the below, but it didn't work so I added
> I have commited that changes but I changed the value of the
> GCRY_MD_MD4 macro.  Thanks.
>> a test suite for message digests (thus removing a TODO in
>> tests/basic.c), but wasn't able to get it to work anyway (the dynamic
>> algorithm loading stuff is rather convoluted IMHO).  The test case
> Agreed.  It has been removed from GnuPG so we will probably also
> remove it form libgcrypt.  There is no real point in having loadable
> algorithms, given that the text is usually small and the large tables
> some algorithms use are anywat paged in on demand.

Thanks for adding it, but it doesn't work for me, make check says:

algo 301, grcy_md_open failed: invalid hash algorithm
algo 301, grcy_md_open failed: invalid hash algorithm

Does it work for you?  Note that my original patch didn't work for me
either, so my original post asked how to fix it.  I tried to debug why
it didn't work, but I lost myself in the dynamic module loading code,
in which I assume the problem also lies.  MD4 seems to be properly
statically linked though.