WireGuard's author says a v2 protocol is in the works and points to two options that work now: a 256-bit pre-shared key, or a post-quantum key exchange run inside the tunnel and fed into the same slot. This page shows how to set up both and how to check they are live.
This explains reporting by
Jason A. Donenfeld on the WireGuard mailing list: Post Quantum WireGuard, WireGuard v2, ongoing AI discoveries, and so forth (Dec. 2, 2026). Read the original first:
https://lists.zx2c4.com/pipermail/wireguard/2026-December/009817.html
In one minute #
- On December 2 Donenfeld told the WireGuard list the project is working on a v2 protocol, with no dates.
- For now he points to WireGuard's optional 256-bit pre-shared key (PSK). If it is shared offline, breaking the tunnel means breaking a 256-bit ChaCha20 key, not the elliptic-curve exchange.
- If you cannot share a key offline, run a post-quantum key exchange inside the tunnel and put the result in the PSK slot. Rosenpass does that and refreshes the key every two minutes.
- Setting a PSK is one command per peer, and both ends must hold the same key.
- wg show prints (none) for any peer without a PSK, so checking is one line.
What Donenfeld said #
The post responds to the recent claims that AI-driven math advances might weaken today's cryptography, and links the NSA's December 2 advisory. It says the project is aware and is charting a path forward.
He describes a WireGuard v2 as being investigated, built on WireGuard's versioned crypto design: when a primitive breaks, the version number goes up and new software ships. He is frank that keeping WireGuard's simplicity with today's post-quantum primitives is hard, because elliptic curves were an ergonomic sweet spot.
Until then he names two options that work today, and calls both good solutions as things stand.
What the pre-shared key slot does #
WireGuard's handshake is built on Curve25519. The optional PSK is a 32-byte symmetric key that is mixed into that handshake. The wg(8) man page describes it as an extra layer of symmetric-key cryptography mixed into the public-key cryptography, for post-quantum resistance.
The effect: an attacker who could solve the elliptic-curve part, now or later from recorded traffic, still needs the PSK to derive the session keys. Without it, the recording stays sealed.
The catch is the word pre-shared. If you send the PSK over a channel that itself relies on elliptic curves or RSA, a future break of that channel exposes the PSK too. Donenfeld's condition is a secure offline means.
Option one: set a pre-shared key #
Generate one key per peer pair. wg genpsk prints 32 random bytes in base64, 44 characters long. Our test Mac had no wg binary, so we checked the length with an equivalent: openssl rand -base64 32 also prints 44 characters.
wg genpsk > peer-a-b.psk
chmod 600 peer-a-b.psk
sudo wg set wg0 peer <peer public key> preshared-key ./peer-a-b.psk
The man page says the key must be passed as a file, because command-line arguments are not private on most systems. To make it stick across restarts, add it to the peer's section of the config on both ends:
[Peer]
PublicKey = <peer public key>
PresharedKey = <the 44-character key from peer-a-b.psk>
AllowedIPs = 10.0.0.2/32
Then confirm. Any peer still without a PSK shows (none):
sudo wg show wg0 preshared-keys
If the two ends hold different keys, the handshake fails and the tunnel stays down, which is the safe failure. latest-handshakes in wg show tells you quickly.
Moving the key and rotating it #
Use a different PSK for each peer pair. One shared PSK across a whole fleet means one leak opens every tunnel's recordings.
Offline means not over today's public-key crypto: in person, on removable media you control, or through your device-provisioning step before the device leaves your hands.
Plan rotation like any secret. A PSK that never changes is only as safe as every copy ever made of it.
Option two: a post-quantum exchange feeding the slot #
When keys cannot be shared offline, Donenfeld suggests running one or more post-quantum key exchanges through an established WireGuard tunnel and putting the result in the PSK slot. He says some VPN providers already do this.
Rosenpass is an open-source tool built for exactly that. Its README says it establishes a symmetric key with post-quantum cryptography via liboqs, hands it to WireGuard through the PSK feature, and refreshes it every two minutes. Because it only fills the PSK slot, it says the pair is no less secure than WireGuard alone.
Its README is also clear about the trade-offs of its rp front end: it runs as root, needs both the WireGuard and Rosenpass private keys, takes control of the interface and works with one interface. It points to a stand-alone mode in a container, jail or VM for a tighter setup. It also uses two UDP ports, N for Rosenpass and N+1 for WireGuard, so update firewall rules.
What this does not fix #
A PSK protects the secrecy of the tunnel. It does nothing for the machines at either end, the software that holds the key, or a commercial VPN app whose config you cannot edit.
It also does not tell you whether Curve25519 is actually weakened. The email does not claim that, and neither do we.
Who is affected #
| Case | Status |
|---|---|
| Self-managed WireGuard tunnels | Can add a PSK today with one command per peer. |
| Recorded WireGuard traffic without a PSK | Relies only on Curve25519; exposed if that is broken later. |
| Commercial VPN apps built on WireGuard | Depends on the provider. Donenfeld says some already feed a PQ exchange into the PSK slot. |
| WireGuard v2 | Being investigated; no dates. |
What to do #
- Run wg show <interface> preshared-keys on every WireGuard host and list the peers showing (none).
- Generate one PSK per peer pair with wg genpsk and set it on both ends.
- Move keys offline, or through provisioning, not over a public-key channel.
- Where offline sharing is impossible, test Rosenpass in stand-alone mode.
- Ask your VPN provider in writing whether it fills the PSK slot with a post-quantum exchange.
What is still unknown #
- No WireGuard v2 design or dates are public.
- We did not run wg or Rosenpass for this page; commands come from the wg(8) man page and the Rosenpass README.
- Which VPN providers already fill the PSK slot with a post-quantum exchange is not named in the email.
- Whether any AI-driven result affects Curve25519 is not established by anything we read.
Sources #
- Jason A. Donenfeld on the WireGuard mailing list: Post Quantum WireGuard, WireGuard v2, ongoing AI discoveries, and so forth (Dec. 2, 2026) — the original report
- wg(8) man page, wireguard-tools
- Rosenpass README (GitHub)
- Hacker News discussion of the email (906 points)
AI News Report· every headline, every morning.