Java implementation - about weak checksum difference

Frédéric Lecointre frederic.lecointre at burnweb.net
Mon Jan 24 10:40:02 MST 2011


Hi all,

I'm trying a java implementation of rsync for "fun and profits" ;-) 
helped by librsync 0.9.7 and jarsync (a died java implementation)
So i started to implement rdiff command and for now i have a working 
signature command.

With first test, i had the same signature file of 
testsuite/mksum.input/COPYING.sig but when i try with another dummy 
file, for each checksum pair :
     - each weak sum is different but just byte 1 and 3
     - each strong sum is identical

For example, this is the begenning of signature from and rdiff and java

# From rdiff
72 73 01 36 00 00 08 00 00 00 00 08 <- header
Pair 1
e1 c4 cd 65 <- weak
8b 4f 52 f9 d9 d2 27 e1 <- strong

Pair 2
30 66 72 71 <- weak
cd f6 1e 66 ac f2 af c5 <- strong

# From java
72 73 01 36 00 00 08 00 00 00 00 08 <- header

Pair 1
26 c4 ad 65 <- weak
8b 4f 52 f9 d9 d2 27 e1

Pair 2
c3 66 86 71 <- weak
cd f6 1e 66 ac f2 af c5 <- strong

Is anyone have an idea ?

Thanks in advance.
-- 
*Frédéric Lecointre*


More information about the rsync mailing list