## rsyncrypto-devel — Development discussions, bug reports, and announcements for rsyncrypto

You can subscribe to this list here.

2005 2006 2007 2008 2009 2010 2011 2012 2014 2015 2016 2017 Jan Feb Mar (2) Apr (2) May (7) Jun (5) Jul (12) Aug (29) Sep (6) Oct (5) Nov (18) Dec (4) Jan (13) Feb (3) Mar Apr (5) May (6) Jun (8) Jul Aug (1) Sep (3) Oct (2) Nov (23) Dec (2) Jan (47) Feb (4) Mar (4) Apr May Jun (8) Jul (2) Aug Sep (6) Oct Nov (24) Dec (17) Jan (4) Feb (22) Mar (25) Apr (19) May (76) Jun (34) Jul (18) Aug (2) Sep Oct (4) Nov Dec (3) Jan Feb (13) Mar Apr (3) May Jun Jul (9) Aug (7) Sep (2) Oct (3) Nov Dec (4) Jan Feb (4) Mar Apr (3) May (3) Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr May Jun (2) Jul (2) Aug Sep Oct Nov Dec Jan Feb Mar Apr May Jun (7) Jul Aug Sep Oct Nov (3) Dec (1) Jan Feb Mar (14) Apr May Jun Jul Aug Sep Oct Nov Dec (1) Jan Feb (6) Mar (2) Apr May Jun (4) Jul Aug Sep (4) Oct (1) Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov (5) Dec Jan Feb Mar Apr May Jun Jul Aug (1) Sep (5) Oct Nov Dec
S M T W T F S

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15
(2)
16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

Showing 2 results of 2

 Re: How to work out the final decision function? From: Shachar Shemesh - 2011-07-15 07:21:27 ```On 15/07/11 08:36, 阮巧海 wrote: > Hi: > > There are two decision functions. > The one in gzip triggers if the sum of the past 4096 bytes divides > (plain text) by 4096 with zero remainder. > The another one in rsyncrypto triggers if the sum of the past 256 > bytes divides (compressed plain text) by 8192 with zero remainder. Of > course, the block size must be 8192 bytes at least. > > But the homepage explains that finally the performance for the > decision function is that it triggers if the sum of the past 8196 > bytes divides by 4096 with zero remainder. > Can you tell me how to work out the final decision function? > Or you get the final decision function first, and then extend it to > gzip and rsyncrypto? No (not yet?) At its current implementation, rsyncrypto encapsulates two passes over the data. The first is the compression stage, and it takes place using the stock installed gzip with the --rsyncable flag. At this point, whatever decision function gzip implements gets used over the plain text to reset the compression history. The second stage is the encryption. At this stage, the compressed data is used in order to trigger the decision function inside rsyncrypto. Rsyncrypto has flags to tweek the precise decision function (the roll-win, roll-min and roll-sensitivity parameters), but the defaults, indeed, are not identical to those used by gzip. There are some future plans to not use the gzip executable, but rather to use zlib, and only have one decision function reset both encryption and compression parameters. At this point in time, I cannot tell you when, or even if, they will ever take place. Shachar > > Thanks. -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com ```
 How to work out the final decision function? From: 阮巧海 - 2011-07-15 05:36:18 Attachments: Message as HTML ```Hi: There are two decision functions. The one in gzip triggers if the sum of the past 4096 bytes divides (plain text) by 4096 with zero remainder. The another one in rsyncrypto triggers if the sum of the past 256 bytes divides (compressed plain text) by 8192 with zero remainder. Of course, the block size must be 8192 bytes at least. But the homepage explains that finally the performance for the decision function is that it triggers if the sum of the past 8196 bytes divides by 4096 with zero remainder. Can you tell me how to work out the final decision function? Or you get the final decision function first, and then extend it to gzip and rsyncrypto? Thanks. ```

Showing 2 results of 2