AES itself is not the weak point in most systems that use it: the failures come from the wrong mode, a repeated nonce, a missing integrity check or a key that is handled badly. All three AES key sizes remain approved, NIST and the UK NCSC both say quantum computers do not force a change, and the open questions are about modes of operation, several of which NIST is revising. This guide sets out the current status of AES as of November 2026, which modes are safe for which job, why Grover's algorithm barely moves the picture, and the implementation mistakes that cause real breaks. It is written for developers, crypto architects and reviewers who need a defensible answer to "is our AES use still fine?". For the mechanics of each mode, see the Authenticated Encryption and Block Cipher Modes Guide.
Key takeaways
- All three key sizes are approved. FIPS 197 (updated May 2023, no technical change) specifies AES-128, AES-192 and AES-256 with a 128-bit block, and NIST says applications can keep using all three.
- Quantum does not force a key size change. NIST's post-quantum FAQ expects AES-128 to "remain secure for decades to come", and the NCSC says AES with at least 128-bit keys can continue to be used.
- Mode choice matters more than key size. Use an authenticated mode (GCM or CCM) for messages, XTS for storage sectors and KW or KWP for wrapping keys; ECB is proposed for retirement as a confidentiality mode in the SP 800-131A Rev. 3 draft.
- Nonce reuse is the classic break. SP 800-38D caps the chance of a repeated GCM IV under one key at 2^-32 and limits random-IV keys to 2^32 encryptions, so counters, rekeying or a misuse-resistant mode are design decisions, not afterthoughts.
- Several mode standards are moving. NIST is revising SP 800-38D (GCM), SP 800-38E (XTS, draft Rev. 1 published September 2026) and SP 800-38G (format-preserving encryption), so track the drafts rather than treating 2007 to 2010 texts as frozen.
AES at a glance
AES is the Rijndael block cipher as standardised by NIST in FIPS 197 in November 2001. It encrypts 128-bit blocks under a 128, 192 or 256-bit key, using 10, 12 or 14 rounds respectively. The May 2023 update (FIPS 197 Upd1) rewrote the text, added diagrams for the three key schedules and refreshed references, and NIST states it "makes no technical changes" to the algorithm. AES on its own only transforms single blocks; everything a system actually does with it (encrypting a message, a disk or a key) depends on a mode of operation from the SP 800-38 series.
| Item | Current status (checked November 2026) | Source |
|---|---|---|
| Algorithm | Final, FIPS 197 Upd1 (9 May 2023) supersedes the 2001 edition, no technical change | NIST FIPS 197 |
| Transition rules | SP 800-131A Rev. 2 in force; Rev. 3 initial public draft published 21 October 2024 (comments closed 4 December 2024) proposes retiring ECB for confidentiality and moving from 112-bit to 128-bit security strength | NIST SP 800-131A Rev. 3 ipd |
| Post-quantum transition | NIST IR 8547 final published 27 October 2026; it covers public-key signatures and key establishment, not AES | NIST IR 8547 |
| GCM | SP 800-38D Final (November 2007); NIST decided on 6 March 2024 to revise it and issued a pre-draft call for comments on 6 January 2025 | NIST SP 800-38D, Block Cipher Modes project |
| XTS-AES | SP 800-38E Final (January 2010); Rev. 1 initial public draft published 3 September 2026, referencing IEEE Std 1619-2025 and clarifying scope, data-unit and key-scope limits | NIST SP 800-38E Rev. 1 ipd |
| Format-preserving encryption | SP 800-38G Rev. 1 second public draft called for comments on 3 February 2025 | NIST Block Cipher Modes project |
Drafts change between versions. Treat the Rev. 3 and Rev. 1 proposals above as direction of travel and confirm the final text before writing them into policy as hard dates.
Approved key sizes
NIST rates AES-128 at 128 bits of classical security strength, AES-192 at 192 and AES-256 at 256. NIST's guidance is that anything under 112 bits of classical security should not be used, and the SP 800-131A Rev. 3 draft discusses raising the floor to 128 bits. Every AES key size already clears that bar, so the 112-to-128 transition affects algorithms such as two-key and three-key Triple DES and 2048-bit RSA, not AES. NIST also uses AES key search as the yardstick for its post-quantum security categories: Category 1 is defined as at least as hard to break as key search on AES-128, Category 3 as AES-192 and Category 5 as AES-256.
| Key size | Rounds | Classical strength | NIST status | Quantum margin (Grover, idealised) | Typical choice |
|---|---|---|---|---|---|
| AES-128 | 10 | 128 bits | Approved; NIST expects it to stay secure for decades | Nominally 64-bit search, but NIST notes Grover's steps must run in series, so the real advantage is expected to be small or none | General purpose default where no policy mandates more |
| AES-192 | 12 | 192 bits | Approved; "safe for a very long time" per NIST FAQ | Nominally 96-bit search | Rarely chosen; few protocols define suites for it |
| AES-256 | 14 | 256 bits | Approved; "safe for a very long time" per NIST FAQ | Nominally 128-bit search | Long-lived data, policy-driven environments and national security profiles |
Decision guidance: pick AES-256 when a policy or customer contract requires it, when data must stay confidential for several decades, or when the cost difference is negligible (on CPUs with AES instructions it usually is). AES-128 remains a sound engineering choice for high-volume traffic and constrained devices. What should not happen is a migration project that swaps 128 for 256 while leaving ECB, unauthenticated CBC or reused nonces in place; that spends effort on the part that was not broken.
Safe and unsafe modes
NIST approves the modes in SP 800-38A to 38G. Approval does not mean "fit for any purpose": each mode answers a specific job, and several give confidentiality without integrity. The OWASP Cryptographic Storage Cheat Sheet puts it plainly: where available, authenticated modes should always be used, GCM and CCM first, with CTR or CBC only as fallbacks that need separate authentication such as encrypt-then-MAC.
| Mode | Standard | Use it for | Integrity? | Watch out for |
|---|---|---|---|---|
| GCM (and GMAC) | SP 800-38D | Messages, records, API payloads, TLS 1.3 and IPsec traffic | Yes (AEAD) | IV uniqueness, 2^32 limit for random IVs, short tags |
| CCM | SP 800-38C | Constrained and IoT protocols where a single AES core serves both encryption and MAC | Yes (AEAD) | Nonce uniqueness; message length must be known in advance |
| XTS-AES | SP 800-38E (Rev. 1 draft) | Full-disk and sector-level storage encryption | No | Not for messages or files in transit; NIST states it does not authenticate data or its source |
| KW, KWP, TKW | SP 800-38F | Wrapping keys for storage or transport | Yes (for key material) | Use for keys, not bulk data |
| CMAC | SP 800-38B | Message authentication with AES | Yes (MAC only) | Provides no confidentiality |
| FF1 | SP 800-38G | Format-preserving encryption of structured fields such as card numbers | No | Small domains need careful review; standard under revision |
| CTR, CBC, CFB, OFB | SP 800-38A | Building blocks, legacy protocols | No | Must be paired with a MAC (encrypt-then-MAC); CBC without a MAC invites padding oracle attacks |
| ECB | SP 800-38A | Single-block operations inside other constructions only | No | Identical plaintext blocks give identical ciphertext blocks; proposed for retirement as a confidentiality mode |
ECB and unauthenticated CBC
ECB encrypts each block independently, so repeated plaintext blocks show up as repeated ciphertext blocks and structure leaks straight through. OWASP says it should not be used outside very specific circumstances, and the SP 800-131A Rev. 3 draft proposes retiring it as a confidentiality mode. Unauthenticated CBC is the quieter risk: if a system decrypts attacker-supplied ciphertext and reveals, through an error message or a timing difference, whether the padding was valid, an attacker can recover plaintext without the key. The fix is not a better padding check but integrity first: verify a MAC (or use an AEAD) before any decryption result is acted on.
Nonce reuse
GCM is counter mode plus a polynomial authenticator. Reusing an IV under the same key repeats the keystream, which exposes the XOR of the two plaintexts, and also gives an attacker what they need to forge authentication tags. SP 800-38D therefore requires that the probability of the same IV and key ever being used on two distinct inputs is no greater than 2^-32, and that a key using random IVs is invoked no more than 2^32 times. Practical responses:
- Deterministic construction: build the 96-bit IV from a fixed field plus a counter that is persisted and never rolls back (watch out for VM snapshots, restored backups and cloned containers).
- Rekey by volume: rotate the data key well before 2^32 encryptions where IVs are random; envelope encryption with a fresh data key per object avoids the limit entirely.
- Misuse-resistant modes: AES-GCM-SIV (RFC 8452, an IRTF Informational RFC from April 2019) is designed so that a repeated nonce reveals only whether two messages were identical. Check whether it is inside your compliance boundary before choosing it.
- Short tags: SP 800-38D allows 32 and 64-bit tags only for certain applications, with per-key limits on packet length and decryption attempts in its Appendix C. Default to 128-bit tags.
Quantum outlook
Grover's algorithm lets a quantum computer search a key space in roughly the square root of the classical number of steps, which is where the folk rule "quantum halves symmetric key strength" comes from. NIST's FAQ explains why that rule overstates the risk: Grover's steps have to be performed in series, the speed-up is hard to parallelise, and quantum hardware is expected to be costly. On that basis NIST expects little or no advantage against AES, says AES-128 will remain secure for decades, and says AES-192 and AES-256 will be safe for a very long time. It adds the necessary caveat that this holds only if no new classical or quantum weakness in AES is found, and that NIST will issue transition guidance for symmetric algorithms if a need becomes foreseeable. The NCSC's post-quantum white paper reaches the same conclusion: symmetric cryptography is not significantly affected, and existing algorithms with at least 128-bit keys such as AES can continue to be used.
The quantum risk that does matter for AES users sits next to AES, not inside it. Most AES keys are agreed or wrapped with RSA or elliptic-curve key exchange, and those are the algorithms NIST IR 8547 moves off. Data recorded today and protected by a classical key exchange can be decrypted later if the exchange is broken, whatever the AES key size. Fix key establishment with ML-KEM or hybrid exchange; see the Post-Quantum Algorithms Compared and the Post-Quantum Migration for NHIs Guide.
Implementation pitfalls
Real AES failures are almost always implementation failures. The patterns below appear repeatedly in code review and incident work.
- Hard-coded or shared static keys: a key compiled into a product or shared across customers turns one extraction into a fleet-wide compromise. The Gladinet hard-coded keys case shows static AES keys being used to forge access tickets. Keys belong in a KMS or HSM, generated per tenant or per object.
- Library defaults that pick ECB: some APIs return ECB when a transformation string names only the algorithm. Always name the mode, padding and tag length explicitly, and fail the build on a bare "AES".
- Decrypt-then-verify: releasing plaintext, or acting on a padding error, before checking integrity recreates padding oracles. AEAD APIs that return nothing until the tag verifies avoid this.
- Counter state lost on restore: deterministic IV counters reset by snapshots or failover silently reuse nonces. Bind the IV's fixed field to the instance and persist counters before use.
- XTS used outside storage: XTS has no integrity and its tweak model assumes sector addressing; using it for files in transit or database fields loses tamper detection.
- Software AES with table lookups: table-based implementations can leak key bits through cache timing on shared hardware. Prefer hardware AES instructions or a vetted constant-time library inside a validated module. See the AES-GCM vs ChaCha20-Poly1305 comparison for platforms without AES acceleration.
How to bring an estate into line
- Inventory: list every AES use with key size, mode, IV construction, tag length and key storage. A CBOM makes this repeatable; see the Cryptographic Inventory and CBOM Guide.
- Triage: fix ECB for data, unauthenticated CBC or CTR on attacker-reachable inputs, and random-IV GCM keys near the 2^32 limit first. Key size changes come last.
- Change behind a version tag: write new ciphertext with a format version byte so readers can decrypt old and new formats during migration; re-encrypt at rest in batches.
- Test: run known-answer tests (NIST CAVP vectors) and negative tests that flip ciphertext and tag bits and confirm decryption fails closed.
- Roll back safely: keep old keys decrypt-only until re-encryption is confirmed, then destroy them under the key management policy.
Detection and measurement
- Static analysis rules that flag ECB, missing mode names, constant IVs and hard-coded keys, tracked as open findings per repository.
- Share of AES uses in the inventory on an authenticated mode (target: all data-in-transit and application-layer encryption).
- Number of keys with random-IV GCM approaching a defined fraction of 2^32 invocations, from KMS usage counters.
- Authentication tag failures per service per day: a spike can mean tampering, corruption or a nonce bug.
- Percentage of cryptographic operations running inside a FIPS 140-3 validated module where that is required; see the FIPS 140-3 Guide.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev. 5 | SC-13 Cryptographic Protection | Use of approved algorithms and modes |
| NIST SP 800-53 Rev. 5 | SC-12 Cryptographic Key Establishment and Management | Key generation, storage, rotation and destruction |
| NIST SP 800-53 Rev. 5 | SC-8 and SC-28 | Protection of data in transit and at rest |
| NIST CSF 2.0 | PR.DS-01, PR.DS-02 | Data-at-rest and data-in-transit protection outcomes |
| ISO/IEC 27001:2022 Annex A | A.8.24 Use of cryptography | Rules for effective use of cryptography and key management |
Practitioner checklist
- Confirm every AES use names its mode explicitly, and that no data path uses ECB.
- Replace unauthenticated CBC or CTR on attacker-reachable inputs with GCM or CCM, or add encrypt-then-MAC with verification before decryption.
- Document the IV construction for every GCM key and enforce rekeying before 2^32 encryptions where IVs are random.
- Use 128-bit authentication tags unless a protocol mandates otherwise and the Appendix C limits are enforced.
- Restrict XTS to storage devices and KW or KWP to key wrapping.
- Keep keys in a KMS or HSM, unique per tenant or object, never hard-coded.
- Choose AES-256 where policy or data lifetime requires it; do not treat a key size bump as a quantum fix.
- Prioritise post-quantum key establishment for systems whose AES keys are exchanged with RSA or ECDH.
- Track the SP 800-38D, SP 800-38E Rev. 1 and SP 800-131A Rev. 3 drafts and review this status at least yearly.
Standards and references
- NIST: FIPS 197 Advanced Encryption Standard (AES)
- NIST: Block Cipher Techniques, Current Modes
- NIST: SP 800-38D Galois/Counter Mode (GCM) and GMAC
- NIST: SP 800-38E Rev. 1 (Initial Public Draft) XTS-AES Mode
- NIST: SP 800-131A Rev. 3 (Initial Public Draft) Transitioning the Use of Cryptographic Algorithms and Key Lengths
- NIST: Post-Quantum Cryptography FAQs
- NCSC: Next steps in preparing for post-quantum cryptography
- IRTF: RFC 8452 AES-GCM-SIV Nonce Misuse-Resistant Authenticated Encryption
Related NHI Mgmt Group resources: Authenticated Encryption and Block Cipher Modes Guide · Deprecated Cryptographic Algorithms · Cryptographic Protocol Failures and Misuse Guide · Crypto-Agility Guide · Cryptographic Key Management Policy Template