# 高级加密标准

高级加密标准（Advanced Encryption Standard，AES）是[美国国家标准与技术研究院](https://www.edgepedia.org/zh/national-institute-of-standards-and-technology)（NIST）在联邦信息处理标准FIPS 197中规定的对称分组密码，用于以128位分组、128位、192位或256位密钥对数据进行加密和解密。<sup>[1](https://csrc.nist.gov/pubs/fips/197/final)</sup>它是当前使用最广泛的分组密码，保护着全球的网络流量、磁盘与文件存储以及政府数据。<sup>[2](https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-encryption-standard-instructions-aes-ni.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 标准 | FIPS 197，2001年11月26日发布；2023年5月9日更新，仅作编辑性修改，未对算法作技术性改动<sup>[1](https://csrc.nist.gov/pubs/fips/197/final)</sup> |
| 起源 | 赖恩达尔（Rijndael），由琼·达门（Joan Daemen）和文森特·赖门（Vincent Rijmen）设计，于2000年10月2日被选为AES竞赛的获胜者<sup>[3](https://www.nist.gov/timelinelist)</sup><sup> • </sup><sup>[4](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup> |
| 变体 | AES-128、AES-192和AES-256：128位分组，分别进行10、12或14轮运算<sup>[5](https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.197.pdf)</sup> |
| 常用模式 | 伽罗瓦/计数器模式（GCM），在NIST SP 800-38D中规定，提供带关联数据的认证加密<sup>[6](https://csrc.nist.gov/pubs/sp/800/38/d/final)</sup> |
| 硬件支持 | 英特尔AES-NI（2010年，西摩微架构）提供六条指令，相比软件实现可将AES加速3至10倍<sup>[2](https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-encryption-standard-instructions-aes-ni.html)</sup> |
| 密码分析 | 双团攻击是对完整AES进行密钥恢复的攻击，比穷举搜索更快，但加速幅度仅为一个较小的常数倍<sup>[7](https://nvlpubs.nist.gov/nistpubs/ir/2021/NIST.IR.8319.pdf)</sup> |
| TLS中的作用 | TLS 1.3要求每个合规实现都必须支持TLS_AES_128_GCM_SHA256<sup>[8](https://www.rfc-editor.org/info/rfc8446/)</sup> |

## AES竞赛

1997年1月，NIST宣布有意制定一个公开披露的高级加密标准，并于1997年9月12日正式征集候选算法，以替代老化的[数据加密标准](https://www.edgepedia.org/zh/data-encryption-standard)。<sup>[9](https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/archived-crypto-projects/aes-development)</sup>十五种算法进入了第一轮分析。1999年8月，NIST选出了五个入围算法：MARS、RC6、赖恩达尔、Serpent和[Twofish](https://www.edgepedia.org/zh/twofish)。<sup>[9](https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/archived-crypto-projects/aes-development)</sup>

入围算法接受了第二轮更深入的公开评审，包括2000年4月13日至14日在纽约举行的第三次公开候选会议。2000年10月2日，经过三年的竞赛，NIST宣布已选择赖恩达尔作为拟议的AES。<sup>[3](https://www.nist.gov/timelinelist)</sup><sup> • </sup><sup>[9](https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/archived-crypto-projects/aes-development)</sup>选择的一个重要因素是赖恩达尔在软件、硬件、固件和[智能卡](https://www.edgepedia.org/zh/smart-card)实现中始终表现良好。<sup>[4](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup>FIPS 197于2001年11月26日发布，将赖恩达尔家族中的三个成员规定为AES-128、AES-192和AES-256。<sup>[1](https://csrc.nist.gov/pubs/fips/197/final)</sup>

## 算法结构

AES是一种对称分组密码：加密和解密使用同一个秘密密钥。每个变体以128位分组处理数据，每个变体的数字后缀表示其密钥的位长。<sup>[1](https://csrc.nist.gov/pubs/fips/197/final)</sup>密码通过一系列轮次处理分组，轮数取决于密钥大小：128位密钥为10轮，192位为12轮，256位为14轮。<sup>[5](https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.197.pdf)</sup>每一轮对输入状态依次执行一系列步骤，每一轮使用由原始密码密钥经密钥调度生成的子密钥。<sup>[2](https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-encryption-standard-instructions-aes-ni.html)</sup>

2023年对FIPS 197的更新增加了三种密钥调度的图示，并更新了前言和定义，但未对算法作任何技术性改动。<sup>[1](https://csrc.nist.gov/pubs/fips/197/final)</sup>

## 工作模式

分组密码只能加密固定大小的分组，因此实际使用需要一种工作模式。NIST SP 800-38D规定了[伽罗瓦/计数器模式](https://www.edgepedia.org/zh/galois-counter-mode)（GCM），这是一种基于128位分组密码（如AES）的认证加密模式，以及其专用于消息认证而不加密的变体GMAC。<sup>[6](https://csrc.nist.gov/pubs/sp/800/38/d/final)</sup>AES-GCM是广泛部署的TLS密码套件（如TLS_AES_128_GCM_SHA256和TLS_AES_256_GCM_SHA384）的基础。<sup>[8](https://www.rfc-editor.org/info/rfc8446/)</sup>NIST SP 800-38E批准XTS-AES模式用于存储设备，作为保持存储数据机密性的一种手段；然而，该模式既不提供数据本身的认证，也不提供数据来源的认证。<sup>[10](https://csrc.nist.gov/pubs/sp/800/38/e/final)</sup>

GCM存在已知的使用限制。在[TLS 1.3](https://www.edgepedia.org/zh/tls-1-3)下，一条连接上最多可加密约2^24.5个完整大小的记录（约2400万个），同时保持约2^-57的认证加密安全裕度。<sup>[8](https://www.rfc-editor.org/info/rfc8446/)</sup>NIST一直在修订SP 800-38D，部分原因是当以随机方式生成随机数（加密中仅使用一次以确保唯一性的数字）时，允许的调用次数限制为2^32，部分原因是重复使用随机数可能危及认证子密钥。<sup>[11](https://csrc.nist.gov/pubs/sp/800/38/d/r1/iprd)</sup>

## 实现攻击与硬件支持

AES算法本身经受住了广泛的密码分析，但实现可能泄露信息。2005年，丹尼尔·伯恩斯坦（Daniel Bernstein）展示了对AES软件实现的远程缓存时序攻击，表明缓存命中和未命中产生的时序变化可被利用为侧信道。<sup>[12](https://arxiv.org/abs/1403.7297)</sup>针对AES的基于缓存的侧信道攻击成为一个重要研究领域，包括针对常见表驱动软件实现的缓存冲突攻击。<sup>[13](https://www.iacr.org/archive/ches2006/16/16.pdf)</sup>一种通用的防御措施是使每次加密运行相同的时间，基于恒定时间加密的软件对策已被证明可以抵御远程缓存时序攻击。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC4863838/)</sup><sup> • </sup><sup>[15](https://arxiv.org/abs/1403.7293)</sup>

**硬件加速**改变了这一局面。从2010年[英特尔酷睿](https://www.edgepedia.org/zh/intel-core)处理器系列（西摩）开始，AES-NI指令集提供了六条指令：四条执行加密和解密轮，两条用于轮密钥生成。例如，AESENC将ShiftRows、SubBytes、MixColumns和AddRoundKey这四个轮步骤合并为一条指令。AES-NI相比软件可将AES加速3至10倍，并且由于它完全在硬件中执行加密而无需软件查找表，降低了侧信道攻击的风险。<sup>[2](https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-encryption-standard-instructions-aes-ni.html)</sup>在没有此类加速的处理器上，软件AES仍然相对较慢且易受侧信道攻击，这也是为恒定时间软件实现而设计的ChaCha20流密码在TLS等协议中被用作替代方案的原因之一。<sup>[16](https://www.rfc-editor.org/info/rfc8439/)</sup>

## 密码分析现状

NIST 2022年对该标准的审查（NIST IR 8319）梳理了AES密码分析的最新进展。双团攻击是首批比穷举搜索更快地对所有完整版本AES进行密钥恢复的攻击，但它们仍然对缩减轮数后的算法执行穷举搜索，仅获得一个较小常数倍的加速；按照NIST以操作次数定义的安全强度，它们不影响该密码的安全强度。针对完整轮AES存在相关密钥攻击及其他超出单密钥设定的攻击，但这些攻击不适用于所有具有相同密钥和分组大小的分组密码。<sup>[7](https://nvlpubs.nist.gov/nistpubs/ir/2021/NIST.IR.8319.pdf)</sup>2025年《国际信息安全杂志》上的一项调查得出一致结论：AES密码分析的最新理论进展对正确实现的完整轮AES不构成实际威胁。<sup>[17](https://link.springer.com/article/10.1007/s10207-025-01116-x)</sup>

## AES与后量子密码学

AES是对称密码，因此威胁公钥密钥交换的量子算法对它的影响方式不同。NIST于2024年最终确定了首批后量子密码标准，包括用于密钥封装的ML-KEM（FIPS 203），并于2025年3月选择了基于纠错码的HQC作为备用KEM。<sup>[18](https://www.techradar.com/pro/cyber-resilience-in-the-post-quantum-era-the-time-of-crypto-agility)</sup><sup> • </sup><sup>[19](https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf)</sup>这些算法替代了脆弱的公钥机制；AES等对称加密继续与它们一起使用，NIST指南讨论了将后量子密钥建立与对称加密相结合以实现抗量子存储。<sup>[10](https://csrc.nist.gov/pubs/sp/800/38/e/final)</sup>迁移压力是真实的：谷歌将其自身的后量子迁移截止日期提前至2029年，比NIST的指南早六年，而调查显示大多数企业尚未部署量子安全证书。<sup>[20](https://www.techradar.com/pro/googles-pqc-roadmap-puts-traditional-digital-certificates-under-pressure)</sup><sup> • </sup><sup>[21](https://www.itpro.com/security/enterprises-arent-moving-fast-enough-on-post-quantum-cryptography-preparations-harvest-now-decrypt-later-attacks-mean-it-could-cost-them)</sup>

## References

1. [FIPS 197, Advanced Encryption Standard (AES), NIST CSRC](https://csrc.nist.gov/pubs/fips/197/final)
2. [Intel Advanced Encryption Standard Instructions (AES-NI), Intel](https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-encryption-standard-instructions-aes-ni.html)
3. [NIST Timeline: Advanced Encryption Standard, NIST](https://www.nist.gov/timelinelist)
4. [NIST Cyber History: Cryptography, NIST CSRC](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)
5. [FIPS 197, Advanced Encryption Standard (AES), NIST (PDF)](https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.197.pdf)
6. [SP 800-38D, Galois/Counter Mode (GCM) and GMAC, NIST CSRC](https://csrc.nist.gov/pubs/sp/800/38/d/final)
7. [Review of the Advanced Encryption Standard, NIST IR 8319](https://nvlpubs.nist.gov/nistpubs/ir/2021/NIST.IR.8319.pdf)
8. [RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3, RFC Editor](https://www.rfc-editor.org/info/rfc8446/)
9. [Cryptographic Standards and Guidelines: AES Development, NIST CSRC](https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/archived-crypto-projects/aes-development)
10. [SP 800-38E, XTS-AES Mode for Confidentiality on Storage Devices, NIST CSRC](https://csrc.nist.gov/pubs/sp/800/38/e/final)
11. [SP 800-38D Rev. 1, Pre-Draft Call for Comments, NIST CSRC](https://csrc.nist.gov/pubs/sp/800/38/d/r1/iprd)
12. [Countermeasures against Bernstein's remote cache timing attack, arXiv](https://arxiv.org/abs/1403.7297)
13. [Cache-Collision Timing Attacks Against AES, IACR CHES 2006](https://www.iacr.org/archive/ches2006/16/16.pdf)
14. [Report on the Development of the Advanced Encryption Standard (AES), NIST](https://pmc.ncbi.nlm.nih.gov/articles/PMC4863838/)
15. [Constant time encryption as a countermeasure against remote cache timing attacks, arXiv](https://arxiv.org/abs/1403.7293)
16. [RFC 8439: ChaCha20 and Poly1305 for IETF Protocols, RFC Editor](https://www.rfc-editor.org/info/rfc8439/)
17. [A panoramic survey of the Advanced Encryption Standard, International Journal of Information Security](https://link.springer.com/article/10.1007/s10207-025-01116-x)
18. [Cyber resilience in the post-quantum era: the time of crypto-agility, TechRadar](https://www.techradar.com/pro/cyber-resilience-in-the-post-quantum-era-the-time-of-crypto-agility)
19. [Status Report on the Fourth Round of the NIST Post-Quantum Cryptography Standardization Process, NIST IR 8545](https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf)
20. [Google's PQC roadmap puts traditional digital certificates under pressure, TechRadar](https://www.techradar.com/pro/googles-pqc-roadmap-puts-traditional-digital-certificates-under-pressure)
21. [Enterprises aren't moving fast enough on post-quantum cryptography preparations, ITPro](https://www.itpro.com/security/enterprises-arent-moving-fast-enough-on-post-quantum-cryptography-preparations-harvest-now-decrypt-later-attacks-mean-it-could-cost-them)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 20, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Security governance and internet policy › Cryptographic protocols › Protocol standards and specifications

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/advanced-encryption-standard

English original: https://www.edgepedia.org/advanced-encryption-standard
