ToJim
FromMarlene
SubjectHow the Tunnel Actually Encrypts
I spent the day inside the part of the tunnel nobody advertises, which is the part doing the work. Two things came out of it.
The first: “AES-256” is not a security property. It is a component, settled twenty years ago. A modern tunnel does not only scramble the packet, it scrambles and signs it in one pass, so the receiver can tell whether anything changed on the wire before it looks at the contents. That shape has a name and a specification — authenticated encryption with associated data, RFC 5116 — and both ciphers you will actually meet implement it: AES-GCM, which is the one NIST wrote down in SP 800-38D, and ChaCha20-Poly1305. Alter one bit and the tag fails and the packet dies. Good. Move on.
The second thing is where it breaks, and the answer is not the cipher. It is the three places around the cipher.
The nonce. Every one of these schemes needs a value never used twice under the same key, and NIST does not treat that as housekeeping: reuse it and, in the standard’s words, that can compromise “the security assurance almost entirely.” Implementations count. They do not roll dice.
Who is on the other end. Two machines agreeing on a secret proves nothing about who they are. WireGuard mixes both sides’ long-term public keys into the handshake; its own page names impersonation and replay among the things that stops (WireGuard, protocol). OpenVPN does the same job with certificates and requires each side to present its own (OpenVPN 2.6 manual). A tunnel without that check is not a tunnel to your provider. It is a tunnel to whoever answered the door.
How long a key lives. Perfect forward secrecy, in the IKEv2 specification’s definition: once a session closes and the keys are wiped, someone holding every recorded packet and both endpoints’ long-term keys still cannot rebuild the session key (RFC 7296, section 2.12). WireGuard rehandshakes every few minutes for exactly this. So a stolen key buys a window, not the archive — unless the provider left the old static-key mode on, where OpenVPN’s own manual says stealing the key compromises everything ever encrypted with it.
The obvious answer, “it is encrypted, therefore it is private,” is too simple because encryption answers one question: can the person in the middle read this packet. It says nothing about whether the far end is who it claims to be, or whether the provider still ships a protocol NIST calls, in terms, a plaintext one (SP 800-77r1, section 8.5).
The whole thing is in the encryption section of the guide, primitives and all.
Marlene