WireGuard from the ground up
summary
WireGuard implements a layer‑3 UDP tunnel that uses Curve25519, Noise IK and ChaCha20-Poly1305 for packet AEAD, performs a 1 RTT handshake, and rotates session keys on timers (roughly every 2 minutes). The Linux kernel implementation is compact — about 4,000 lines of C — and per‑packet overhead is ~60–80 bytes. The demo boots two Linux VMs, exchanges handshakes, and successfully pings over the WireGuard interface.
AI-written summary · about
