Vendor: rustls project · https://rustls.dev/ · pkg:cargo/rustls · Last reviewed 2026-12-05 · History
Summary
- With the
aws-lc-rsprovider, 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
ringprovider 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-rsfrom 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-rsprovider 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-rssupports 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 theprefer-post-quantumdefault feature, whichdefault-features = falselost.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
CryptoProviderwhosekx_groupscontains 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
-
rustls release 0.23.27. https://github.com/rustls/rustls/releases/tag/v%2F0.23.27 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4
-
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
-
rustls release 0.23.44. https://github.com/rustls/rustls/releases/tag/v%2F0.23.44 (accessed 2026-12-05) ↩ ↩2 ↩3
-
rustls release 0.23.28. https://github.com/rustls/rustls/releases/tag/v%2F0.23.28 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4
-
rustls release 0.23.37. https://github.com/rustls/rustls/releases/tag/v%2F0.23.37 (accessed 2026-12-05) ↩ ↩2
-
rustls release 0.23.22. https://github.com/rustls/rustls/releases/tag/v%2F0.23.22 (accessed 2026-12-05) ↩ ↩2
-
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) ↩