Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62587 - amd64-arch miscalculates ed2k-hashes
Summary: amd64-arch miscalculates ed2k-hashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 00:21 UTC by Tobias
Modified: 2004-09-02 21:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild to make ed2k_hash use openssl md4 instead (ed2k_hash-0.4.0-r1.ebuild,794 bytes, patch)
2004-09-02 04:03 UTC, Tobias
Details | Diff
the patch for openssl with ed2k_hash, for use with the ebuild (ed2k_hash-0.4.0-openssl.patch,864 bytes, patch)
2004-09-02 04:05 UTC, Tobias
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias 2004-09-02 00:21:50 UTC
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
Comment 1 Tobias 2004-09-02 04:03:33 UTC
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.
Comment 2 Tobias 2004-09-02 04:05:19 UTC
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 )
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-09-02 13:11:16 UTC
Surely NOT critical !
Comment 4 Malcolm Lashley (RETIRED) gentoo-dev 2004-09-02 17:31:03 UTC
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.
Comment 5 Tobias 2004-09-02 21:49:41 UTC
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.