Use this when choosing IPsec encryption algorithms.
Encryption Algorithms
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.
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).
proposal → negotiated cipher → encryption
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
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.
- Use AES-GCM, or AES-CBC with a separate integrity algorithm.
- DES and 3DES are obsolete.
- Both peers must match.
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
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.
| Algorithm | Recommendation |
|---|---|
| AES-GCM-256 / AES-GCM-128 | Preferred (AEAD; no separate integrity needed for ESP) |
| AES-CBC-256/128 | Acceptable with SHA-256+ integrity |
| ChaCha20-Poly1305 | Supported by some implementations (strongSwan) |
| 3DES, DES | Remove |
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.
Proposal examples
| Platform | Strong proposal |
|---|---|
| strongSwan | esp=aes256gcm16-ecp384 |
| Cisco IOS XE | crypto ipsec transform-set T1 esp-gcm 256 |
| FortiGate | aes256gcm |
| Windows (PowerShell) | -EncryptionMethod GCMAES256 -IntegrityCheckMethod GCMAES256 |
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 IPsec → Encryption Algorithms. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%