NTRUEncrypt
The NTRUEncrypt public key cryptosystem, also known as the NTRU encryption algorithm, is an NTRU lattice-based alternative to RSA and elliptic curve cryptography (ECC) and is based on the shortest vector problem in a lattice (which is not known to be breakable using quantum computers).[src] It relies on the presumed difficulty of factoring certain polynomials in a truncated polynomial ring into a quotient of two polynomials having very small coefficients.[src] Breaking the cryptosystem is strongly related, though not equivalent, to the algorithmic problem of lattice reduction in certain lattices.[src] Careful choice of parameters is necessary to thwart some published attacks.[src] Since both encryption and decryption use only simple polynomial multiplication, these operations are very fast compared to other asymmetric encryption schemes, such as RSA, ElGamal and elliptic curve cryptography.[src] However, NTRUEncrypt has not yet undergone a comparable amount of cryptographic analysis in deployed form.[src] A related algorithm is the NTRUSign digital signature algorithm.…[src]
The NTRUEncrypt public key cryptosystem, also known as the NTRU encryption algorithm, is an NTRU lattice-based alternative to RSA and elliptic curve cryptography (ECC) and is based on the shortest vector problem in a lattice (which is not known to be breakable using quantum computers).[src] It relies on the presumed difficulty of factoring certain polynomials in a truncated polynomial ring into a quotient of two polynomials having very small coefficients.[src] Breaking the cryptosystem is strongly related, though not equivalent, to the algorithmic problem of lattice reduction in certain lattices.[src] Careful choice of parameters is necessary to thwart some published attacks.[src] Since both encryption and decryption use only simple polynomial multiplication, these operations are very fast compared to other asymmetric encryption schemes, such as RSA, ElGamal and elliptic curve cryptography.[src] However, NTRUEncrypt has not yet undergone a comparable amount of cryptographic analysis in deployed form.[src] A related algorithm is the NTRUSign digital signature algorithm.[src] Specifically, NTRU operations are based on objects in a truncated polynomial ring \ R=\mathbb{Z}[X]/(X^N-1) with convolution multiplication and all polynomials in the ring have integer coefficients and degree at most N-1: \textbf{a} = a_0 + a_1 X + a_2 X^2 + \cdots + a_{N-2} X^{N-2} + a_{N-1} X^{N-1} That X^N = 1 in this ring has the effect that multiplying a polynomial by X rotates the coefficients of the polynomial.[src] A map of the form f \mapsto fg for a fixed g \in R thus produces a new polynomial fg where every coefficient depends on as many coefficients from f as there are nonzero coefficients in g .[src] NTRU has three integer parameters (N, p, q), where N is the polynomial degree bound, p is called the small modulus, and q is called the large modulus; it is assumed that N is prime, q is always (much) larger than p, and p and q are coprime.[src] Plaintext messages are polynomials modulo p but ciphertext messages are polynomials modulo q.[src] Concretely the ciphertext consists of the plaintext message plus a randomly chosen multiple of the public key, but the public key may itself be regarded as a multiple of the small modulus p, which allows the holder of the private key to extract the plaintext from the ciphertext.[src] ==History== The NTRUEncrypt Public Key Cryptosystem is a relatively new cryptosystem.[src] The first version of the system, which was simply called NTRU, was developed around 1996 by three mathematicians (Jeffrey Hoffstein, Jill Pipher, and Joseph H.[src] Silverman).[src] In 1996 these mathematicians together with Daniel Lieman founded the NTRU Cryptosystems, Inc.[src] and were given a patent (now expired) on the cryptosystem.[src] During the last ten years people have been working on improving the cryptosystem.[src] Since the first presentation of the cryptosystem, some changes were made to improve both the performance of the system and its security.[src] Most performance improvements were focused on speeding up the process.[src] Up till 2005 literature can be found that describes the decryption failures of the NTRUEncrypt.[src] As for security, since the first version of the NTRUEncrypt, new parameters have been introduced that seem secure for all currently known attacks and reasonable increase in computation power.[src] Now the system is fully accepted to IEEE P1363 standards under the specifications for lattice-based public-key cryptography (IEEE P1363.1).[src] Because of the speed of the NTRUEncrypt Public Key Cryptosystem (see http://bench.cr.yp.to for benchmarking results) and its low memory use (see below) , it can be used in applications such as mobile devices and Smart-cards.[src] In April 2011, NTRUEncrypt was accepted as a X9.98 Standard, for use in the financial services industry.[src] ==Public key generation== Sending a secret message from Alice to Bob requires the generation of a public and a private key.[src] The public key is known by both Alice and Bob and the private key is only known by Bob.[src] To generate the key pair two polynomials f and g, with degree at most \ N-1 and with coefficients in {-1,0,1} are required.[src] They can be considered as representations of the residue classes of polynomials modulo \ X^N-1 in R.[src] The polynomial \textbf{f} \in L_f must satisfy the additional requirement that the inverses modulo q and modulo p (computed using the Euclidean algorithm) exist, which means that \ \textbf{f} \cdot \textbf{f}_p = 1 \pmod p and \ \textbf{f} \cdot \textbf{f}_q = 1 \pmod q must hold.[src] So when the chosen f is not invertible, Bob has to go back and try another f.[src] Both f and \ \mathbf{f}_p (and \mathbf{g} ) are Bob's private key.[src] The public key h is generated computing the quantity \textbf{h} = p\textbf{f}_q \cdot \textbf{g} \pmod q.[src] Example: In this example the parameters (N, p, q) will have the values N = 11, p = 3 and q = 32 and therefore the polynomials f and g are of degree at most 10.[src] The system parameters (N, p, q) are known to everybody.[src] The polynomials are randomly chosen, so suppose they are represented by \textbf{f} = -1 + X + X^2 - X^4 + X^6 +X^9 - X^{10} \textbf{g} = -1 + X^2 +X^3 + X^5 -X^8 - X^{10} Using the Euclidean algorithm the inverse of f modulo p and modulo q, respectively, is computed \textbf{f}_p = 1 + 2X + 2X^3 +2X^4 + X^5 +2X^7 + X^8+2X^9 \pmod 3 \textbf{f}_q = 5 + 9X +6X^2+16X^3 + 4X^4 +15X^5 +16X^6+22X^7+20X^8+18X^9+30X^{10} \pmod {32} Which creates the public key h (known to both Alice and Bob) computing the product \textbf{h} = p\textbf{f}_q \cdot \textbf{g} \pmod {32} = 8 - 7X - 10X^2 - 12X^3 + 12X^4 - 8X^5 + 15X^6 - 13X^7 + 12X^8 - 13X^9 + 16X^{10} \pmod {32} ==Encryption== Alice, who wants to send a secret message to Bob, puts her message in the form of a polynomial m with coefficients in [-p/2, p/2] .[src] In modern applications of the encryption, the message polynomial can be translated in a binary or ternary representation.[src] After creating the message polynomial, Alice randomly chooses a polynomial r with small coefficients (not restricted to the set {-1,0,1}), that is meant to obscure the message.[src] With Bob's public key h the encrypted message e is computed: \textbf{e} = \textbf{r} \cdot \textbf{h} + \textbf{m} \pmod q This ciphertext hides Alice's messages and can be sent safely to Bob.[src] Example: Assume that Alice wants to send a message that can be written as polynomial \textbf{m} = -1 + X^3 - X^4-X^8+X^9+X^{10} and that the randomly chosen ‘blinding value’ can be expressed as \textbf{r} = -1+X^2+X^3+X^4-X^5-X^7 The ciphertext e that represents her encrypted message to Bob will look like \textbf{e} = \textbf{r} \cdot \textbf{h} + \textbf{m} \pmod {32} = 14 + 11X+26X^2+24X^3+14X^4+16X^5+30X^6+7X^7+25X^8+6X^9+19X^{10} \pmod {32} ==Decryption== Anybody knowing r could compute the message m by evaluating e - rh; so r must not be revealed by Alice.[src] In addition to the publicly available information, Bob knows his own private key.[src] Here is how he can obtain m: First he multiplies the encrypted message e and part of his private key f \textbf{a} = \textbf{f} \cdot \textbf{e} \pmod q By rewriting the polynomials, this equation is actually representing the following computation: \textbf{a} = \textbf{f} \cdot \textbf{e} \pmod q \textbf{a} = \textbf{f} \cdot (\textbf{r} \cdot \textbf{h}+\textbf{m}) \pmod q \textbf{a} = \textbf{f} \cdot (\textbf{r} \cdot p\textbf{f}_q \cdot \textbf{g} + \textbf{m}) \pmod q \textbf{a} = p\textbf{r} \cdot \textbf{g} + \textbf{f} \cdot \textbf{m} \pmod q Instead of choosing the coefficients of a between 0 and q – 1 they are chosen in the interval [-q/2, q/2] to prevent that the original message may not be properly recovered since Alice chooses the coordinates of her message m in the interval [-p/2, p/2].[src] This implies that all coefficients of \ p\textbf{r} \cdot \textbf{g} + \textbf{f} \cdot \textbf{m} already lie within the interval [-q/2, q/2] because the polynomials r, g, f and m and prime p all have coefficients that are small compared to q.[src] This means that all coefficients are left unchanged during reducing modulo q and that the original message may be recovered properly.[src] The next step will be to calculate a modulo p: \textbf{b} = \textbf{a} \pmod p = \textbf{f} \cdot \textbf{m} \pmod p because \ p\textbf{r} \cdot \textbf{g} \pmod p =0 .[src] Knowing b Bob can use the other part of his private key \ \left(\textbf{f}_p \right) to recover Alice's message by multiplication of b and \ \textbf{f}_p \textbf{c} = \textbf{f}_p \cdot \textbf{b} = \textbf{f}_p \cdot \textbf{f} \cdot \textbf{m} \pmod p \textbf{c} = \textbf{m} \pmod p because the property \ \textbf{f} \cdot \textbf{f}_p =1 \pmod p was required for \ \textbf{f}_p .[src] Example: The encrypted message e from Alice to Bob is multiplied with polynomial f \textbf{a} = \textbf{f} \cdot \textbf{e} \pmod {32} = 3 -7X-10X^2-11X^3+10X^4+7X^5+6X^6+7X^7+5X^8-3X^9-7X^{10} \pmod {32}, where Bob uses the interval [-q/2, q/2] instead of the interval [0, q – 1] for the coefficients of polynomial a to prevent that the original message may not be recovered correctly.[src] Reducing the coefficients of a mod p results in \textbf{b} = \textbf{a} \pmod 3 = -X-X^2+X^3+X^4+X^5+X^7-X^8-X^{10} \pmod 3 which equals \ \textbf{b} = \textbf{f} \cdot \textbf{m}\pmod 3 .[src] In the last step the result is multiplied with \ \textbf{f}_p from Bob's private key to end up with the original message m \textbf{c} = \textbf{f}_p \cdot \textbf{b} = \textbf{f}_p \cdot \textbf{f} \cdot \textbf{m} \pmod 3 = \textbf{m} \pmod 3 \textbf{c} = -1+X^3-X^4-X^8+X^9+X^{10} Which indeed is the original message Alice has sent to Bob![src] ==Attacks== Since the proposal of NTRU several attacks on the NTRUEncrypt public key cryptosystem have been introduced.[src] Most attacks are focused on making a total break by finding the secret key f instead of just recovering the message m.[src] If f is known to have very few non-zero coefficients Eve can successfully mount a brute force attack by trying all values for f.[src] When Eve wants to know whether f´ is the secret key, she simply calculates \ \textbf{f}' \cdot \textbf{h} \pmod q .[src] If it has small coefficients it might be the secret key f, and Eve can test if f´ is the secret key by using it to decrypt a message she encrypted herself.[src] Eve could also try values of g and test if \ \textbf{g}' \cdot \textbf{h}^{-1} \pmod q has small values.[src] It is possible to mount a meet-in-the-middle attack which is more powerful.[src] It can cut the search time by square root.[src] The attack is based on the property that \ \textbf{f} \cdot \textbf{h} = p\textbf{g} \pmod q .[src] Eve wants to find \ \textbf{f}_1 and \ \textbf{f}_2 such that \ \textbf{f} = \textbf{f}_1 + \textbf{f}_2 holds and such that they have the property \left( \textbf{f}_1+\textbf{f}_2 \right) \cdot \textbf{h} = \textbf{g} \pmod q \textbf{f}_1 \cdot \textbf{h} = \textbf{g} -\textbf{f}_2 \cdot \textbf{h} \pmod q If f has d one's and N-d zero's, then Eve creates all possible \ \textbf{f}_1 and \ \textbf{f}_2 in which they both have length \ \frac{1}{2} N (e.g.[src] \ \textbf{f}_1 covers the \ \frac{1}{2} N lowest coefficients of f and \ \textbf{f}_2 the highest) with d/2 one's.[src] Then she computes \textbf{f}_1 \cdot \textbf{h} \pmod q for all \ \textbf{f}_1 and orders them in bins based on the first k coordinates.[src] After that she computes all \ -\textbf{f}_2 \cdot \textbf{h} \pmod q and orders them in bins not only based on the first k coordinates, but also based on what happens if you add 1 to the first k coordinates.[src] Then you check the bins that contain both \ \textbf{f}_1 and \ \textbf{f}_2 and see if the property \ \textbf{f}_1 \cdot \textbf{h} = \textbf{g} -\textbf{f}_2 \cdot \textbf{h} \pmod q holds.[src] The lattice reduction attack is one of the best known and one of the most practical methods to break the NTRUEncrypt.[src] In a way it can be compared to the factorization of the modulus in RSA.[src] The most used algorithm for the lattice reduction attack is the Lenstra-Lenstra-Lovász algorithm.[src] Because the public key h contains both f and g one can try to obtain them from h.[src] It is however too hard to find the secret key when the NTRUEncrypt parameters are chosen secure enough.[src] The lattice reduction attack becomes harder if the dimension of the lattice gets bigger and the shortest vector gets longer.[src] The chosen ciphertext attack is also a method which recovers the secret key f and thereby results in a total break.[src] In this attack Eve tries to obtain her own message from the ciphertext and thereby tries to obtain the secret key.[src] In this attack Eve doesn't have any interaction with Bob.[src] How it works: First Eve creates a ciphertext \ \textbf{e} = c\textbf{h} + c such that \ c = 0 \pmod p, c and \ 2c > \frac{q}{2} .[src] When Eve writes down the steps to decipher e (without actually calculating the values since she does not know f) she finds \ \textbf{a} = \textbf{f} \cdot \textbf{e} \pmod q : \textbf{a} = \textbf{f} \left(c\textbf{h} + c\right) \pmod q \textbf{a} = c\textbf{g} +c\textbf{f} \pmod q \textbf{a} = c\textbf{g} + c\textbf{f} -qK In which \ K = \sum k_i x^i such that k_i=\begin{cases} 1 & \text{if the} \ i^{th} \ \text{coefficient of} \ \textbf{f} \ \text{and} \ \textbf{g} \ \text{is} \ 1, \\ -1 & \text{if the} \ i^{th} \ \text{coefficient of} \ \textbf{f} \ \text{and} \ \textbf{g} \ \text{is} \ -1,\\ 0 & \text{otherwise.}\end{cases} Example: \textbf{f} = -1+X+X^2-X^4+X^6+X^9-X^{10} \textbf{g} = -1 +X^2+X^3+X^5-X^8-X^{10} Then K becomes \ K = -1+X^2-X^{10} .[src] Reducing the coefficients of a mod p really reduces the coefficients of \ c\textbf{g}+c\textbf{f}-qK \pmod p .[src] After multiplication with \ \textbf{f}_p , Eve finds: \textbf{m} = c\textbf{f}_p \cdot \textbf{g}+c\textbf{f}_p \cdot \textbf{f}-q\textbf{f}_p \cdot K \pmod p \textbf{m} = c\textbf{h}+c -q\textbf{f}_p \cdot K \pmod p Because c was chosen to be a multiple of p, m can be written as \textbf{m} = -q\textbf{f}_p \cdot K \pmod p Which means that \ \textbf{f} = -qK \cdot \textbf{m}^{-1} \pmod p .[src] Now if f and g have few coefficients which are the same at the same factors, K has few non zero coefficients and is thereby small.[src] By trying different values of K the attacker can recover f.[src] By encrypting and decrypting a message according to the NTRUEncrypt the attacker can check whether the function f is the correct secret key or not.[src] ==Security and performance improvements== Using the latest suggested parameters (see below) the NTRUEncrypt public key cryptosystem is secure to most attacks.[src] There continues however to be a struggle between performance and security.[src] It is hard to improve the security without slowing down the speed, and vice versa.[src] One way to speed up the process without damaging the effectiveness of the algorithm, is to make some changes in the secret key f.[src] First, construct f such that \ \textbf{f} = 1+p\textbf{F} , in which F is a small polynomial (i.e.[src] coefficients {-1,0, 1}).[src] By constructing f this way, f is invertible mod p.[src] In fact \ \textbf{f}^{-1} = 1\pmod p , which means that Bob does not have to actually calculate the inverse and that Bob does not have to conduct the second step of decryption.[src] Therefore, constructing f this way saves a lot of time but it does not affect the security of the NTRUEncrypt because it is only easier to find \ \textbf{f}_p but f is still hard to recover.[src] In this case f has coefficients different from -1, 0 or 1, because of the multiplication by p.[src] But because Bob multiplies by p to generate the public key h, and later on reduces the ciphertext modulo p, this will not have an effect on the encryption method.[src] Second, f can be written as the product of multiple polynomials, such that the polynomials have many zero coefficients.[src] This way fewer calculations have to be conducted.[src] According to the 2020 NTRU NIST submission the following parameters are considered secure: ===Table 1: Parameters=== == References== Jaulmes, E.[src] and Joux, A.[src] A Chosen-Ciphertext Attack against NTRU.[src] Lecture Notes in Computer Science; Vol 1880.[src] Proceedings of the 20th Annual International Cryptology Conference on Advances in Cryptography.[src] pp. 20–35, 2000.[src] Jeffrey Hoffstein, Jill Pipher, Joseph H.[src] Silverman.[src] NTRU: A Ring Based Public Key Cryptosystem.[src] In Algorithmic Number Theory (ANTS III), Portland, OR, June 1998, J.P.[src] Buhler (ed.), Lecture Notes in Computer Science 1423, Springer-Verlag, Berlin, 1998, 267–288.[src] Howgrave-Graham, N., Silverman, J.H.[src] & Whyte, W., Meet-In-The-Middle Attack on a NTRU Private Key.[src] J.[src] Hoffstein, J.[src] Silverman.[src] Optimizations for NTRU.[src] Public-Key Cryptography and Computational Number Theory (Warsaw, September 11–15, 2000), DeGruyter, to appear.[src] A.[src] C.[src] Atici, L.[src] Batina, J.[src] Fan & I.[src] Verbauwhede.[src] Low-cost implementations of NTRU for pervasive security.[src]
124 sentences · 124 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"NTRUEncrypt." encyclopegia.org, 2026, https://encyclopegia.org/wiki/ntruencrypt. Accessed 27 November 2026.
Chicago
"NTRUEncrypt." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/ntruencrypt.
APA
encyclopegia.org. (2026). NTRUEncrypt. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/ntruencrypt
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON