[PATCH] Message digest test suite and incomplete MD4 support

Simon Josefsson jas@extundo.com
Sun, 24 Nov 2002 19:55:01 +0100


Werner Koch <wk@gnupg.org> writes:

>> -    memcpy( correct_words, data, 64 );
>> -#endif
>> +    u32 *in = (u32*)data;
>
> This bears 2 problems: It does not work on big endian machines and
> DATA might not be aligned on a 4 byte boundary which results in a bus
> error or unpleasant software emulation of the instructions by the CPU
> (I once got complains from a Alpha admin, that I should fix my programs
> because the kernel log was full with unaligned instructions warnings ;-).
>
> I have fixed and tested this for ia32.

Thanks, I should have done more tests.  CVS works on
alphaev67-dec-osf5.0 and sparc-sun-solaris2.8 with non-GNU tools.
scripts/depcomp was not included by a "make dist" here, but it may be
a local problem.  The self tests core dump on rs6000-ibm-aix4.3.2.0
and mips-sgi-irix6.5 with non-GNU tools, I'll try to debug it.