mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-users] [PATCH] new Sha1 implementation


From: Fortin Denis
Subject: [Mldonkey-users] [PATCH] new Sha1 implementation
Date: Sat, 07 Feb 2004 15:06:01 +0100

Here's the patch to replace the rfc sha1 hash to brian gladman.
It has been tested succesfully on linux/windows/macosx/bsd on both endianess.
A few notes : 
*)I split the patch into two parts, one for replacing the old implementation, 
another one for configure.in.
*)It will be easy to revert to old sha1 implementation.
*)Before this patch os_stubs.h was loaded in sha1_c.h and was needed by 
commonHasher_c.c.
Now it's included directly (and only) in commonHasher_c.c.

I'm really not sure that the configure.in trick will copy endian.h and 
byteswap.h 
into the right directory in mingw (i can't test it). 
@b8_bavard you'll have to create new directories in mldonkey sources :
include/
include/bits/
Then you'll have to put the file from 
http://www.8ung.at/spiralvoice/patches/sha1bench_include.zip

endian.h in include/
bits/endian.h in include/bits/
byteswap.h in include/
bits/byteswap.h in include/bits/

I've succesfully downloaded a file in bittorrent with those patches.

Denis Fortin

Attachment: newsha1.patch
Description: Text document

Attachment: sha1config.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]