Author Of WireGuard Considers Transferring Project To Post-quantum Cryptography

Jason A. Donenfeld, author of VPN WireGuard, against the backdrop of the NSA’s statement about the need to switch to post-quantum crypto-algorithms, reported about the start of work on upgrading the protocol for the future branch of WireGuard 2. WireGuard was initially designed with an eye to versioning cryptography, which, if security problems are identified in currently used cryptographic primitives, allows you to replace them by updating the protocol version in the same way as errors in the source code are corrected.

At the same time, transferring WireGuard to post-quantum algorithms is called a non-trivial task, since on the basis of the current ones With post-quantum cryptographic primitives, it is problematic to preserve the former properties for which the project is valued (minimalism and high performance). The elliptic curve cryptographic primitives used so far allowed for an optimal balance to be achieved, which will be disrupted in the event of a transition to post-quantum systems.

As an opportunity to increase the security of WireGuard without waiting for the implementation of a new version of the protocol, it is recommended to use a 256-bit symmetric PSK (pre-shared key) when establishing a connection, in addition to the use of asymmetric keys. When transmitting a PSK key offline, regardless of the strength of the asymmetric cryptographic primitives, compromising the encrypted connection would require breaking the symmetric ChaCha20 cipher with a 256-bit key, which is not feasible on both classical and quantum computers. PSK can be generated with the command “wg genpsk” and registered through the PresharedKey setting.

If it is not possible to use a PSK key that needs to be securely transferred to another party, a combined key exchange method, already used by some VPN providers, is offered as an alternative. Its essence is to generate a shared key (PSK) based on the results of a key exchange carried out using post-quantum algorithms inside an already established WireGuard tunnel.

/Reports, release notes, official announcements.