Go (crypto/tls) · The Go project

Does Go use post-quantum TLS by default?

Key exchange

For key exchange, yes. Go's standard TLS library (crypto/tls) enables the hybrid X25519MLKEM768 key exchange by default since Go 1.24. ML-DSA signatures and certificates are supported since Go 1.27, for programs that use such keys.

Last change 19 Aug 2026Checked 3 sources

Where it stands

Go 1.24 (11 February 2025) added the crypto/mlkem package and turned on X25519MLKEM768 by default in crypto/tls. Go 1.26 (10 February 2026) also enabled SecP256r1MLKEM768 and SecP384r1MLKEM1024 by default and added crypto/hpke. Go 1.27 (19 August 2026) added the crypto/mldsa package, ML-DSA in crypto/x509 and ML-DSA signatures in TLS 1.3.

What comes next

ML-DSA in TLS is new in Go 1.27 and takes effect only where programs are set up with ML-DSA keys. The pure MLKEM1024 key exchange is supported since Go 1.27 but has to be added to Config.CurvePreferences.

What is at risk today

Programs that set their own Config.CurvePreferences without a hybrid group, or switch the default off with the GODEBUG setting tlsmlkem=0, keep classical key exchange, which leaves recorded traffic open to later decryption. TLS authentication stays classical unless a program is given ML-DSA keys and certificates.

Timeline

  1. Go 1.24 added crypto/mlkem and enabled the hybrid X25519MLKEM768 key exchange by default in crypto/tls. go.dev
  2. Go 1.25 allowed X25519MLKEM768 in FIPS 140-3 mode. go.dev
  3. Go 1.26 enabled SecP256r1MLKEM768 and SecP384r1MLKEM1024 by default and added crypto/hpke with post-quantum hybrid KEMs. go.dev
  4. Go 1.27 added crypto/mldsa, ML-DSA in crypto/x509 and ML-DSA signatures in TLS 1.3. go.dev

Sources