Score:4

NTRUEncrypt proof that there are plenty of keys

tg flag

In NTRU algorithm one is supposed generate a vector which is invertible as a polynomial in both $(\mathbb{Z}/p\mathbb{Z})[x]/(x^n-1)$ and $(\mathbb{Z}/q\mathbb{Z})[x]/(x^n-1)$. But is there a mathematical lower bound to the probability of f being appropriate in that regard?

Score:2
ru flag

Yes. Let $x^n-1=r_0^{e_0}(x)r_1^{e_1}(x)\cdots r_k^{e_k}(x)\pmod p$ be the factorisation of the polynomial $x^n-1$ into irreducibles in $\mathbb F_p[x]$, then the polynomial $f(x)$ is invertible in $(\mathbb Z/p\mathbb Z[x])^\times/(x^n-1)$ if and only if $f(x)$ is not divisible by any of the $r_i(x)$ in $\mathbb F_p$. If $f(x)\mod p$ is selected uniformly at random from polynomials of degree at most $n-1$ in $\mathbb F_p$ (e.g. each coefficient lies in a residue class with probability $1/p$) then $r_i(x)|f(x)$ is a probability $p^{-\deg(r_i)}$ event and by coprimality these events are independent for distinct $r_i,r_j$. Thus the probability of invertability mod $p$ is $$\prod_{i=0}^k\left(1-\frac1{p^{\deg(r_i)}}\right).$$ Given the $p^n$ possible choices of $f(x)\mod p$, this still represents a large proportion of possible choices. The worst case is when $x^n-1$ factors into $n$ distinct linear factors (which would be a poor choice for NTRU). In which case we would still have a probability $(1-1/p)^n$ and at least $(p-1)^n$ invertible polynomials mod $p$.

A similar, independent probability can be calculated mod $q$.

Ali Haktan German avatar
tg flag
Did you use Chinese Remainder Theorem to get this product?
Daniel S avatar
ru flag
@AliHaktanGerman that is certainly one way to get it.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.