Skip to content

Question about generating polynomial #7

@hugo3m

Description

@hugo3m

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions