Open GamePad64 opened 8 years ago
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
What are you planning to do with the generator?
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.
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?