# NTRUEncrypt

NTRUEncrypt是一种基于格的公钥加密方案，它在多项式环中运作，其安全性源自于在关联格中寻找短向量的困难性，这使其成为能够抵御量子攻击的密码学候选方案。它仅使用小系数多项式的加法和乘法来快速加密短消息块，作为RSA和椭圆曲线密码学的一种更快的替代方案，代价是密钥和密文更大。<sup>[1](https://ntru.org/f/hps98.pdf)</sup><sup> • </sup><sup>[2](https://hyperelliptic.org/tanja/teaching/pqcrypto21/slides/lattice-mm-4.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 设置 | 卷积多项式环 \( R = \mathbb{Z}_q[x]/(x^N - 1) \)，对两个整数 \( p \) 和 \( q \) 取模，其中 \( \gcd(p,q) = 1 \) 且 \( q \) 远大于 \( p \)<sup>[1](https://ntru.org/f/hps98.pdf)</sup> |
| 核心方程 | 公钥 \( h = F_{q} \cdot g \)；加密 \( e = p \cdot r \cdot h + m \bmod q \)<sup>[1](https://ntru.org/f/hps98.pdf)</sup> |
| 渐近复杂度 | 每个长度为 \( N \) 的块需要 \( O(N^2) \) 次运算，而RSA为 \( O(N^3) \)；密钥长度为 \( O(N) \)<sup>[1](https://ntru.org/f/hps98.pdf)</sup> |
| NIST参数族 | ntru-hps（固定权重）和ntru-hrss（任意权重），参数集包括ntruhps2048509、ntruhps2048677、ntruhps4096821和ntruhrss701<sup>[3](https://info.isl.ntt.co.jp/crypt/ntru/files/ntru.pdf)</sup> |
| 精简NTRU Prime sntrup761 | \( (p, q, w) = (761, 4591, 286) \)<sup>[4](https://www.usenix.org/system/files/sec22summer_bernstein-daniel.pdf)</sup>；在Intel Haswell上封装59600个周期，解封装97452个周期<sup>[5](https://ntruprime.cr.yp.to/ntruprime-20170816.pdf)</sup> |
| 解密失败 | 当 \( q > (6d + 1)p \) 时可完全避免；否则失败概率应保持在 \( 2^{-80} \) 以下<sup>[6](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)</sup> |
| NIST结果 | 第三轮决赛入围的PKE/KEM方案，但未被选为标准；ML-KEM（FIPS 203）于2024年被标准化<sup>[7](https://eprint.iacr.org/2023/1298.pdf)</sup><sup> • </sup><sup>[8](https://eprint.iacr.org/2026/2064.pdf)</sup> |

## 工作原理

NTRUEncrypt在截断多项式环 \( R = \mathbb{Z}[x]/(x^N - 1) \) 中运作，其中乘法为卷积：乘积的第 \( k \) 个系数为 \( h_k = \sum_{i+j \equiv k \bmod N} f_i \cdot g_j \)。<sup>[9](https://nitaj.users.lmno.cnrs.fr/ntru3final.pdf)</sup> 系数对两个整数 \( p \) 和 \( q \) 取模，其中 \( \gcd(p,q) = 1 \)，且 \( q \) 远大于 \( p \)；实践中 \( p = 3 \)（或多项式 \( 2 + X \)），\( q \) 为 \( N/2 \) 到 \( N \) 之间的2的幂。<sup>[1](https://ntru.org/f/hps98.pdf)</sup><sup> • </sup><sup>[10](https://www.di.ens.fr/david.pointcheval/Documents/Papers/2003_crypto.pdf)</sup>

安全性依赖于NTRU格问题。私钥是一对短（稀疏三元）多项式 \( (f, g) \)，满足 \( f \cdot h \equiv g \pmod q \)；找到这样一对多项式是维度为 \( 2N \)、行列式为 \( q^N \) 的格中的最短向量问题，而公钥长度为 \( N \log q \)。<sup>[11](https://www.math.brown.edu/jpipher/grenoble.pdf)</sup> NTRU假设有判定型和计算型两种表述（判定型：给定两个小环元素 \( f \) 和 \( g \)，难以区分 \( h = f/g \) 与均匀分布；计算型：给定 \( h \)，找到 \( f \) 和 \( g \)）；NTRU的安全性通常使用NTRU格和uSVP类攻击来分析，而非通过已证明的归约将其归结为具有稀疏三元秘密的唯一最短向量问题，而基于RLWE和RLWR的方案则依赖于有界距离解码。<sup>[25](https://eprint.iacr.org/2021/821)</sup><sup> • </sup><sup>[12](https://csrc.nist.gov/CSRC/media/Presentations/NTRUEncrypt-pqNTRUsign/images-media/ntruencrypt-pqntrusign-April2018.pdf)</sup> 解密密钥不必是精确的私钥对：格中任何合理短的 \( (g_0, f_0) \) 都可以工作。<sup>[2](https://hyperelliptic.org/tanja/teaching/pqcrypto21/slides/lattice-mm-4.pdf)</sup>

## 实现方式

当 \( N \) 为素数且 \( \gcd(N,q) = \gcd(p,q) = 1 \) 时，\( R_p \) 和 \( R_q \) 上的教科书方案运行如下。<sup>[6](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)</sup>

1. **密钥生成。** 选择私钥 \( f \in T(d+1, d) \) 和 \( g \in T(d, d) \)，即各含 \( d \) 个正负系数的三元多项式。计算模 \( q \) 的逆 \( F_q \) 和模 \( p \) 的逆 \( F_p \)。在 \( R_q \) 中公布 \( h = F_q \cdot g \)。<sup>[1](https://ntru.org/f/hps98.pdf)</sup><sup> • </sup><sup>[6](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)</sup>
2. **加密。** 选取随机盲化多项式 \( r \)，计算 \( e \equiv p \cdot h \cdot r + m \pmod q \)。<sup>[6](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)</sup>
3. **解密。** 计算 \( a \equiv f \cdot e \pmod q \)，然后 \( b \equiv F_p \cdot a \pmod p \)，其结果等于明文 \( m \)。<sup>[6](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)</sup>

解密之所以有效，是因为在教科书 \( p = 3 \) 版本中 \( a = f \cdot (r \cdot h + m) = r \cdot 3g + f \cdot m \)；\( r \cdot 3g + f \cdot m \) 的系数必须保持在模 \( q \) 的中心化区间内，这就是选择 \( q \) 满足 \( q/2 > 4d \) 的原因。<sup>[2](https://hyperelliptic.org/tanja/teaching/pqcrypto21/slides/lattice-mm-4.pdf)</sup> 三元卷积乘积大约需要 \( 2/3 \cdot N^2 \) 次加法或减法，不需要乘法。<sup>[6](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)</sup>

现代KEM形式加密 \( c = R_q(r \cdot h + m_1) \)，并通过 \( v_1 = R_q(c \cdot f) \)、\( m_0 = S_3(v_1 \cdot f_p) \) 及失败检查来解封装，在底层确定性PKE的OW-CPA安全性下，于随机预言机模型中带有紧致的IND-CCA2安全性证明，并在Saito、Xagawa和Yamakawa所陈述的假设下，使用SXY变换而非Fujisaki-Okamoto变换，带有紧致的量子可访问ROM证明。<sup>[3](https://info.isl.ntt.co.jp/crypt/ntru/files/ntru.pdf)</sup><sup> • </sup><sup>[13](https://datatracker.ietf.org/doc/draft-fluhrer-cfrg-ntru/02/)</sup>

## 起源

最早的NTRU文献是手稿《NTRU：一种新型高速公钥密码系统》，在CRYPTO 1996的非正式会议上流传；该方案随后在ANTS III会议录（LNCS 1423，Springer，1998）中以《NTRU：一种基于环的公钥密码系统》为题发表。<sup>[14](https://ntru.org/resources.shtml)</sup><sup> • </sup><sup>[1](https://ntru.org/f/hps98.pdf)</sup><sup> • </sup><sup>[9](https://nitaj.users.lmno.cnrs.fr/ntru3final.pdf)</sup> Hoffstein本人的历史叙述描述了与Pipher和Silverman合作分析安全性并确定参数的过程，其基础是1994-95年与Kaliski、Lieman、Robshaw和Yin一起探索的作为签名方案的困难问题构想。<sup>[15](http://ec14.compute.dtu.dk/talks/6.pdf)</sup>

美国专利6,081,597“公钥密码系统方法和装置”由NTRU Cryptosystems Inc.于1997年8月19日提交，2000年6月27日授予；2009年转让给Security Innovation, Inc.，现已过期。<sup>[16](https://patents.google.com/patent/US6081597)</sup>

## 变体

NIST第三轮提交推荐两个参数族：ntru-hps（固定权重密钥，以Hoffstein、Pipher和Silverman命名）和ntru-hrss（任意权重，以Hülsing、Rijneveld、Schanck和Schwabe命名），参数集为ntruhps2048509、ntruhps2048677、ntruhps4096821和ntruhrss701；IETF草案增加了ntruhps40961229（\( N = 1229 \)，\( Q = 4096 \)），并将ntruhrss701列为 \( N = 701 \)，\( Q = 8192 \)，全部使用SHA3-256。<sup>[3](https://info.isl.ntt.co.jp/crypt/ntru/files/ntru.pdf)</sup><sup> • </sup><sup>[13](https://datatracker.ietf.org/doc/draft-fluhrer-cfrg-ntru/02/)</sup> EESS#1乘积形式参数集使用 \( N = 401 \)（112位安全）、\( N = 439 \)（128位）、\( N = 593 \)（192位）和 \( N = 743 \)（256位），均取 \( q = 2048 \)；乘积形式多项式允许无需傅里叶变换的极快乘法。<sup>[17](https://jmschanck.info/papers/20150718-ntruparams.pdf)</sup>

**NTRU Prime**调整NTRU以使用环 \( (\mathbb{Z}/q)[x]/(x^p - x - 1) \)，其中 \( p \) 和 \( q \) 为素数且 \( x^p - x - 1 \) 不可约，消除了针对理想格密码系统的攻击所利用的结构；它使用具有大伽罗瓦群的素数次数数域和惰性模数，最小化攻击者可用的环同态。<sup>[5](https://ntruprime.cr.yp.to/ntruprime-20170816.pdf)</sup><sup> • </sup><sup>[18](https://ntruprime.cr.yp.to/nist/ntruprime-20201007.pdf)</sup> 第三轮提交提供了两个KEM：精简NTRU Prime（一个完全正确的确定性PKE，外层KEM层使用隐式拒绝）和NTRU LPRime。<sup>[18](https://ntruprime.cr.yp.to/nist/ntruprime-20201007.pdf)</sup> **NTTRU**由Vadim Lyubashevsky和Gregor Seiler于2019年在IACR Transactions on Cryptographic Hardware and Embedded Systems上发表，题为《NTTRU：使用NTT的真正快速NTRU》。<sup>[19](https://doi.org/10.46586/tches.v2019.i3.180-201)</sup> NTRUEncrypt和NTRUSign经过修改，通过从离散高斯分布采样秘密密钥使公钥在统计上不可区分于均匀分布，从而在最坏情况理想格困难性下可证明安全，安全性来自Ideal-SIS和R-LWE。<sup>[20](https://perso.ens-lyon.fr/damien.stehle/downloads/ntru.pdf)</sup>

## 应用

1998年的论文测量了NTRU在Pentium级硬件上比512位RSA加密快5.9倍、解密快14.4倍、密钥创建快5.0倍，比1024位RSA解密快3.2倍、密钥创建快5.3倍。<sup>[1](https://ntru.org/f/hps98.pdf)</sup> ntrukem-743的报告数据包括8184位公钥和密文，密钥生成1017微秒，加密140微秒，解密210微秒。<sup>[12](https://csrc.nist.gov/CSRC/media/Presentations/NTRUEncrypt-pqNTRUsign/images-media/ntruencrypt-pqntrusign-April2018.pdf)</sup> 精简NTRU Prime 4591-761在一个Intel [Haswell](https://www.edgepedia.org/zh/haswell-microarchitecture)核心上常数时间域乘法使用28682个周期，封装59600个周期，解封装97452个周期。<sup>[5](https://ntruprime.cr.yp.to/ntruprime-20170816.pdf)</sup>

在标准化方面，NTRU于2009年获准纳入IEEE P1363。<sup>[9](https://nitaj.users.lmno.cnrs.fr/ntru3final.pdf)</sup> ntruhrss701算法用于2019年的Google-Cloudflare CECPQ2实验，<sup>[4](https://www.usenix.org/system/files/sec22summer_bernstein-daniel.pdf)</sup> OpenSSLNTRU由Daniel J. Bernstein及其同事于2021年发表，将精简NTRU Prime集成到后量子TLS密钥交换中。<sup>[21](https://doi.org/10.48550/arxiv.2106.08759)</sup> OpenSSH 9.0（2022年4月）将混合sntrup761x25519-sha512套件设为默认后量子密钥交换，sntrup761在RFC 9941中被标准化，并随[Red Hat Enterprise Linux](https://www.edgepedia.org/zh/red-hat-enterprise-linux) 10、liboqs、PQConnect和商业VPN一起发布。<sup>[8](https://eprint.iacr.org/2026/2064.pdf)</sup>

## 局限与替代方案

**格攻击与组合攻击。** Coppersmith和Shamir观察到理想格基约化可以启发式地从公钥恢复私钥。<sup>[22](https://www.di.ens.fr/david.pointcheval/Documents/Papers/2002_cryptoB.pdf)</sup> Odlyzko向发明者展示了中间相遇攻击将组合安全指数减半，而NTRU格上已知的最佳攻击仍然是格约化和中间相遇的混合。<sup>[15](http://ec14.compute.dtu.dk/talks/6.pdf)</sup><sup> • </sup><sup>[5](https://ntruprime.cr.yp.to/ntruprime-20170816.pdf)</sup> NIST候选方案的安全性评估将基于NTRU的方案视为uSVP实例。<sup>[23](https://estimate-all-the-lwe-ntru-schemes.github.io/paper.pdf)</sup>

**填充与选择密文攻击。** 未填充的NTRU在语义上不安全，因为 \( e(1) \equiv m(1) \pmod q \)，这是由于 \( r(1) = 0 \)；它也容易受到简单的选择密文攻击，因此应使用NAEP等填充方案。<sup>[22](https://www.di.ens.fr/david.pointcheval/Documents/Papers/2002_cryptoB.pdf)</sup><sup> • </sup><sup>[9](https://nitaj.users.lmno.cnrs.fr/ntru3final.pdf)</sup>

**解密失败。** 有效生成的密文可能解密失败，攻击利用解密失败来恢复所有标准参数集的私钥，其中一种适用于任何填充；用于从失败中恢复的重中心化过程也会泄露时序信息。<sup>[10](https://www.di.ens.fr/david.pointcheval/Documents/Papers/2003_crypto.pdf)</sup> 1998年的论文将失败视为合法用户可通过校验位和偏移中心化区间来恢复的问题，<sup>[1](https://ntru.org/f/hps98.pdf)</sup> 但2003年的分析表明这些失败能够实现密钥恢复，这是一个本质上更强的问题。对策包括选择 \( q > (6d + 1)p \) 使解密永不失败，以及将失败概率保持在 \( 2^{-80} \) 以下。<sup>[6](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)</sup>

**标准化结果。** NTRU是NIST第三轮四个PKE/KEM决赛入围者之一，但未被选为标准。与Kyber相比，其公钥和密文大8.3-18.6%，密钥生成慢8.21-45.34倍。<sup>[7](https://eprint.iacr.org/2023/1298.pdf)</sup> NTRU Prime是第三轮备选候选方案，NIST未选择其进行标准化或推进至第四轮。<sup>[24](https://datatracker.ietf.org/doc/html/draft-liu-cfrg-ntru-family-security-considerations-00)</sup> NIST的前三个后量子标准[FIPS 203](https://www.edgepedia.org/zh/fips-203)（ML-KEM）、[FIPS 204](https://www.edgepedia.org/zh/fips-204)（ML-DSA）和[FIPS 205](https://www.edgepedia.org/zh/fips-205)（SLH-DSA）于2024年中期出现。<sup>[8](https://eprint.iacr.org/2026/2064.pdf)</sup> NTRU+在韩国后量子密码学竞赛（KpqC）的PKE/KEM类别中被选为决赛入围者，而CFRG文档draft-fluhrer-cfrg-ntru-03于2025年7月7日发布，于2026年1月8日过期。<sup>[24](https://datatracker.ietf.org/doc/html/draft-liu-cfrg-ntru-family-security-considerations-00)</sup>

## References

1. [NTRU: A ring-based public key cryptosystem](https://ntru.org/f/hps98.pdf)
2. [Lattice-based cryptography IV – NTRU (Tanja Lange course slides)](https://hyperelliptic.org/tanja/teaching/pqcrypto21/slides/lattice-mm-4.pdf)
3. [NTRU Round-3 NIST submission: Algorithm Specifications and Supporting Documentation](https://info.isl.ntt.co.jp/crypt/ntru/files/ntru.pdf)
4. [OpenSSLNTRU: Faster post-quantum TLS key exchange (USENIX Security 2022)](https://www.usenix.org/system/files/sec22summer_bernstein-daniel.pdf)
5. [NTRU Prime: reducing attack surface at low cost (Bernstein, Chuengsatiansup, Lange, van Vredendaal)](https://ntruprime.cr.yp.to/ntruprime-20170816.pdf)
6. [An Introduction to Mathematical Cryptography, Section 7.10 (Hoffstein, Pipher, Silverman)](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE491/Fall2019/Hoffstein2015%20Introduction%20to%20Mathematical%20Cryptography%20416-422.pdf)
7. [NEV: Faster and Smaller NTRU Encryption using Vector Decoding (Asiacrypt 2023)](https://eprint.iacr.org/2023/1298.pdf)
8. [Area-Time Efficient NTRU Prime Decapsulation: ASIC Evaluation of the First Five-Way Char-3 Multiplier](https://eprint.iacr.org/2026/2064.pdf)
9. [The Mathematics of the NTRU Public Key Cryptosystem (Abdelhakim Nitaj)](https://nitaj.users.lmno.cnrs.fr/ntru3final.pdf)
10. [The Impact of Decryption Failures on the Security of NTRU Encryption (CRYPTO 2003)](https://www.di.ens.fr/david.pointcheval/Documents/Papers/2003_crypto.pdf)
11. [Lattices and NTRU (Jill Pipher lecture notes)](https://www.math.brown.edu/jpipher/grenoble.pdf)
12. [NTRUEncrypt and pqNTRUSign (Zhenfei Zhang, NIST PQC conference, April 2018)](https://csrc.nist.gov/CSRC/media/Presentations/NTRUEncrypt-pqNTRUsign/images-media/ntruencrypt-pqntrusign-April2018.pdf)
13. [NTRU Key Encapsulation (IETF draft-fluhrer-cfrg-ntru-02)](https://datatracker.ietf.org/doc/draft-fluhrer-cfrg-ntru/02/)
14. [NTRU – Resources](https://ntru.org/resources.shtml)
15. [A history of the development of NTRU (Jeff Hoffstein, Eurocrypt 2014 talk)](http://ec14.compute.dtu.dk/talks/6.pdf)
16. [US6081597A - Public key cryptosystem method and apparatus](https://patents.google.com/patent/US6081597)
17. [Security estimates and parameter generation for NTRUEncrypt (IEEE 1363.1-2008 / NTRU Challenge sets)](https://jmschanck.info/papers/20150718-ntruparams.pdf)
18. [NTRU Prime: round 3 NIST submission document](https://ntruprime.cr.yp.to/nist/ntruprime-20201007.pdf)
19. [Vadim Lyubashevsky, Gregor Seiler (2019). NTTRU: Truly Fast NTRU Using NTT. IACR Transactions on Cryptographic Hardware and Embedded Systems.](https://doi.org/10.46586/tches.v2019.i3.180-201)
20. [Stehlé–Steinfeld: Making NTRUEncrypt and NTRUSign provably secure (variant paper)](https://perso.ens-lyon.fr/damien.stehle/downloads/ntru.pdf)
21. [Bernstein, Daniel J. and colleagues (2021). OpenSSLNTRU: Faster post-quantum TLS key exchange. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2106.08759)
22. [Analysis and Improvements of NTRU Encryption Paddings (CRYPTO 2002)](https://www.di.ens.fr/david.pointcheval/Documents/Papers/2002_cryptoB.pdf)
23. [Estimating the security of all LWE- and NTRU-based schemes proposed to NIST PQC](https://estimate-all-the-lwe-ntru-schemes.github.io/paper.pdf)
24. [draft-liu-cfrg-ntru-family-security-considerations-00](https://datatracker.ietf.org/doc/html/draft-liu-cfrg-ntru-family-security-considerations-00)
25. [eprint.iacr.org](https://eprint.iacr.org/2021/821)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Titles Mo to Z

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/ntruencrypt

English original: https://www.edgepedia.org/ntruencrypt
