WireGuard compared with post-quantum WireGuard variants and options

WireGuard has no post-quantum key exchange by default. The only built-in route is the optional pre-shared key, which the project says can add post-quantum resistance when fed by a separate post-quantum handshake such as Rosenpass.

On this page

Is WireGuard post-quantum secure, and how do its options compare

The WireGuard project says WireGuard is not post-quantum secure by default. Its only built-in hook for post-quantum protection is the optional pre-shared key, which the project says could provide post-quantum resistance but does not name any post-quantum algorithm. Checked on 2026-12-03, the WireGuard home page, protocol page, known limitations page and compilation page do not mention ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0, so the vendor has published nothing on those points. This page is for engineers choosing a route and for vendor-risk reviewers who must record an answer for a VPN inventory that lists WireGuard.

The options fall into three groups. The first is WireGuard as shipped: its handshake uses Curve25519 for key exchange and has no certificates or signatures, so there is no signature algorithm to replace. The second is the optional pre-shared key, which the wg manual describes as a layer of symmetric-key cryptography added on top of the public-key exchange. The known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot. The third is Rosenpass, a separate open-source key-exchange project that names Classic McEliece and Kyber and is meant to pair with WireGuard through pre-shared keys. Rosenpass's site does not describe it as part of the WireGuard project, does not mention ML-KEM, and lists v0.2.3 dated 3 August 2026 as its latest release. Confirm with each project which algorithms its current release supports before you record it.

How each WireGuard option compares on post-quantum protection

This table compares four ways to handle post-quantum protection for WireGuard, showing what each option changes, what the vendor and project sources say, and when each was checked. Read each row as a statement of documented facts only, since none of these options is described here as compliant or certified. The main takeaway is that stock WireGuard is not post-quantum secure by default, and any added protection depends on a separately configured pre-shared key or a separate project.

OptionWhat it changesWhat the facts saySource and date checked
Stock WireGuard with all-zero pre-shared keyUses the protocol default, where no pre-shared key is configured and the slot is treated as an all-zero 32-byte value.The project says WireGuard is not, by default, post-quantum secure. Key exchange and peer authentication rest on Curve25519 static keys.WireGuard known limitations and WireGuard protocol page, checked 2026-12-03
WireGuard with a configured pre-shared key from an external post-quantum handshakeInserts a key produced by a separate post-quantum handshake into the optional pre-shared key slot, adding a symmetric-key layer.The project recommends this approach and says the pre-shared key could provide post-quantum resistance. It names no post-quantum algorithm, and the external handshake must be supplied by another product.WireGuard known limitations, WireGuard protocol page and wg(8) manual, checked 2026-12-03
Rosenpass paired with WireGuardA separate open-source key-exchange project that feeds keys into WireGuard through pre-shared keys.Rosenpass names Classic McEliece and Kyber. The latest release it lists is v0.2.3, dated 3 August 2026. It is not described as part of the WireGuard project, and its site does not mention ML-KEM.Rosenpass site, checked 2026-12-03
Hashed public keysHashes public keys before sending them, which the project says could enable post-quantum security.This is not part of the Noise Protocol Framework, and the project says it would not give forward-secure post-quantum secrecy.WireGuard known limitations, checked 2026-12-03
Post-quantum signatures in WireGuardWould add post-quantum signature algorithms for authentication.No post-quantum signature support is documented. The design uses no signatures or certificates, so this option does not apply to the documented protocol.WireGuard protocol page and WireGuard known limitations, checked 2026-12-03
Vendor statements on ML-KEM, ML-DSA, SLH-DSA, FIPS and CNSA 2.0Not applicable to stock WireGuard. Listed to show what the WireGuard project has not published.The WireGuard home page, protocol page, known limitations page and compilation page do not mention these standards or CNSA 2.0. Confirm any later statements directly with the project.WireGuard home page, WireGuard known limitations and WireGuard compilation page, checked 2026-12-03

Which parts of WireGuard the post-quantum question touches

WireGuard has no cipher suite or certificate settings to change, so the post-quantum question centers on a few fixed components. Each card below names one of them, what it means for post-quantum protection, and what to confirm in your own deployment.

Curve25519 ECDH with static peer keys

The handshake uses Curve25519 ECDH with each peer's static public key, so key exchange and peer authentication rest on an elliptic-curve algorithm. The protocol offers no option to swap this algorithm. Check each peer's static keys and whether they are rotated, because the static key pair is the long-term part of the trust relationship. A post-quantum answer for WireGuard therefore has to come from somewhere other than changing this exchange.

WireGuard protocol page

Noise_IKpsk2 and the pre-shared key slot

The handshake is named Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s, which places the optional pre-shared key at the second message. The project states that this pre-shared key could provide post-quantum resistance but names no post-quantum algorithm. Any post-quantum material would have to be supplied from outside WireGuard and inserted into this slot. Confirm which key material your setup inserts and where it comes from.

Known limitations page

No certificates or signatures

The protocol uses no certificates, certificate authorities or signature algorithms, so there is no signing key or certificate chain to inventory or migrate. This removes a category of public-key dependency that other VPN products carry. Because no signatures are present, the design leaves no signature support to evaluate. Confirm with your own inventory that no WireGuard deployment depends on a separate certificate or signing service.

WireGuard protocol page

Pre-shared key generation and assignment

The wg genpsk command prints a random pre-shared key in base64, and wg set accepts the key through a file path rather than a command-line argument. Restrict the file to the owner, for example with umask 077. The quickstart does not describe how pre-shared keys should be distributed between peers, so the distribution method is a decision your team must document. Confirm how keys reach each peer and who can read them.

wg(8) manual

wg-quick configuration files

wg-quick reads /etc/wireguard/INTERFACE.conf first, and its files carry PrivateKey, PublicKey and PresharedKey entries. The PreUp and PostUp entries run as bash snippets, and the manual suggests keeping keys encrypted, for example through pass(1). If SaveConfig is set to true, the interface state is written back to the file at shutdown. Review these files for plaintext keys and confirm which hooks run during bring-up.

wg-quick(8) manual

How the answer changes by deployment and by option

A WireGuard peer with no pre-shared key configured relies on the protocol's fixed primitives alone. The WireGuard protocol page states that when no pre-shared key is configured, the pre-shared key is treated as an all-zero 32-byte value. The WireGuard known limitations page says WireGuard is not, by default, post-quantum secure. Key exchange and peer authentication rest on Curve25519 ECDH with static peer public keys, and the protocol uses no certificates or signatures.

  • Algorithms are fixed: ChaCha20 with Poly1305, Curve25519, BLAKE2s, SipHash24 and HKDF, named on the protocol page, with no setting that selects them.
  • No cipher suite choice: the protocol and the wg(8) manual describe no cipher suite list, TLS settings or certificate authorities.
  • No post-quantum signatures: none is documented, and none applies to the design because it uses no signatures.
  • Public keys are the dependency: the static public keys exchanged between peers are the elliptic-curve material to inventory.

Confirm the peer's PresharedKey entry is absent or unset in every wg or wg-quick configuration you audit, and record that the handshake depends on Curve25519.

How the pre-shared key slot carries a post-quantum secret

The pre-shared key slot is the only place in WireGuard's handshake where a post-quantum secret can enter, and it is optional. The protocol uses the Noise construction Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s, which mixes the pre-shared key in at the second message. If no key is configured, the slot is treated as an all-zero 32-byte value, so the handshake still completes with only the Curve25519 exchange. The WireGuard known limitations page says WireGuard is not, by default, post-quantum secure, and it recommends running a separate post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot. The project names no post-quantum algorithm for this step, so the choice of mechanism, its implementation and its maintenance belong to the operator or to a third-party project.

Treat the pre-shared key as symmetric material, because its strength depends entirely on how it is generated and distributed. The wg(8) manual describes wg genpsk as printing a random key in base64, and it says the preshared key adds a layer of symmetric-key cryptography on top of the public-key cryptography. The manual also says wg set takes a file path for the preshared key rather than a command-line argument, since arguments are not considered private on most systems. The quickstart does not cover wg genpsk, PresharedKey, or how keys are distributed between peers, so the reader must confirm how each pair of peers will receive a shared key, how it is stored, how it is rotated, and whether a post-quantum handshake will produce a new value for each session or only at configuration time.

Before relying on this pattern, confirm three things in your own environment. First, check that the peer software you run on each end supports the same pre-shared key handling and key length, since the wg-quick example files show PresharedKey as a configuration entry but the project does not document a post-quantum exchange in that file. Second, confirm the operational process for generating a post-quantum secret, moving it to both peers, and replacing it, including how a failed exchange is detected and what happens to traffic meanwhile. Third, record that the WireGuard project itself has published no post-quantum algorithm for this slot, so any support claim you make to a customer or auditor must name the external mechanism, its version and its owner.

What to do next to compare WireGuard options

This sequence confirms how your WireGuard deployments are configured, shows which peers use which option, and decides whether an external post-quantum handshake fits your environment. It ends with a dated record of what the vendor and project have stated, so the comparison rests on evidence you can recheck.

  1. Confirm WireGuard version and pre-shared key use

    On each host, record the WireGuard version reported by the tools and the kernel module or userspace implementation in use. Then check each interface configuration for a PresharedKey entry and note whether it is set per peer. Confirm this by listing the live state with wg show, which displays preshared key presence without exposing the key value. Treat any peer without a PresharedKey as using the protocol default, which is an all-zero 32-byte value. The step is complete when every interface and peer has a version and a recorded yes or no for pre-shared key use.

  2. Inventory which peers run which options

    Build a table with one row per peer and columns for host, role, WireGuard version, pre-shared key status and any post-quantum handshake tool running alongside it. Gather the data from the configuration files and the wg show output collected in the previous step, and ask each peer owner to confirm entries you cannot read from the host. Mark any peer whose configuration you could not verify so it is not counted as compliant. The step is complete when every peer appears in the table and each row has a source for its values.

  3. Decide whether an external handshake is acceptable

    The WireGuard known limitations page says WireGuard is not post-quantum secure by default and recommends running a post-quantum handshake on top, then inserting the resulting key into the pre-shared key slot. Review that option with your security lead and the owners of the peers, and weigh the added operational components against your risk and support requirements. Record the decision as accepted, rejected or deferred, with the name of the approver and the date. Confirm the outcome by writing it into the comparison record so every peer row can be matched to a decision.

  4. Test the pre-shared key path end to end

    On a non-production pair of peers, generate a key with wg genpsk, store it in a file readable only by the service account, and apply it with wg set using the file path option, since the manual says this avoids exposing the key in command line arguments. Confirm the peers establish a tunnel and that wg show reports the preshared key as present on both ends. Then remove the key from one side and confirm the tunnel behavior matches what you expect. The step is complete when the test results, including the commands run and the observed output, are saved with the test date.

  5. Record vendor and project statements with check dates

    Collect the current project statements from the WireGuard home page, protocol page, known limitations page and compilation page, and the Rosenpass site if you are assessing that project. For each source, note the URL, the date you checked it and any mention of post-quantum algorithms, FIPS or CNSA 2.0. The project pages checked on 2026-12-03 did not mention ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0, so record that absence with its date. Ask your vendor or distributor to confirm in writing any statement that matters to your procurement. The step is complete when each statement has a source, a check date and an owner who will recheck it.

What the WireGuard project has not published on post-quantum

The WireGuard project's own pages, checked on 2026-12-03, leave several post-quantum questions unanswered. The gaps below cover algorithm names, signatures, third-party integrations and key distribution, and each one lists what to ask the project or the maintainer before relying on WireGuard for a post-quantum plan.

No post-quantum algorithm names

The WireGuard home, protocol, known limitations and compilation pages checked on 2026-12-03 do not mention ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0. The protocol's algorithms are fixed: ChaCha20 with Poly1305, Curve25519, BLAKE2s, SipHash24 and HKDF, with no setting to select a different suite. Ask the project whether any post-quantum algorithm is planned, which standard it would follow, and whether it would appear in a future protocol version or only in an add-on.

WireGuard protocol page

Signatures not documented

No post-quantum signature support is documented. This is not a missing feature in the usual sense, because the documented design uses no signatures or certificates: peers authenticate through static Curve25519 public keys inside the Noise handshake. Engineers who plan around signature migration should confirm with the maintainer that this stays true in future releases, and should check whether any companion tool or management layer introduces signatures or certificates that the protocol page does not describe.

WireGuard known limitations

No official Rosenpass integration listed

The WireGuard project pages do not list Rosenpass or any other post-quantum integration as official. Rosenpass is a separate open-source key-exchange project, which names Classic McEliece and Kyber and is designed to feed keys into WireGuard's pre-shared key slot. Its site does not describe it as part of WireGuard and does not mention ML-KEM, and its latest listed release is v0.2.3 dated 3 August 2026. Ask whether the project plans to endorse, test or document any such pairing, and treat Rosenpass as a third-party component with its own support and review.

Rosenpass site

Pre-shared key path left undefined

The protocol page says the optional pre-shared key could provide post-quantum resistance but names no algorithm, and the known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting its output into that slot. The pages do not say how such a key should be produced, sized or rotated. Ask the project for guidance on generating and storing a pre-shared key for this purpose, and whether a key derived from a separate exchange has been analyzed for forward secrecy.

WireGuard known limitations

No documented key distribution method

The quickstart explains how to generate private and public keys with wg and how to set the private-key and preshared-key options from file paths, but it does not cover wg genpsk, PresharedKey entries, or how public keys should be exchanged between peers. No vendor mechanism for distributing keys or pre-shared keys is documented. Ask the maintainer whether a key distribution method is planned, and until then document how your team delivers keys to peers and how it rotates them.

WireGuard quickstart

Known limitation on forward secrecy

The known limitations page says that hashing public keys before sending them could enable post-quantum security, but that this is not part of the Noise Protocol Framework and would not give forward-secure post-quantum secrecy. Teams that read the page as a partial answer should note this explicitly. Ask the project whether it considers this approach in scope for any future release, and record that the current documented position does not provide forward-secure post-quantum secrecy.

WireGuard known limitations

Questions engineers ask about WireGuard post-quantum options

Is WireGuard quantum safe by default?

No. The WireGuard known limitations page states that WireGuard is not, by default, post-quantum secure. Its handshake uses Curve25519 for key exchange and static public keys for peer authentication, and the protocol has no post-quantum algorithm in its default configuration. The cipher suite is fixed by the protocol, and no setting in the wg(8) manual or the protocol documentation selects a different one. Treat a default WireGuard deployment as not post-quantum protected, and confirm the current status against the project pages before you record an answer.

Does setting a pre-shared key make WireGuard post-quantum?

Only if the key itself comes from a post-quantum process. The pre-shared key is optional and adds a layer of symmetric-key cryptography on top of the public-key handshake. The protocol page says it could provide post-quantum resistance, but it names no post-quantum algorithm, and the documentation does not say how the key should be generated or distributed. A random key from wg genpsk adds symmetric material, but nothing in the supplied documentation confirms that it is post-quantum protected in any particular setup. Ask the project or your own design review to confirm how the key is produced before you rely on it.

Is Rosenpass part of the WireGuard project?

No. Rosenpass is a separate open-source key-exchange project. It names Classic McEliece and Kyber and is designed to pair with WireGuard through pre-shared keys, but its site does not describe it as part of the WireGuard project. The WireGuard known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot, which is the pattern Rosenpass follows. Check Rosenpass's own release notes, the latest of which it lists as v0.2.3 dated 3 August 2026, and review it as its own product with its own support and licensing.

Does a post-quantum WireGuard option cost extra?

The supplied documentation gives no price for any option. The cost sits in running a second handshake and in distributing the resulting keys, not in a license. WireGuard itself is open source, but a post-quantum layer adds a separate process that must be deployed, kept in sync with each peer, and rotated. Those costs recur, and they grow with the number of peers. Ask any vendor or integrator for a written scope that lists who operates the second handshake, how keys reach each peer, and who supports the result. A quote should separate the one-time build from the ongoing operation.

What has the WireGuard project said about ML-KEM?

The checked pages say nothing about it. The WireGuard home page, protocol page, known limitations page and compilation page, checked on 2026-12-03, do not mention ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0. The vendor has published no statement on these points there. Treat the absence as an open question, not a commitment. If you need a position on ML-KEM for procurement or audit, ask the WireGuard project for its written plan and record the date and the answer you receive.

Can my team set up post-quantum WireGuard without outside help?

Your team can do the basic WireGuard work in-house. The quickstart explains how to generate keys with wg genkey and wg pubkey, and the wg-quick(8) manual covers configuration. The post-quantum layer is harder: it requires choosing an external key-exchange product, running its process on each peer, and feeding its output into the pre-shared key slot. The supplied documentation does not cover key distribution between peers, so that part needs a design decision your team must own. Outside help is useful when you need a scoped design, a test plan, or an operating runbook. DeployOpen plans and implements self-hosted platforms in your own infrastructure on a fixed scope agreed in writing, and it does not issue audit reports.

Where the optional pre-shared key enters the WireGuard handshake

The diagram starts with the Noise_IKpsk2 handshake between the initiator and the responder, which exchanges Curve25519 ephemeral and static public keys. The pre-shared key is mixed into the key schedule at the second message, so it only affects secrets derived after that point. A dashed branch shows an external post-quantum key exchange, such as Rosenpass, running outside the WireGuard project and producing a value that is placed into the pre-shared key slot. When reviewing this setup, confirm which external tool produces the value, how it is distributed to both peers, and that WireGuard itself names no post-quantum algorithm.

The optional pre-shared key is mixed in at message two of the Noise_IKpsk2 handshake.

How DeployOpen helps plan WireGuard post-quantum readiness

DeployOpen starts from what WireGuard's own documentation says about post-quantum protection, which is that the protocol is not post-quantum secure by default and that the optional pre-shared key is the documented place to add post-quantum protection. We help teams compare that option with variants and wrappers, test the choice in their own environment, and record the result for their security and vendor-risk reviews.

How we scope

  • We confirm which WireGuard version, tools and kernel path your deployment uses before comparing any option.
  • We list the options under review, such as the built-in pre-shared key, a separate key-exchange tool, or another variant, and state what each one claims to add.
  • Engagements are fixed-scope: the comparison questions, deliverables and timeline are agreed in writing before work starts.

How we build

  • We test a pre-shared key setup in a lab, generating keys with wg genpsk and loading them from files rather than command-line arguments.
  • We evaluate any external key-exchange tool against WireGuard's documented pre-shared key slot and record where the key material is stored.
  • We check each option's key handling, PreUp and PostUp scripts and SaveConfig behavior, since these affect where secrets end up on disk.

How we hand over

  • You receive a written comparison that separates what WireGuard documents from what each variant or wrapper claims, with the source of each statement.
  • Each option's limits are recorded, including that the built-in design uses no certificates or signatures, so no post-quantum signature support applies.
  • The report lists what remains unconfirmed, such as vendor statements that WireGuard has not made, so your evidence file shows the gaps.

How we support

  • Ongoing support and continuous review are available as a retainer, so the comparison is refreshed when WireGuard or a variant publishes changes.
  • We help you watch the WireGuard project's known limitations and protocol pages for any future post-quantum statements and log what changes.
  • Retesting is included in the agreed scope, so an option you adopt can be checked again after an upgrade or configuration change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.