Files
Brad Fitzpatrick 5f40afa175 wgengine, ipn/ipnlocal, tstest/natlab/vmtest: do hybrid handshakes in kernel mode
tswg now implements wireguard-go's hybrid post-quantum handshake, so
the kernel data plane passes wgcfg.PeerConfig.Hybrid to the kernel (as
the tswg peer flag TSWGPEER_F_HYBRID), rather than logging that it
can't and doing a classic handshake, which a hybrid peer would refuse.

Nothing turns hybrid handshakes on yet, so for tests, the new
TS_DEBUG_FORCE_HYBRID_HANDSHAKES envknob sets Hybrid for every peer.
TestTSWGTailscaledHybridTUN uses it to check kernel mode against
wireguard-go, with each initiating, by wireguard-go's hybrid handshake
metrics. TestTSWGTailscaledHybridKernel checks kernel mode on both
sides.

Updates #426

Signed-off-by: Brad Fitzpatrick <[email protected]>
Change-Id: Ifa692897cfe44e389a87a2c37800c13e7d1ee08d
2026-11-09 15:47:37 +00:00
..