Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

AES

Direct answer

AES (Advanced Encryption Standard) is the standard symmetric block cipher with 128-bit blocks and 128, 192 or 256-bit keys. It has hardware acceleration (AES-NI) and is used in TLS, IPsec, BitLocker and Wi-Fi.

When to use this

Use this when choosing AES for encryption.

First 30 seconds

1. AES: 128-bit block cipher with 128/192/256-bit keys.

2. Secure when used in good modes.

3. Hardware accelerated (AES-NI).

4. GCM for AEAD.

5. Avoid ECB and unauthenticated CBC.

Operational verification

plaintext blocks + key → AES rounds → ciphertext

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Keys derived from passwords with plain SHA-256 instead of a KDF (Argon2id, PBKDF2).
  • Static IVs.
  • Using AES-CBC without a MAC.
  • Not rotating keys after a large amount of data or a suspected leak.
Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Scope / prerequisiteUse this when choosing AES for encryption.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • AES uses 128-bit blocks with 128, 192 or 256-bit keys.
  • Use GCM or another AEAD mode.
  • AES-NI makes it fast on modern CPUs.
Key checks
  • openssl speed -evp aes-128-gcm — AES performance
  • grep -c aes /proc/cpuinfo — AES-NI
  • Mode used (GCM/CTR/CBC) — configuration
ReferenceWhy it matters1 section · depth on demand

Using AES correctly

AES itself is secure; problems come from how it is used:

  • Choose an authenticated mode (GCM, or CCM) instead of ECB/CBC without integrity.
  • Never reuse a nonce/IV with the same key in GCM or CTR.
  • Protect keys in a KMS or HSM and rotate them.

AES-NI CPU instructions make AES fast on most servers and laptops.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

AES (Advanced Encryption Standard) is the dominant symmetric block cipher, standardised by NIST in 2001. It encrypts 128-bit blocks with 128-, 192- or 256-bit keys and is hardware-accelerated on modern CPUs (AES-NI), making it fast enough for disks, VPNs and TLS at line rate.

ModeProperties
GCMAuthenticated encryption (confidentiality + integrity), parallel — standard choice
CCMAuthenticated; used in Wi-Fi (CCMP)
XTSDisk encryption
CBCLegacy; needs separate MAC and careful padding handling
ECBNever use — identical blocks give identical ciphertext

The security of AES in practice depends on correct use: unique IVs/nonces per key (critical for GCM), proper key management, and authenticated modes.

ReferenceConfiguration & state1 section · depth on demand

Example (OpenSSL)

openssl enc -aes-256-cbc -pbkdf2 -iter 600000 -salt -in file.txt -out file.enc
openssl enc -d -aes-256-cbc -pbkdf2 -iter 600000 -in file.enc -out file.txt

Documented example, not captured output. openssl enc does not support GCM; for authenticated file encryption prefer age or GPG.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

Authoritative/upstream documentation reviewed for bounded claims in Symmetric Cryptography → AES. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/fips/197/final · confidence 94%
Confirmation

Confirm action

Continue?