rustls · rustls project (TLS library for Rust)

Does rustls support post-quantum key exchange?

Key exchange

For key exchange, yes. rustls prefers the hybrid X25519MLKEM768 by default since version 0.23.27, when used with its aws-lc-rs provider. The ring provider has no post-quantum algorithms and is deprecated. Server certificates are still ECDSA, Ed25519 or RSA.

Last change 3 Dec 2026Checked 3 sources

Where it stands

rustls 0.23.22 (30 January 2025) added X25519MLKEM768 with the aws-lc-rs provider at low priority. 0.23.27 (5 May 2025) made post-quantum key exchange preferred by default. 0.23.48 (3 December 2026) made the aws-lc-rs provider prefer it regardless of crate features, deprecated the ring provider and moved P-384 ahead of X25519 and P-256 for classical key exchange.

What comes next

ML-KEM-768 without the classical half is available separately but is not enabled by default, which the project explains with conservatism.

What is at risk today

Server authentication uses ECDSA, Ed25519 or RSA certificates, which a large quantum computer could forge. Programs built on the ring provider only have classical key exchange with curve25519, nistp256 or nistp384, which leaves recorded traffic open to later decryption.

Timeline

  1. rustls 0.23.22 added X25519MLKEM768 with the aws-lc-rs provider, offered at low priority. github.com
  2. rustls 0.23.27 made post-quantum key exchange preferred by default. github.com
  3. rustls 0.23.48 always prefers X25519MLKEM768 with aws-lc-rs and deprecated the ring provider. github.com

Sources