When using ed2k_hash on a amd64, the checksums calculated will differ from those calculated on x86. When forcing ed2k_hash(amd64) to use the openssl library instead, they match. I *assume* that this problem is apparent on all 64-bit platforms, but I don't have access to any other platforms to test on. Reproducible: Always Steps to Reproduce: 1. Hash a file on a x86. 2. Hash a file on a amd64. 3. Compare the hashes.. Actual Results: produces different hashes Expected Results: produced the same hashes
Created attachment 38748 [details, diff] Ebuild to make ed2k_hash use openssl md4 instead As the md4 included in the ed2k_hash is apparently broken on amd64, this patch makes the ed2k_hash use the openssl-library for md4 if the keyword "ssl" or "amd64" is set.
Created attachment 38749 [details, diff] the patch for openssl with ed2k_hash, for use with the ebuild adds #define HAVE_OPENSSL and makes program link to openssl (LDFLAGS = -lssl )
Surely NOT critical !
UINT4 typeset unsigned long int badness in md4.h - please try the simple patched version now in cvs - and re-open this bug if it doesn't fix the problem.
Ok, in the next bugreport, I'll know not to use critical even if it makes the package unusable. I must have misinterpreted the instructions. The patch worked.