Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Encryption Algorithms

Direct answer

IPsec encryption algorithms protect the data: use AES-GCM (128 or 256) or AES-CBC with a separate integrity algorithm. DES and 3DES are obsolete and should be disabled.

When to use this

Use this when choosing IPsec encryption algorithms.

First 30 seconds

1. Use AES-GCM (128/256) or ChaCha20-Poly1305.

2. AES-CBC with HMAC-SHA2 acceptable.

3. No DES/3DES/NULL.

4. Match on both sides.

5. Hardware acceleration (AES-NI).

Operational verification

proposal → negotiated cipher → encryption

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Leaving DES/3DES in proposals for compatibility; peers may negotiate them.
  • Mismatched proposals (AES-CBC-256 vs AES-GCM-256) causing phase 2 failures.
  • Using AES-GCM in phase 2 with a separate integrity algorithm configured — GCM already provides integrity.
  • Not checking hardware acceleration support, which can cap throughput.
Platform / version applicability
Network security
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.

PlatformNetwork security
Scope / prerequisiteUse this when choosing IPsec encryption algorithms.
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
  • Use AES-GCM, or AES-CBC with a separate integrity algorithm.
  • DES and 3DES are obsolete.
  • Both peers must match.
Key checks
  • ip xfrm state | grep -E 'aead|enc' — algorithm in use
  • Proposal: AES-GCM-256 or AES-CBC-256 + SHA-256 — config
  • Disallowed: DES, 3DES, NULL — audit
ReferenceWhy it matters1 section · depth on demand

Recommended choices

UseAvoid
AES-GCM-128 / AES-GCM-256 (encryption + integrity)DES, 3DES
AES-CBC-128/256 with HMAC-SHA-256 or betterNull encryption

Both peers must offer at least one matching proposal; mismatches show as NO_PROPOSAL_CHOSEN in IKE debugs or logs.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Encryption algorithms in IPsec protect the confidentiality of IKE and ESP traffic. Both peers must support and agree on at least one; proposals are offered in order of preference.

AlgorithmRecommendation
AES-GCM-256 / AES-GCM-128Preferred (AEAD; no separate integrity needed for ESP)
AES-CBC-256/128Acceptable with SHA-256+ integrity
ChaCha20-Poly1305Supported by some implementations (strongSwan)
3DES, DESRemove

Remove weak algorithms from proposals rather than just ordering strong ones first — an attacker or misconfigured peer could otherwise negotiate down. Check hardware crypto support: some platforms only accelerate certain algorithms.

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 docNetwork security current

Authoritative/upstream documentation reviewed for bounded claims in IPsec → Encryption Algorithms. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%
Confirmation

Confirm action

Continue?