Is Go standard library (crypto/tls) Quantum-Safe?

By Team Cyber Kendra • • 1 Min Read • Follow on Google News Add to Preferred Source

Short answer

Yes: since Go 1.24 (Feb 2025) crypto/tls uses the hybrid X25519MLKEM768 key exchange by default, and Go 1.26 added SecP256r1MLKEM768 and SecP384r1MLKEM1024 by default. Go 1.27 (Aug 2026) added ML-DSA signatures, X.509 and TLS 1.3 support.

  • Encryption: On for everyone
  • Logins: Available, switch it on

Last checked against the company's own announcements.

Post-quantum status of Go standard library (crypto/tls)

Encryption of your data (key exchange)

On for everyone

Algorithm: X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024

Since: February 2025

What it covers: crypto/tls client and server when CurvePreferences is nil

X25519MLKEM768 default from 1.24; P-curve hybrids default from 1.26 (Feb 2026). Opt-out via GODEBUG tlsmlkem=0 / tlssecpmlkem=0. crypto/mlkem package since 1.24; crypto/hpke with PQ hybrids since 1.26.

Logins and identity (signatures)

Available, switch it on

Algorithm: ML-DSA-44/65/87

Since: August 2026

What it covers: crypto/mldsa, crypto/x509, TLS 1.3 signatures

Added in Go 1.27; used only with ML-DSA keys/certificates.

Website certificates (proving the site is real)

Available, switch it on

Algorithm: ML-DSA

Since: August 2026

What it covers: crypto/x509 parses and creates ML-DSA keys/signatures

Private PKI use.

What you should do

Build with Go 1.24 or later and leave Config.CurvePreferences unset to get PQ key exchange automatically. Don't set GODEBUG tlsmlkem=0 unless a broken server forces you. Use Go 1.27+ (crypto/mldsa) if you want to test ML-DSA certificates.

Version needed: 1.24

How Go standard library (crypto/tls) compares with other Libraries

How Go standard library (crypto/tls) compares with other Libraries
App or service Encryption (key exchange) Logins (signatures) Checked
.NET Partly Switch it on Dec 4, 2026
AWS-LC Protected Switch it on Dec 4, 2026
BoringSSL Protected Switch it on Dec 4, 2026
Bouncy Castle Switch it on Switch it on Dec 4, 2026
GnuTLS Switch it on Switch it on Dec 4, 2026
Go standard library (crypto/tls) Protected Switch it on Dec 4, 2026
Java / OpenJDK Protected Switch it on Dec 4, 2026
Node.js Protected Switch it on Dec 4, 2026
Open Quantum Safe liboqs Switch it on Switch it on Dec 4, 2026
OpenSSH Protected Not yet Dec 4, 2026
OpenSSL Protected Switch it on Dec 4, 2026
rustls Protected Protected Dec 4, 2026
wolfSSL Switch it on Switch it on Dec 4, 2026

Questions people ask

Is Go standard library (crypto/tls) quantum-safe?

Yes: since Go 1.24 (Feb 2025) crypto/tls uses the hybrid X25519MLKEM768 key exchange by default, and Go 1.26 added SecP256r1MLKEM768 and SecP384r1MLKEM1024 by default. Go 1.27 (Aug 2026) added ML-DSA signatures, X.509 and TLS 1.3 support.

Does Go standard library (crypto/tls) use post-quantum encryption by default?

Yes. Go standard library (crypto/tls) uses post-quantum key exchange by default (X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024). crypto/tls client and server when CurvePreferences is nil

What should I do to stay protected on Go standard library (crypto/tls)?

Build with Go 1.24 or later and leave Config.CurvePreferences unset to get PQ key exchange automatically. Don't set GODEBUG tlsmlkem=0 unless a broken server forces you. Use Go 1.27+ (crypto/mldsa) if you want to test ML-DSA certificates.

When did Go standard library (crypto/tls) add post-quantum protection?

Go standard library (crypto/tls) added it in February 2025.

Are Go standard library (crypto/tls) logins and certificates quantum-safe?

Go standard library (crypto/tls) offers post-quantum signatures, but you have to switch them on.

Sources

  1. Go: Go 1.24 Release Notes (February 2025) official source
  2. Go: Go 1.26 Release Notes (February 2026) official source
  3. Go: Go 1.27 Release Notes (source) (August 2026) official source
  4. Go: crypto/mldsa package official source

Last verified: December 4, 2026. We re-check every app regularly against the company's own announcements and documentation.

See all 101 apps and services Which Libraries are quantum-safe?

Something changed? Suggest a correction

Latest Articles

View all