Use this when choosing AES for encryption.
AES
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.
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.
plaintext blocks + key → AES rounds → ciphertext
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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.
- 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.
openssl speed -evp aes-128-gcm— AES performancegrep -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.
| Mode | Properties |
|---|---|
| GCM | Authenticated encryption (confidentiality + integrity), parallel — standard choice |
| CCM | Authenticated; used in Wi-Fi (CCMP) |
| XTS | Disk encryption |
| CBC | Legacy; needs separate MAC and careful padding handling |
| ECB | Never 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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%