← Cryptography guide

K080 / Cryptographic protocols and formats

WireGuard Noise

WireGuard Noise protocol · Survey date 2026-12-05

WireGuard is a cryptographic protocol using the Noise framework's Noise_IK handshake.

CRYPTOGRAPHY LAB / K080

Cryptography Lab · WireGuard Noise

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Limited implementation

WireGuard Noise (HMAC-BLAKE2s KDF3 only; no handshake/transport)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
WireGuard is a cryptographic protocol using the Noise framework's Noise_IK handshake. Source document ↗
Classification and reversibility
Cryptographic protocol encrypting/decrypting transport with shared keys after handshake. Source document ↗
Key or secret requirements
Requires static long-term and/or ephemeral key pairs. Source document ↗
Operating principle and structure
DH public exchange and hashing of DH results derive shared secrets for transport encryption. Source document ↗
Key size, block size and parameters
Noise DH length at least 32 bytes; WireGuard chooses 32. Source document ↗
Security strength and recommendation
Formal verification reports key secrecy, forward secrecy, session uniqueness and identity hiding. Source document ↗
Known attacks and vulnerabilities
Curve25519 initial exchange risks future quantum harvest-now-decrypt-later attacks. Source document ↗
Standards and certification
Source cites RFC 9518 (Informational, 2024) as documenting WireGuard protocol. Source document ↗
Typical uses
VPN tunneling alternative to IPsec/OpenVPN. Source document ↗
Implementations, libraries and tools
Rust wireguard-sans-io and other implementations/libraries. Source document ↗
Decryption or decoding
Decrypt received data via ChaCha20-Poly1305 AEAD open. Source document ↗
Advantages
Resistance to key-compromise impersonation/replay, perfect forward secrecy, AKE security and identity hiding. Source document ↗
Limitations and cautions
Deployment security depends on implementation correctness; beware defects/vulnerabilities. Source document ↗
Distinguishing encryption, encoding and hashing
Noise-based cryptographic protocol using ChaCha20-Poly1305/BLAKE2s, not encoding format. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Client knows server public key, derives session key with Noise IK handshake, encrypts UDP packets using ChaCha20-Poly1305. Receiver decrypts with same key.

Procedure

Prepare peer public/own pair and optional PSK; Noise_IKpsk2 handshake derives session keys; AEAD encrypt, receive decrypt and verify integrity. Unlike encoding, key required.

Scenario

VPN client-server tunnels, cloud-branch connectivity and mobile roaming. Configure key exchange, routing and UDP firewall port, regular rekey and minimal logging.

Pitfalls and alternatives

Do not confuse handshake/transport encryption with Base64. Protect keys/PSK from code/log leaks, check versions/rekey/replay protection and evaluate PQ measures if needed.

References