Thibault Martin: TIL that WireGuard v2 is in the works
AI summary AI-generated, may contain mistakes
WireGuard secures tunnels using Curve25519 key pairs, but a recent NSA advisory flagging all elliptic curves except P-384 and P-521 has raised concerns that Curve25519 could be breakable by ordinary computers. Since WireGuard hardcodes its cryptographic primitives and post-quantum algorithms require much larger keys that don't fit its small handshake packets, a new protocol version is required rather than a simple swap. Creator Jason Donenfeld has announced WireGuard v2 is in the works, while users can add pre-shared keys to tunnels in the meantime for protection.
Key takeaways
- WireGuard relies on Curve25519 key pairs to build secure tunnels.
- An NSA advisory suggests Curve25519 may be breakable with ordinary computers.
- WireGuard hardcodes its primitives, so algorithms can't simply be swapped.
- Post-quantum algorithms use larger keys that don't fit WireGuard's small handshake packets.
- WireGuard v2 is in development; pre-shared keys offer interim protection.
WireGuard builds secure private connections between devices by combining several cryptographic building blocks, called primitives.
To build a WireGuard tunnel, each device needs a key pair (a private key it keeps secret, and a public key it can send to others) based on the Curve25519 primitive.
To keep the explanation simple, each device takes the other one’s public key, mixes it with its own private key, adds specific maths to the mix, and shakes vigorously to create the actual tunnel keys.
Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.