WireGuard v2: PSK now, PQ handshake later
The NSA's post-quantum warning got an answer from WireGuard: v2 is coming. Until it ships, the 256-bit pre-shared key already in the protocol is the one lever you can pull today.

The NSA told national security system operators on December 2, 2026 to accelerate their move to post-quantum cryptography, and within hours Jason Donenfeld answered on the WireGuard mailing list: WireGuard v2 is in the works. That reply is the first official acknowledgment that the tunnel protocol most of us run on routers and laptops will change its cryptography. The part of his mail nobody is repeating is the more useful one. Post-quantum WireGuard, in the interim, is something you can already configure without touching the protocol at all.
What the NSA advisory does not say
The NSA release says AI companies privately disclosed discoveries affecting the security of some cryptographic systems in use. It does not name the companies, the algorithms, or the findings. No practical attack was demonstrated. Decrypt’s report states it the same way: officials say existing encryption faces no immediate, widespread threat, and nobody has confirmed an affected primitive.
That is a schedule, not a break.
The sentence that matters is about collection: adversaries are already recording encrypted traffic to decrypt once the capability arrives. Harvest-now-decrypt-later changes the calculus for any key you expect to stay secret for years. It barely touches a tunnel that rotates session keys. WireGuard rekeys after 120 seconds by default, so a passive recording of one session buys an attacker a two-minute window once asymmetric key exchange falls. The argument therefore lands on the handshake, not on ChaCha20-Poly1305 itself. Everything that follows is about that handshake.
WireGuard v1 carries one asymmetric leg
The v1 handshake is Noise_IKpsk2 over Curve25519, with ChaCha20-Poly1305 for encryption and Blake2s for hashing. Small primitives, small packets: the initiator’s first message is 148 bytes and the responder’s reply is 92, so the entire authenticated exchange fits in one UDP datagram each way. That size is not an accident. It is why WireGuard behaves well on lossy LTE, on embedded MIPS routers, and behind stateless firewalls that hate fragmented UDP.
The design decision that matters here is what the protocol does not have: algorithm negotiation. There is no field where the peers agree on a curve or a cipher. WireGuard was built around versioned crypto instead. When primitives need replacing, the protocol version increments and new software rolls out, the way any other bug gets fixed. Donenfeld restated this explicitly in the December 2 mail. It is also why you cannot flip a flag on your existing config and get a hybrid X25519 plus ML-KEM handshake. There is no flag. The delivery vehicle for new primitives is a protocol version, and that version is v2.
Post-quantum WireGuard starts with the pre-shared key
WireGuard has shipped a 256-bit pre-shared key option since the beginning, and it is the one lever that already works. The PSK is mixed into the key derivation alongside the X25519 output. If both peers got that key through a secure offline channel, the security of the session reduces to breaking a 256-bit ChaCha20 key, and Donenfeld’s assessment of that prospect was blunt: it isn’t going to happen. No quantum or AI advance on record threatens 256-bit symmetric keys. The asymmetric leg becomes irrelevant the moment the symmetric secret is strong and known only to the two endpoints.
Configuring it is one line per peer.
# generate once, exchange over an offline channel
wg genkey > psk-office-to-home.key
# /etc/wireguard/wg0.conf, under the matching [Peer]
[Peer]
PublicKey = <peer public key>
PresharedKey = <base64 value from the file above>
AllowedIPs = 10.0.0.2/32The cost is operational, not computational. Every peer pair needs its own key, exchanged through a channel that is not the network you are defending, and rotated on a schedule someone actually maintains. On a point-to-point tunnel between two machines you own, that is an afternoon. Across hundreds of roaming clients, it is a key-distribution system, and most deployments will not build one. Which is exactly why the next option exists.
When you cannot pre-share a key
Donenfeld’s second suggestion: run a post-quantum key exchange through an established WireGuard tunnel, then feed the result into the pre-shared key slot. Some VPN providers already do this. The pattern is sound because the PQ exchange inherits the tunnel’s confidentiality, and the derived secret lands in the same slot as a manually shared PSK. The catch is bootstrap trust. You have moved the problem to the endpoint running the PQ exchange, and that endpoint must itself be trustworthy and quantum-resistant, or you have added a component to the chain of custody without removing any risk.
For a sense of what hybrid key exchange costs in practice, I measured X25519MLKEM768 against plain X25519 in a separate benchmark post. The latency penalty on a healthy link is real but small; payload size is the more interesting number, because ML-KEM-768 public keys alone are 1,184 bytes against 32 for X25519. Scale that difference up and you get the v2 handshake problem before we even get to v2.
There is also a censorship angle. Post-quantum handshakes look different on the wire, and how censors treat them is its own subject; I covered how DPI systems fail open on post-quantum TLS in a separate piece. A PQ exchange running inside a WireGuard tunnel hides that fingerprint, which is a side benefit worth naming: the oversized packets stay encapsulated inside ordinary-looking UDP.
WireGuard v2 and the price of leaving ECC
it is certainly challenging (though hopefully not impossible) to come up with something really elegant that preserves all the properties we know and love about WireGuard, using the current crop of PQ crypto primitives. ECC was really in an ergonomic sweet spot, which we’ll have to move on from.
Jason A. Donenfeld, WireGuard mailing list, December 2, 2026
That paragraph is the honest engineering summary of the whole migration. Curve25519 gave the protocol 32-byte keys and a 148-byte handshake. The current PQ crop gives you kilobyte-scale public keys, ciphertext expansion on every exchange, and signature or encapsulation sizes that stop fitting in single datagrams. A v2 handshake carrying ML-KEM-768 alongside X25519 would no longer fit in one UDP packet on a 1,500-byte-MTU link. Embedded router owners would feel that in retransmits before they ever feel it in latency, and the firewall-traversal properties that made WireGuard deployable would need rethinking rather than preserving.
Donenfeld was also explicit about process. The mail is not an invitation to design v2 by committee in a thread. The project will chart the path internally and ship software when the primitives demand it. Given the track record of the 5.6 kernel module landing quietly in the mainline tree, I expect the same shape: a protocol version bump, a compatibility window where both versions run, and no migration ceremony.
Four paths to a quantum-resistant tunnel
| Path | Protects the handshake with | Works today | Cost |
| v1 unchanged | X25519 only | yes | none, harvest window stays open |
| v1 plus PSK | X25519 plus a 256-bit offline secret | yes | one offline key exchange per peer pair |
| PQ exchange inside the tunnel | X25519 plus a negotiated PQ secret in the PSK slot | yes, extra software | a second trusted endpoint, added latency |
| WireGuard v2 | replacement primitives, versioned | no, not released | unknown, likely larger handshakes |
Reading the table by harvest risk: the PSK row is the only one where recorded traffic stays encrypted after any hypothetical future break of the asymmetric layer. The PQ-in-tunnel row matches it, at the price of trusting the endpoint that negotiated the secret. The other two rows delay the problem, nothing more. Any gap in the chain between the two peers is where the recording attack re-enters, which is why the offline exchange channel matters as much as the key itself.
What I would change this week
On tunnels where I control both ends, I would set the pre-shared key now and treat it as permanent hardening rather than a temporary stopgap. On deployments with many roaming clients, I would not pretend a PSK distribution program is feasible; those users are waiting on v2 like everyone else. Nobody should rip X25519 out of anything. It is not broken, no public attack touches it, and removing it before a tested replacement ships would trade a hypothetical risk for a real operational one.
The measurement I have not run, and would run next: handshake setup time for a PQ exchange inside a WireGuard tunnel on an ARM router at typical consumer specs, compared against plain v1. If v2 lands with a hybrid ML-KEM exchange, its handshake will not fit in one UDP datagram, and the people who notice first will not be cryptographers. They will be whoever runs the tunnel over a metered LTE link with a 1,420-byte MTU and starts seeing fragmented handshakes on day one.