Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polynomial generator #2

Open
GamePad64 opened this issue Feb 20, 2016 · 3 comments
Open

Polynomial generator #2

GamePad64 opened this issue Feb 20, 2016 · 3 comments

Comments

@GamePad64
Copy link

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?

@fd0
Copy link
Owner

fd0 commented Feb 20, 2016

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
Copy link
Owner

fd0 commented Feb 20, 2016

What are you planning to do with the generator?

@GamePad64
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants