Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Vendor: rustls project · https://rustls.dev/ · pkg:cargo/rustls · Last reviewed 2026-12-05 · History

Summary

  • With the aws-lc-rs provider, the hybrid group X25519MLKEM768 is the first preference by default in TLS 1.3 from 0.23.27, and from 0.23.48 regardless of crate features.12
  • With the ring provider rustls is classical; the 0.23.48 notes say ring “does not support post-quantum algorithms” and deprecate its default provider.2
  • ML-DSA certificates are enabled by default with aws-lc-rs from 0.23.44.3
  • SecP256r1MLKEM768 (from 0.23.28) and ML-KEM-1024 (from 0.23.37) are available, not offered by default.45
  • Classical groups can be disabled by the program’s author with a custom CryptoProvider; an end user cannot unless the program exposes a setting.42

Use the aws-lc-rs provider on rustls 0.23.27 or later; from 0.23.48 no feature flags are involved.12

Cryptographic operations

  • TLS key agreement (client or server): aws-lc-rs supports X25519MLKEM768 since 0.23.22, first “offered at a low algorithm negotiation priority”.6 From 0.23.27: “Prefer post-quantum key exchange algorithms by default.”, via the prefer-post-quantum default feature, which default-features = false lost.1
  • 0.23.48: “The aws-lc-rs provider now prefers X25519MLKEM768 key exchange regardless of crate features. Previously this required the prefer-post-quantum feature, which was easily lost when using default-features = false.” Also: “P-384 is now preferred over X25519 and P-256 in the default key exchange groups of both the aws-lc-rs and ring providers.”2
  • TLS authentication (0.23.44): “Support for post-quantum secure ML-DSA certificates is now enabled by default in the aws-lc-rs crypto provider. ML-DSA certificates are not supported in the public web PKI, but they can be used with private certificate hierarchies.”3

Versions

Change Version Date Package URL Source
X25519MLKEM768 with aws-lc-rs, low priority; prefer-post-quantum feature added 0.23.22 2025-01-30 pkg:cargo/rustls@0.23.22 6
X25519MLKEM768 preferred by default (prefer-post-quantum in default features) 0.23.27 2025-05-05 pkg:cargo/rustls@0.23.27 1
SecP256r1MLKEM768 available, not offered by default 0.23.28 2025-06-16 pkg:cargo/rustls@0.23.28 4
ML-KEM-1024 key exchange available 0.23.37 2026-02-24 pkg:cargo/rustls@0.23.37 5
ML-DSA certificates enabled by default with aws-lc-rs 0.23.44 2026-09-07 pkg:cargo/rustls@0.23.44 3
X25519MLKEM768 preferred regardless of crate features; P-384 preferred among classical groups; ring default provider deprecated 0.23.48 2026-12-03 pkg:cargo/rustls@0.23.48 2

Before 0.23.22, hybrid key exchange was in the separate crate rustls-post-quantum: X25519Kyber768Draft00 first, X25519MLKEM768 from its 0.2.0.7

Configuration

Enabling PQC

For 0.23.22 to 0.23.26, enable the feature; ring has no post-quantum key exchange in any version:

rustls = { version = "0.23.22", features = ["prefer-post-quantum"] }

Disabling classical algorithms

  • Build a CryptoProvider whose kx_groups contains only hybrid groups: “Use a custom CryptoProvider if you need a different order”; rustls::crypto::aws_lc_rs::kx_group::SECP256R1MLKEM768 “can be added to a custom CryptoProvider::kx_groups”.42
  • Peers supporting none of the listed groups fail the handshake. There is no configuration file or environment variable; the choice is compiled in.

References

  1. rustls release 0.23.27. https://github.com/rustls/rustls/releases/tag/v%2F0.23.27 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4

  2. rustls release 0.23.48. https://github.com/rustls/rustls/releases/tag/v%2F0.23.48 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  3. rustls release 0.23.44. https://github.com/rustls/rustls/releases/tag/v%2F0.23.44 (accessed 2026-12-05) ↩ ↩2 ↩3

  4. rustls release 0.23.28. https://github.com/rustls/rustls/releases/tag/v%2F0.23.28 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4

  5. rustls release 0.23.37. https://github.com/rustls/rustls/releases/tag/v%2F0.23.37 (accessed 2026-12-05) ↩ ↩2

  6. rustls release 0.23.22. https://github.com/rustls/rustls/releases/tag/v%2F0.23.22 (accessed 2026-12-05) ↩ ↩2

  7. rustls-post-quantum release 0.2.0. https://github.com/rustls/rustls/releases/tag/rustls-post-quantum-v%2F0.2.0 (accessed 2026-12-05) ↩


Edit: rustls

If you give an email address it is recorded publicly as the author of the commit, and GitHub will link the commit to your account if that address belongs to one.

Edits are reviewed before they appear. By submitting you release your contribution under CC BY-SA 4.0. Read the editorial guidelines first.

This site uses Just the Docs, a documentation theme for Jekyll.