Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Block Cipher

Direct answer

A block cipher encrypts fixed-size blocks, such as AES's 128 bits, and needs a mode of operation like GCM, CBC or CTR to encrypt longer data securely.

When to use this

Use this when using block ciphers and choosing modes.

First 30 seconds

1. Block ciphers encrypt fixed-size blocks; modes make them usable for data streams.

2. Never ECB (patterns leak).

3. Prefer AEAD (GCM).

4. XTS for disks.

5. 64-bit block ciphers are obsolete.

Operational verification

block cipher + mode → ciphertext

Context & applicabilityCommon mistakes · platform/version boundaries
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 using block ciphers and choosing modes.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Using ECB mode.
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
  • Block ciphers encrypt fixed-size blocks.
  • A mode of operation is needed for longer data.
  • Prefer AEAD modes like GCM.
Key checks
  • Mode of operation in use — GCM/CTR/CBC/XTS
  • Padding handling (CBC) — oracle risk
  • Block size (128-bit) — birthday bounds
ReferenceWhy it matters1 section · depth on demand

Modes of operation

ModePropertiesUse
ECBSame plaintext → same ciphertext; leaks patternsNever for data
CBCNeeds random IV and separate MACLegacy TLS/IPsec
CTRTurns a block cipher into a stream cipherBuilding block
GCMCTR + authentication (AEAD)TLS, IPsec, storage
XTSDesigned for disk sectorsFull-disk encryption
ReferenceHow it works1 section · depth on demand

In depth

A block cipher encrypts fixed-size blocks of data (128 bits for AES) with a key. To encrypt messages longer than one block, a mode of operation defines how blocks are chained or combined, and the mode determines much of the real-world security.

ModeTypeNotes
ECBEach block independentLeaks patterns — never use
CBCChained, needs IV and paddingLegacy; padding oracle risks
CTRTurns block cipher into stream cipherNeeds unique nonce
GCMCTR + authenticationStandard AEAD
XTSTweakable, for storageDisk encryption

Use authenticated (AEAD) modes for data in transit and generally wherever possible.

ReferenceImportant terms & boundaries2 sections · depth on demand

Modes compared

ModeAuthenticatedParallelNotes
ECBNoYesNever use — reveals patterns
CBCNoDecrypt onlyNeeds HMAC; padding oracle risk
CTRNoYesNever reuse a nonce
GCMYesYesStandard choice
XTSNoYesDisk encryption only
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 → Block Cipher. 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?