rabin-cdc icon indicating copy to clipboard operation
rabin-cdc copied to clipboard

Polynomial generator

Open GamePad64 opened this issue 9 years ago • 3 comments

Hello, You have mentioned in #1, that you have a polynomial generator in https://github.com/restic/chunker, written in Go. Is there any way to port it to C?

GamePad64 avatar Feb 20 '16 00:02 GamePad64

Sure, that should be straight-forward. The code is here: https://github.com/restic/chunker/blob/master/polynomials.go

A Pol is an alias for an uint64.

I have a few test polynomials that may be helpful while porting: https://github.com/restic/chunker/blob/master/polynomials_test.go#L240-L268

fd0 avatar Feb 20 '16 15:02 fd0

What are you planning to do with the generator?

fd0 avatar Feb 20 '16 15:02 fd0

I am writing a file synchronization application. For each file, some sort of "metafile" is created. I will generate a new polynomial for each file, encrypt it with AES key and transfer to another node inside a metafile. As the blocks are supposed to be AES encrypted, then I will have to generate a new polynomial because of the fingerprinting attack.

GamePad64 avatar Feb 20 '16 22:02 GamePad64