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

Question about generating polynomial #7

Open
hugo3m opened this issue Jul 2, 2021 · 0 comments
Open

Question about generating polynomial #7

hugo3m opened this issue Jul 2, 2021 · 0 comments

Comments

@hugo3m
Copy link

hugo3m commented Jul 2, 2021

Hey, it's not really an issue but I have a question for you.

I'm using your library but I wanted to use my own random number generator to create the polynomials. I see that in "ntru/ntru/ntrucipher.py" you are using two times the function " random_poly" from mathutils. I am wondering why one time you're using it with

  • "random_poly(self.N, int(math.sqrt(self.q)))"
    and another time with
  • "f_poly = random_poly(self.N, self.N // 3, neg_ones_diff=-1)"

It doesn't look like your polynomials are that random, the only randomness here is how your shuffling coefficient in your array of coefficient. Am I true ? Thanks for your help.

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

1 participant