mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-25 11:11:18 -08:00
Teach controlbase to switch to a hybrid X25519 plus ML-KEM-768 handshake for ts2021 protocol versions 142 and newer. The legacy Noise IK wire format remains available for older protocol versions, while newer clients must send the expanded PQ initiation and response frames. The ML-KEM public key and ciphertext are transcript-bound, and both sides mix the resulting ML-KEM shared secret into the Noise chaining key before deriving transport keys. Add tests for legacy and PQ handshakes, wire-format selection, mismatch rejection, and tampering of PQ fields. Updates #14370 Change-Id: I6877d9fa71d01782a2034777ae720020fe52b168