# 后量子数字签名

后量子数字签名是一种签名方案，其设计目标是在面对拥有大规模容错量子计算机的攻击者时仍保持不可伪造性。NIST的迁移时间表将ECDSA、EdDSA和RSA等量子脆弱算法列为弃用对象，并在2035年前将其从标准中移除，高风险系统则需更早迁移。<sup>[21](https://csrc.nist.gov/projects/post-quantum-cryptography/),%20[2](https://www.ietf.org/archive/id/draft-prabel-pquip-pqc-guidance-01.html)</sup> [FIPS 204](https://www.edgepedia.org/zh/fips-204)（ML-DSA）与[FIPS 205](https://www.edgepedia.org/zh/fips-205)（SLH-DSA）一同发布，源自Falcon的FN-DSA被选中留待后续标准化。<sup>[1](https://csrc.nist.gov/projects/post-quantum-cryptography/)</sup> 量子抗性的代价是尺寸：一个ML-DSA-65公钥为1,952字节，签名为3,309字节，而Ed25519分别为32字节和64字节。<sup>[2](https://www.ietf.org/blog/iab-pq-workshop-cfp/)</sup>

| 事实 | 数值 |
|---|---|
| ML-DSA的安全基础 | 模格学习带误差问题；被认为可抵御大规模容错量子计算机<sup>[3](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf)</sup> |
| ML-DSA尺寸（私钥/公钥/签名） | ML-DSA-44：2560/1312/2420字节；ML-DSA-65：4032/1952/3309字节；ML-DSA-87：4896/2592/4627字节<sup>[3](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf)</sup> |
| FN-DSA-512（Falcon）尺寸 | 897字节公钥，666字节签名（一份IETF草案给出752字节）<sup>[22](https://blog.cloudflare.com/ml-dsa-will-have-to-do/),%20[2](https://www.ietf.org/archive/id/draft-prabel-pquip-pqc-guidance-01.html)</sup> |
| SLH-DSA签名尺寸 | 视参数集不同为7,856至49,856字节，公钥较小<sup>[2](https://www.ietf.org/blog/iab-pq-workshop-cfp/)</sup> |
| 经典算法对比 | Ed25519：32字节密钥，64字节签名；叶节点加中间节点的证书链使用ML-DSA-65共10,522字节，使用Ed25519则为192字节<sup>[2](https://www.ietf.org/blog/iab-pq-workshop-cfp/)</sup> |
| 迁移截止期限 | 根据NIST IR 8547，量子脆弱算法（ECDSA、EdDSA、RSA）在2035年后不再允许使用<sup>[21](https://csrc.nist.gov/projects/post-quantum-cryptography/),%20[2](https://www.ietf.org/archive/id/draft-prabel-pquip-pqc-guidance-01.html)</sup> |

## 工作原理

后量子签名用尚无已知高效量子攻击的问题，取代整数分解和椭圆曲线离散对数问题。ML-DSA在量子[随机预言机模型](https://www.edgepedia.org/zh/random-oracle-model)下的安全性基于模格学习带误差（MLWE）问题和模短整数解（MSIS）问题，以及一个混合的SelfTargetMSIS问题。<sup>[4](https://pq-crystals.org/dilithium/data/dilithium-specification.pdf)</sup> FN-DSA即即将发布的FIPS 206，是一种格签名，构建在NTRU格上的GPV哈希签名框架之上，采用快速傅里叶采样，安全性基于NTRU格上的SIS问题。<sup>[5](https://datatracker.ietf.org/doc/html/draft-ietf-lamps-fn-dsa-certificates-00)</sup> SLH-DSA和XMSS等基于哈希的方案仅依赖哈希函数的性质：XMSS甚至不要求其哈希函数具有抗碰撞性。<sup>[6](https://www.rfc-editor.org/rfc/rfc8391.html)</sup>

两种构造范式占主导地位。在哈希签名中，签名者使用私钥采样一个短格向量，使其接近由消息哈希导出的目标值；FN-DSA即如此工作。在带中止的Fiat-Shamir范式中——ML-DSA采用此范式——签名者选取一个掩码向量y，由承诺和消息的哈希计算挑战值，并输出响应\( z = y + c \cdot s_{1} \)。需要进行[拒绝采样](https://www.edgepedia.org/zh/rejection-sampling)，因为z不得泄露关于秘密的信息：若z的任一系数超过\( \gamma_{1} - \beta \)，或\( A \cdot z - c \cdot t \)的低位比特超过\( \gamma_{2} - \beta \)，签名即中止并以新的y重新开始。<sup>[4](https://pq-crystals.org/dilithium/data/dilithium-specification.pdf)</sup>

## 实现方式

ML-DSA在FIPS 204中标准化，由ML-DSA.KeyGen、ML-DSA.Sign和ML-DSA.Verify组成，另有一个域分离的预哈希变体称为HashML-DSA。<sup>[3](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf)</sup> 签名时首先由验证公钥和消息的哈希计算出一个固定的64字节消息代表值mu；NIST确认mu可以在外部计算，例如在HSM工作流中，从而避免预哈希验证与直接验证之间的歧义。<sup>[7](https://datatracker.ietf.org/doc/html/draft-connolly-cfrg-ml-dsa-security-considerations)</sup> 默认情况下ML-DSA使用对冲签名，将新鲜随机性与预计算随机性结合，以缓解侧信道和随机数生成器缺陷攻击；确定性变体被允许，但在存在侧信道顾虑时不推荐使用。<sup>[3](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf)</sup>

FN-DSA定义了两个参数集，FN-DSA-512和FN-DSA-1024，公钥分别为897和1793字节，私钥种子为32字节；它仅提供随机化签名，因为若浮点实现错误导致同一哈希产生不同签名，确定性签名可能带来危险。<sup>[5](https://datatracker.ietf.org/doc/html/draft-ietf-lamps-fn-dsa-certificates-00)</sup> SLH-DSA通过从默克尔树构成的超树中选择一个伪随机少次签名（FTS）密钥对进行签名；签名携带FTS签名加上超树认证路径，验证时从签名重新计算公钥。其WOTS+一次性密钥每个最多只能签署一条消息，并附加校验和。<sup>[8](https://sphincs.org/data/sphincs+-r3.1-specification.pdf)</sup>

## 起源

后量子密码标准化进程以公开征集提案启动；共提交82个候选算法，2020年7月有七个决赛者和八个备选者进入第三轮，签名类决赛者包括Dilithium、FALCON和Rainbow。<sup>[26](https://public-inspection.federalregister.gov/2024-17956.pdf?1723553115),%20[9](https://www.etsi.org/deliver/etsi_tr/103600_103699/103616/01.01.01_60/tr_103616v010101p.pdf)</sup> 2022年7月，NIST宣布将为签名标准化CRYSTALS-Dilithium、FALCON和SPHINCS+，推荐Dilithium作为首要实现算法，并发布了新一轮签名提案征集。<sup>[9](https://csrc.nist.gov/pubs/ir/8413/final)</sup> CRYSTALS-Dilithium方案由莱奥·杜卡斯（Léo Ducas）及其同事在2018年发表于IACR Transactions on Cryptographic Hardware and Embedded Systems的论文中描述。<sup>[10](https://doi.org/10.46586/tches.v2018.i1.238-268)</sup> SPHINCS是SLH-DSA背后的无状态基于哈希的签名方案，由丹尼尔·J·伯恩斯坦（Daniel J. Bernstein）及其同事于2014年描述。最终的[FIPS 203](https://www.edgepedia.org/zh/fips-203)、204和205于2024年8月发布。<sup>[1](https://csrc.nist.gov/projects/post-quantum-cryptography/)</sup>

## 变体

三项NIST标准差异显著。在NIST于2024年标准化的两种后量子签名算法中，ML-DSA在签名与验证速度、算法复杂度和安全性之间提供了最佳平衡。<sup>[11](https://link.springer.com/article/10.1007/s11227-025-07669-x)</sup><sup> • </sup><sup>[27](https://csrc.nist.gov/projects/digital-signatures)</sup> FN-DSA（原Falcon）签名小得多，但依赖浮点运算，而浮点运算被认为难以安全实现以抵御侧信道；FN-DSA与Falcon不兼容。<sup>[20](https://datatracker.ietf.org/doc/html/draft-ietf-lamps-fn-dsa-certificates-00),%20[2](https://www.ietf.org/archive/id/draft-prabel-pquip-pqc-guidance-01.html)</sup> SLH-DSA公钥极小，但签名为7,856至49,856字节。<sup>[2](https://www.ietf.org/blog/iab-pq-workshop-cfp/)</sup> 此外，有状态基于哈希的方案（HSS、XMSS、XMSSMT）在NIST SP 800-208下获得批准，并在RFC 9802中规定用于X.509；它们面向受严格控制环境中的固件和软件签名，而非终端实体证书。<sup>[12](https://www.rfc-editor.org/rfc/rfc9802.html)</sup> NIST的附加签名进程于2023年6月收到50份提交，接受40份为第一轮候选，并选出14份进入第二轮（2024年10月至2026年5月），包括HAWK、MAYO、SQIsign和UOV；据戈尔扬·阿拉吉奇（Gorjan Alagic）及其同事在NIST IR 8610中报告，2026年5月有九项进入第三轮。<sup>[13](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8610.pdf)</sup> HAWK是一种类似于Falcon的格哈希签名方案，在安全类别1下使用纯整数运算提供555字节签名。<sup>[13](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8610.pdf)</sup>

## 应用

基准测试显示了权衡关系。签署1 GB文件时，Dilithium5平均耗时3.31秒，RSA为2.56秒，量子抗性的开销约为27.7%。<sup>[14](https://www.iris.sssup.it/retrieve/58182a8a-8861-4eb8-90ff-43b227ee1eb4/Performance%20analysis%20of%20PQC%20algorithms%20for%20digital%20signature_applsci-14-04994-v2.pdf)</sup> 在商用硬件上，Falcon-512签名耗时2.29至2.60毫秒，验证耗时0.18至0.20毫秒，而ML-DSA-87签名耗时2.03至3.36毫秒，验证耗时0.91至0.99毫秒。<sup>[11](https://link.springer.com/article/10.1007/s11227-025-07669-x)</sup> 在超过31,000次运行的区块链基准测试中，ML-DSA在ARM笔记本电脑上以安全级别5验证耗时0.14毫秒，ECDSA为0.88毫秒。<sup>[15](https://arxiv.org/pdf/2510.09271)</sup> 已发表的比较在Falcon密钥生成上存在分歧：一项工作报告Dilithium在密钥生成上约快100倍，另一项报告Falcon-512密钥生成为20至88毫秒，是三种方案中最快的。<sup>[20](https://eprint.iacr.org/2022/1225.pdf),%20[18](https://link.springer.com/article/10.1007/s11227-025-07669-x)</sup>

部署正在进行中。ML-DSA和SLH-DSA的X.509约定已作为RFC 9881和RFC 9909发布；OpenSSL 3.5.0于2025年4月加入ML-DSA，WebPKI ML-DSA证书预计于2027年初推出。<sup>[23](https://www.ietf.org/blog/iab-pq-workshop-cfp/),%20[5](https://blog.cloudflare.com/ml-dsa-will-have-to-do/)</sup> NSA的CNSA 2.0套件将软件和固件签名指定为紧急用例，推荐使用带SHA-256/192的Leighton-Micali（LMS），新软件和固件须在2025年前使用CNSA 2.0签名，所有已部署软件和固件须在2030年前完成迁移。<sup>[16](https://media.defense.gov/2025/May/30/2003728741/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS.PDF)</sup> 迁移期间，复合ML-DSA签名将ML-DSA与传统算法结合，两者均需验证通过；一种使用强嵌套的混合ECDSA加Dilithium构造即使一方被攻破也能保持各组成部分的安全保证，并已在谷歌的OpenSK固件中实现。<sup>[24](https://www.ietf.org/blog/iab-pq-workshop-cfp/),%20[20](https://eprint.iacr.org/2022/1225.pdf)</sup>

## 局限与替代方案

侧信道是主要的实现风险。针对Dilithium的Cortex-M4实现的剖析功耗分析攻击，通过瞄准生成向量y的位解包函数，基本实现了完整密钥恢复；仅恢复\( s_{1} \)就足以签署几乎任意消息，且该攻击对确定性和随机化变体均有效，因为所针对的步骤为两者共有。<sup>[17](https://eprint.iacr.org/2022/106.pdf)</sup> 针对FPGA实现，对多项式乘法的CPA攻击以70,000条迹线获取了部分密钥，而一阶掩码Dilithium比未掩码版本约慢五倍。<sup>[23](https://dl.acm.org/doi/pdf/10.1145/3779208.3785290),%20[22](https://eprint.iacr.org/2022/106.pdf)</sup> 确定性ML-DSA签名易受故障注入攻击：同一消息上的正确签名和故障签名可能因中间值y重复而泄露签名密钥，对冲签名可缓解此问题。<sup>[7](https://datatracker.ietf.org/doc/html/draft-connolly-cfrg-ml-dsa-security-considerations)</sup> FN-DSA的浮点签名难以保护，软件模拟约慢20倍，大致与RSA-2048一样慢。<sup>[18](https://blog.cloudflare.com/ml-dsa-will-have-to-do/)</sup> 有状态基于哈希的方案若状态管理不当会灾难性失败：实现不得在私钥索引更新之前输出签名，私钥需要记录签名日志。<sup>[25](https://www.rfc-editor.org/rfc/rfc8391.html),%20[16](https://www.rfc-editor.org/rfc/rfc9802.html)</sup> 尺寸开销仍是实际成本：ML-DSA-65证书链比Ed25519证书链大近55倍。<sup>[2](https://www.ietf.org/blog/iab-pq-workshop-cfp/)</sup>

Rainbow的破解表明多变量假设可能在后期失效；尽管近期对UOV、MAYO和SNOVA存在攻击，NIST仍推进了所有在考虑中的多变量方案，同时预期标准化时间线会更长。<sup>[19](https://www.etsi.org/deliver/etsi_tr/103600_103699/103616/01.01.01_60/tr_103616v010101p.pdf),%20[10](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8610.pdf)</sup> FN-DSA的可用性是一个节奏问题：[Cloudflare](https://www.edgepedia.org/zh/cloudflare)预计它在2033年之前不会广泛可用。<sup>[18](https://blog.cloudflare.com/ml-dsa-will-have-to-do/)</sup>

## References

1. [Post-Quantum Cryptography | CSRC](https://csrc.nist.gov/projects/post-quantum-cryptography/)
2. [IETF: Post-Quantum Authentication: Up Next](https://www.ietf.org/blog/iab-pq-workshop-cfp/)
3. [FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf)
4. [CRYSTALS-Dilithium specification](https://pq-crystals.org/dilithium/data/dilithium-specification.pdf)
5. [draft-ietf-lamps-fn-dsa-certificates-00](https://datatracker.ietf.org/doc/html/draft-ietf-lamps-fn-dsa-certificates-00)
6. [RFC 8391: XMSS: eXtended Merkle Signature Scheme](https://www.rfc-editor.org/rfc/rfc8391.html)
7. [draft-connolly-cfrg-ml-dsa-security-considerations-02](https://datatracker.ietf.org/doc/html/draft-connolly-cfrg-ml-dsa-security-considerations)
8. [SPHINCS+ r3.1 Specification](https://sphincs.org/data/sphincs+-r3.1-specification.pdf)
9. [NIST IR 8413, Status Report on the Third Round of the NIST Post-Quantum Cryptography Standardization Process](https://csrc.nist.gov/pubs/ir/8413/final)
10. [Léo Ducas and colleagues (2018). CRYSTALS-Dilithium: A Lattice-Based Digital Signature Scheme. IACR Transactions on Cryptographic Hardware and Embedded Systems.](https://doi.org/10.46586/tches.v2018.i1.238-268)
11. [Enhancing trust of deep learning models with post-quantum digital signatures (J. Supercomputing)](https://link.springer.com/article/10.1007/s11227-025-07669-x)
12. [RFC 9802: Use of the HSS and XMSS Hash-Based Signature Algorithms in Internet X.509 PKI](https://www.rfc-editor.org/rfc/rfc9802.html)
13. [NIST IR 8610: Status Report on the Second Round of the Additional Digital Signature Schemes](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8610.pdf)
14. [Performance Analysis of Post-Quantum Cryptography Algorithms for Digital Signature (Applied Sciences)](https://www.iris.sssup.it/retrieve/58182a8a-8861-4eb8-90ff-43b227ee1eb4/Performance%20analysis%20of%20PQC%20algorithms%20for%20digital%20signature_applsci-14-04994-v2.pdf)
15. [Benchmarking PQC digital signatures against ECDSA for blockchain (31,000+ runs, x64 and ARM)](https://arxiv.org/pdf/2510.09271)
16. [NSA Commercial National Security Algorithm Suite 2.0 (CNSA 2.0) algorithms](https://media.defense.gov/2025/May/30/2003728741/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS.PDF)
17. [Profiling Side-Channel Attacks on Dilithium (Marzougi, Ulitzsch, Tibouchi, Seifert)](https://eprint.iacr.org/2022/106.pdf)
18. [Why we cannot wait for better post-quantum signature algorithms (Cloudflare blog)](https://blog.cloudflare.com/ml-dsa-will-have-to-do/)
19. [www.etsi.org](https://www.etsi.org/deliver/etsi_tr/103600_103699/103616/01.01.01_60/tr_103616v010101p.pdf), [10](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8610.pdf)
20. [datatracker.ietf.org](https://datatracker.ietf.org/doc/html/draft-ietf-lamps-fn-dsa-certificates-00), [2](https://www.ietf.org/archive/id/draft-prabel-pquip-pqc-guidance-01.html)
21. [csrc.nist.gov](https://csrc.nist.gov/projects/post-quantum-cryptography/), [2](https://www.ietf.org/archive/id/draft-prabel-pquip-pqc-guidance-01.html)
22. [blog.cloudflare.com](https://blog.cloudflare.com/ml-dsa-will-have-to-do/), [2](https://www.ietf.org/archive/id/draft-prabel-pquip-pqc-guidance-01.html)
23. [www.ietf.org](https://www.ietf.org/blog/iab-pq-workshop-cfp/), [5](https://blog.cloudflare.com/ml-dsa-will-have-to-do/)
24. [www.ietf.org](https://www.ietf.org/blog/iab-pq-workshop-cfp/), [20](https://eprint.iacr.org/2022/1225.pdf)
25. [www.rfc-editor.org](https://www.rfc-editor.org/rfc/rfc8391.html), [16](https://www.rfc-editor.org/rfc/rfc9802.html)
26. [public-inspection.federalregister.gov](https://public-inspection.federalregister.gov/2024-17956.pdf?1723553115), [9](https://www.etsi.org/deliver/etsi_tr/103600_103699/103616/01.01.01_60/tr_103616v010101p.pdf)
27. [Digital Signatures, CSRC](https://csrc.nist.gov/projects/digital-signatures)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 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/post-quantum-digital-signature

English original: https://www.edgepedia.org/post-quantum-digital-signature
