What Rust needs to use post-quantum algorithms

Rust has no single built-in cryptography stack, so post-quantum use depends on the crates a project chooses. Rustls with the aws-lc-rs provider ships hybrid X25519MLKEM768 key exchange by default, and the sources checked do not show ML-DSA certificates in the public web PKI.

On this page

Which Rust components need to change before post-quantum algorithms work

Rust has no single built-in cryptography stack, so the components you need to change depend on which crates your service uses. In the sources checked, the component with post-quantum key exchange is rustls with the aws-lc-rs provider, as recorded in the rustls releases page entry for 03 Dec, with 0.23.48 preferring the hybrid X25519MLKEM768 key exchange. That statement covers rustls and its aws-lc-rs provider only. It does not cover the openssl crate, the ring provider, or the RustCrypto crates, which are addressed separately below.

An engineer or security lead who owns a Rust service that terminates or originates TLS should start with the TLS path. Check which rustls version is in Cargo.lock, confirm which provider is compiled in, and check whether the process installs a default provider with CryptoProvider::install_default() or passes one explicitly. The rustls README says that from version 0.24 users must supply a crypto provider explicitly, so a service that relies on the implicit default today will need an explicit choice when it upgrades.

Rustls is not the only path. The ring provider is available only through the optional ring feature, and the rustls README says rustls-ring does not support post-quantum algorithms. The rustls::crypto::ring::default_provider() function is deprecated in 0.23.48 for that reason. A service that selects ring for portability or build reasons will not get the hybrid key exchange from rustls alone. The openssl crate, at version 0.10.82 in the docs checked, binds to OpenSSL and LibreSSL, and its documentation as fetched on 2026-12-03 does not mention post-quantum cryptography. Ask your vendor or the upstream project for the OpenSSL version a given build links against, because the crate documentation does not settle that.

The RustCrypto ml-kem, ml-dsa and slh-dsa crates implement the FIPS 203, 204 and 205 algorithms directly in Rust. Their READMEs state that none has been independently audited, and the ml-kem README says to use it at your own risk. Treat them as a separate decision from TLS, not as a drop-in change to a rustls deployment, and confirm with your security team whether an unaudited implementation is acceptable for the data it protects.

Which crate, version and provider supports which post-quantum function

This table compares the Rust crates, versions and providers covered by the sources, listing which post-quantum function each supports and what each source says. Read each row against its source and date, since support depends on the exact crate version, provider and feature flags. The main takeaway is that key exchange is shipped by default in rustls with aws-lc-rs, while ML-DSA signatures and certificates remain experimental or unsupported in the public web PKI.

Crate, version and providerPost-quantum functionSource and date
rustls 0.23.48 with aws-lc-rsX25519MLKEM768 hybrid key exchange preferred by default. Standalone MLKEM768 available but not enabled by default.rustls release notes and defaults page, 03 Dec (year not shown in source)
rustls with ringNo post-quantum support. default_provider() is deprecated.rustls 0.23.48 release notes, 03 Dec (year not shown in source)
rustls-post-quantum 0.2.4MLKEM768 and X25519MLKEM768 on aws-lc-rs. ML-DSA variants are experimental behind the aws-lc-rs-unstable feature.rustls-post-quantum crate docs, as fetched 2026-12-04
rustls 0.23.44ML-DSA certificate support enabled in aws-lc-rs. The release notes state ML-DSA certificates are not supported in the public web PKI.rustls release notes, 07 Sep (year not shown in source)
openssl crate 0.10.82No post-quantum support mentioned in its documentation. Confirm with the crate and OpenSSL version you deploy.openssl crate docs, as fetched 2026-12-03
RustCrypto ml-kemPure Rust implementation of FIPS 203 (ML-KEM-512, ML-KEM-768, ML-KEM-1024). Never independently audited.ml-kem docs (version 0.3.4) and README
RustCrypto ml-dsaPure Rust implementation of FIPS 204 (ML-DSA-44, ML-DSA-65, ML-DSA-87). Never independently audited.ml-dsa README
RustCrypto slh-dsaPure Rust implementation of SLH-DSA based on FIPS 205. Never independently audited.slh-dsa README

Which parts of a Rust build the post-quantum question touches

A Rust application does not get post-quantum algorithms from one switch. The answer depends on which TLS provider is selected, which crypto backend it links, and which crates the code calls directly. Each component below changes what the build can actually negotiate or sign.

rustls CryptoProvider choice

rustls selects its cryptography through a CryptoProvider, and the provider decides which key exchange groups are offered. Post-quantum key exchange is available only with the aws-lc-rs provider, not with ring. The rustls README states that rustls-ring does not support post-quantum algorithms, and from version 0.24 applications must supply a provider explicitly. Check which provider your build installs with install_default() or builder_with_provider(), and confirm the crate features that enable it.

CryptoProvider docs

aws-lc-rs and its fips and non-fips features

aws-lc-rs is the backend that carries rustls' post-quantum key exchange. Its fips feature binds to AWS-LC-FIPS 4.x, and the non-fips feature cannot be combined with fips. Rustls' FIPS guide reports that its FIPS use is covered by FIPS 140-3 certificate #4816 and that later aws-lc-rs releases may be covered by later certificates or be pending certification. Confirm which feature your build uses and whether the certificate your assessors need covers that exact version.

aws-lc-rs docs

rustls-post-quantum crate and its unstable feature

rustls-post-quantum 0.2.4 provides MLKEM768 and X25519MLKEM768 on the aws-lc-rs provider, but rustls itself now ships X25519MLKEM768 by default, so this crate is not needed for that exchange. Its aws-lc-rs-unstable feature adds three experimental ML-DSA signature variants. Rustls 0.23.44 states ML-DSA certificates are not supported in the public web PKI, so do not treat that feature as a certificate path. Check whether your build pulls this crate and whether the unstable feature is enabled.

rustls-post-quantum docs

openssl crate and its vendored feature

The openssl crate binds to system OpenSSL or LibreSSL, and its vendored feature compiles and statically links a copy of OpenSSL through openssl-src. The openssl crate documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography. A build that links OpenSSL therefore inherits whatever algorithms that OpenSSL copy provides, which the crate documentation does not state. Identify which OpenSSL version is linked, whether vendored or system, and check that version's own release notes for post-quantum support.

openssl crate docs

RustCrypto crates used directly

Code that calls the RustCrypto ml-kem, ml-dsa or slh-dsa crates directly uses pure Rust implementations of FIPS 203, FIPS 204 and FIPS 205. Each of their READMEs states the implementation has never been independently audited. Those crates are separate from rustls and are not used by it for the TLS key exchange. Inventory any direct calls, record the crate and version, and decide whether an unaudited implementation is acceptable for the use case before relying on it.

ml-kem README

Steps to enable hybrid key exchange in a Rust TLS service

This sequence moves a Rust TLS service onto the hybrid X25519MLKEM768 key exchange that rustls ships in its aws-lc-rs provider. It confirms the rustls version, pins the provider explicitly, checks which provider is active at run time, tests real client connections, and checks the FIPS path if it applies. Each step ends with a check you can record as evidence.

  1. Confirm the rustls version in use

    The engineer who owns the service checks the rustls version in Cargo.lock, not only in Cargo.toml, because the lock file records what is actually built. The rustls 0.23.48 release notes say the aws-lc-rs provider now prefers X25519MLKEM768 regardless of crate features, so this version or later is the starting point for this sequence. Earlier 0.23.x releases should be upgraded before the remaining steps are applied. The step is closed when the lock file shows rustls at 0.23.48 or later and the build passes.

  2. Select the aws-lc-rs provider explicitly

    The engineer declares the provider in code instead of relying on defaults. Rustls 0.24 requires an explicit crypto provider, so the service should pass the aws-lc-rs provider through builder_with_provider() on the ServerConfig or ClientConfig builder, or call CryptoProvider::install_default() once at startup. The rustls README identifies rustls-aws-lc-rs as the first-party provider with the complete feature set, including post-quantum algorithms. The step is closed when the code compiles with the provider named in source and the choice is recorded in the service's configuration review.

  3. Confirm the active provider at run time

    The engineer confirms which provider the running process uses, since a process has at most one implicit default and a dependency may have set it. The check reads the provider from the configuration the service builds and logs its name and the first entry of kx_groups at startup. The first kx_groups entry is the group the client offers in the TLS 1.3 ClientHello, so X25519MLKEM768 should appear there. If a ring provider is active, the rustls 0.23.48 notes state that ring does not support post-quantum algorithms, so the start-up log should show aws-lc-rs. The step is closed when the startup log records the provider and key exchange group, and the log is kept with the change record.

  4. Test client connections against the service

    The engineer runs test connections from the client types the service must support, such as browsers, API clients and internal services, and records whether each handshake completes. The rustls defaults documentation warns that some users see unexpected connection failures with X25519MLKEM768 and asks that they be reported, so failures should be treated as a finding rather than dismissed. Where a client fails, the team should check whether the client offers a hybrid group and fall back to the previous behavior only through a documented decision. The step is closed when each client type is listed with its result and any failures have a recorded owner.

  5. Check the FIPS path if FIPS 140-3 applies

    The engineer checks whether the service must run under a FIPS 140-3 validated module. If it does, the rustls FIPS guide says to enable the fips crate feature and install default_fips_provider() as the process default. The guide states that the FIPS use is covered by FIPS 140-3 certificate #4816 and that later aws-lc-rs releases may be covered by later certificates or may be pending certification, so the team should confirm the current certificate status with the vendor and not assume it. The FIPS status should be read at run time through ClientConfig::fips() or ServerConfig::fips(). The step is closed when the FIPS requirement is recorded as applicable or not applicable, and where applicable the run-time status and certificate status have been confirmed in writing.

How the answer changes by build choice and deployment

This is the default build for rustls, because the aws_lc_rs feature is enabled by default and the aws-lc-rs provider is the one rustls describes as having the complete feature set. The rustls 0.23.48 release notes say this provider now prefers X25519MLKEM768 key exchange regardless of crate features, and that X25519MLKEM768 remains its first preference. The rustls defaults page describes X25519MLKEM768 as a hybrid post-quantum key exchange available with this provider, and it notes that standalone MLKEM768 is available but not enabled by default.

  • Key exchange: X25519MLKEM768 is the hybrid group the provider prefers, per the 0.23.48 release notes and the defaults page.
  • Standalone ML-KEM: MLKEM768 by itself is available but not enabled by default.
  • Certificates: The sources checked do not show ML-DSA certificates in the default path. Rustls 0.23.44 describes ML-DSA certificates as unsupported in the public web PKI.
  • Known behavior: The defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks for them to be reported.
  • Provider selection: Explicit provider setup is required from version 0.24, so confirm how your code selects the provider.

Confirm your exact rustls and aws-lc-rs versions, and test connections to peers you depend on, because the sources describe the hybrid group but do not list which peers accept it.

How rustls selects the key exchange group a client offers

In rustls, the first entry in a CryptoProvider's kx_groups list is the key exchange group a client offers first. In TLS 1.3, the client sends a key share for that group in its ClientHello, so the order of this list directly decides what a connection attempts. The rustls CryptoProvider documentation states that cipher_suites and kx_groups are ordered by preference. Teams planning post-quantum work should therefore read the provider's kx_groups order, not just whether a post-quantum group appears somewhere in the list. Rustls 0.23.48 states that the aws-lc-rs provider prefers X25519MLKEM768 regardless of crate features, and that X25519MLKEM768 remains its first preference, so a client built on that version with that provider leads with the hybrid group. Confirm this in your own build, because the first entry is what the server will see.

A rustls process has at most one implicit default provider, which can be set once with CryptoProvider::install_default(). Applications can instead pass a provider explicitly with builder_with_provider() on the config or verifier builders. Which provider loads depends on features. The aws-lc-rs provider is enabled by default through the aws_lc_rs feature, the ring provider is available only through the optional ring feature, and the custom-provider feature disables implicit use of the built-in providers. Rustls 0.23.48 also deprecates rustls::crypto::ring::default_provider() because ring does not support post-quantum algorithms, so a build that loads ring may offer a different set of groups than one that loads aws-lc-rs. The rustls README says that from version 0.24, users must supply a crypto provider explicitly.

For a readiness check, confirm three things in each service: which provider is actually installed at startup, which version of rustls and of the provider the binary links, and the order of kx_groups the running code produces. Dependencies can pull in a different provider than the one the team intended, and a single process can only have one implicit default, so a transitive dependency that calls install_default() first may decide the answer. Record the provider name and feature flags in your inventory, and re-run the check after any dependency update. The sources listed here do not state how a given downstream application configures its provider, so confirm that in the application's own code and build configuration.

What the sources do not show and what to ask the maintainers

The sources in this inventory answer what the rustls, aws-lc-rs, openssl and RustCrypto projects document today, but several points that matter for a Rust upgrade are either absent or stated only in part. Each card below names one open item, why it affects a post-quantum plan for Rust, and where the question should go so that the answer can be recorded and dated.

Public web PKI certificates with ML-DSA

Rustls 0.23.44 enabled ML-DSA certificate support by default in its aws-lc-rs provider, but its release notes state that ML-DSA certificates are not supported in the public web PKI. The sources do not say whether that position has changed since, or what would have to happen before a publicly trusted certificate chain using ML-DSA could be issued and validated by browsers and clients. Before planning certificate work for internet-facing services, ask the rustls maintainers, through the project's GitHub issue tracker, whether public web PKI support is planned, which dependencies (such as CA and browser root program acceptance) it would wait on, and whether any date has been set. Record the answer and the release it refers to, because the status is likely to move.

Rustls releases

Post-quantum options in the openssl crate

The openssl crate at version 0.10.82 binds to OpenSSL 1.0.2 through 4.x.x and LibreSSL 3.5 through 4.4.x, and its vendored feature statically links a copy of OpenSSL through openssl-src. Its documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography. That does not establish that no post-quantum option exists, because the crate exposes whatever the linked OpenSSL build provides, but the crate documentation does not name one. Teams that use the openssl crate for TLS should confirm the OpenSSL version and build they link, check that version's own documentation for post-quantum key exchange and signature algorithms, and ask the openssl crate maintainers on the project's GitHub repository which OpenSSL versions and bindings they intend to expose and whether any wrapper API is planned.

openssl crate docs

Independent audits of RustCrypto crates

The READMEs for the RustCrypto ml-kem, ml-dsa and slh-dsa crates each state that the implementation has never been independently audited, and ml-kem adds that it should be used at your own risk. The sources do not say whether an audit is scheduled or who would perform it. This matters because these crates implement FIPS 203, FIPS 204 and FIPS 205 in pure Rust, and a security reviewer will need to decide whether to accept unaudited code in a production path. Ask the RustCrypto maintainers, through the relevant repository issue tracker, whether an audit has been commissioned, which scope it would cover and when results would be published. Until an answer is recorded, treat the absence of an audit as a finding in the risk assessment.

ml-kem README

Default enablement of standalone MLKEM768

The rustls defaults page says that standalone MLKEM768 is available separately but is not enabled by default, out of conservatism. It names X25519MLKEM768, a hybrid that combines a classical curve with ML-KEM, as the post-quantum key exchange enabled in the aws-lc-rs provider. The sources do not say whether standalone MLKEM768 will become a default, or under what conditions that would happen. Because the choice changes which key exchange a client offers in the TLS 1.3 ClientHello, it affects interoperability with peers that do not support ML-KEM. Ask the rustls maintainers, on the project's GitHub issue tracker, whether standalone MLKEM768 will be enabled by default, what criteria would trigger the change, and how the project will notify users. Confirm in your own environment which group the client sends in its first key share.

Rustls defaults

Questions engineers and vendor-risk reviewers ask about Rust and post-quantum

Is Rust quantum safe?

Rust has no single built-in cryptography stack, so the answer depends on which crates a project uses. The sources supporting a post-quantum claim are for rustls, the TLS library, using the aws-lc-rs provider. Rustls 0.23.48 states that aws-lc-rs prefers the hybrid key exchange X25519MLKEM768, which combines a classical elliptic-curve exchange with the ML-KEM post-quantum algorithm. This is a statement about key exchange only. It is not a statement that the application, its certificates, its signatures or its deployment are quantum safe, and it is not a compliance or certification claim. Review each crate and component your system uses, and check the version and provider you actually ship.

Which rustls version do I need for post-quantum key exchange?

Rustls 0.23.48 is the release that states the aws-lc-rs provider prefers X25519MLKEM768 regardless of crate features. Earlier 0.23.x releases should be checked against their own release notes before you assume the same default. Pin the version in your Cargo.lock and confirm with cargo tree that the aws-lc-rs provider is the one in use. From version 0.24, the rustls README says you must supply a crypto provider explicitly, so plan that change when upgrading. The ring provider does not support post-quantum algorithms, and its default_provider() is deprecated in 0.23.48.

Does moving Rust to post-quantum key exchange cost extra?

The sources do not give pricing, licensing terms or performance figures for these crates, so no cost figure can be stated here. The cost components are mainly engineering time to upgrade and retest, the dependency and build changes, and any retesting of connections, since rustls notes that some users have seen unexpected failures with X25519MLKEM768. The crates themselves are open source, so ask whether a vendor or outside partner charges for the work. Ask for a written scope that lists the crates, versions, providers and environments covered, and whether ongoing upgrades are included.

What breaks when Rust moves to post-quantum key exchange?

The main known risk in the sources is connection failure. The rustls defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks that they be reported. Before rollout, check that peers you connect to accept the hybrid group, test client and server handshakes, and review any code that sets key exchange groups explicitly, since the first kx_groups entry is the group sent in the TLS 1.3 ClientHello. The sources describe ML-DSA certificates as unsupported in the public web PKI, so do not expect post-quantum certificates to work with public endpoints. Also note that the openssl crate's documentation does not mention post-quantum cryptography.

What should I ask the Rust project or maintainers before upgrading?

Ask which crate versions and providers ship post-quantum key exchange by default, and whether the statement applies to all feature combinations you use. Ask for the release notes that describe the change, and for any deprecation timeline for the ring provider and the prefer-post-quantum feature. For the RustCrypto ml-kem, ml-dsa and slh-dsa crates, ask whether they have been independently audited, since their READMEs say they have never been audited and should be used at your own risk. For FIPS, ask which certificate covers the aws-lc-rs version you run, because the rustls FIPS guide cites certificate #4816 and says later releases may be pending certification.

Can our team upgrade Rust for post-quantum use without outside help?

A team with strong Rust and TLS experience can often make the core change: pin rustls and aws-lc-rs, select the provider explicitly, and test handshakes against your peers. The harder parts are the inventory of every crate that touches cryptography, testing against real peers and load patterns, and keeping up with releases, since the post-quantum crates are still changing and some are not audited. If your team lacks that time or depth, DeployOpen can plan the scope, run the upgrade in your own infrastructure, test it and document it for your compliance team. DeployOpen does not issue audit reports or certifications. Work is scoped in writing before it starts.

How DeployOpen helps plan and test a Rust post-quantum upgrade

DeployOpen starts from the Rust crates your services actually use, such as rustls with its aws-lc-rs or ring provider, the openssl crate and any RustCrypto crates. We map what each one needs in build options, provider selection and surrounding components before any code changes, so the upgrade is planned against your real dependency tree.

How we scope

  • We inventory the crates in your dependency tree, including rustls, aws-lc-rs, ring, the openssl bindings and RustCrypto ml-kem, ml-dsa and slh-dsa.
  • We record which CryptoProvider each service uses, whether it is set by install_default() or passed to builder_with_provider(), and which crate features are enabled.
  • We agree the written scope for your Rust services in advance, covering which services, versions and environments are in and out. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we build

  • We move services onto a provider that offers post-quantum algorithms, and confirm the rustls-aws-lc-rs path rather than rustls-ring, which does not support them.
  • We check the default key exchange order, including X25519MLKEM768 on aws-lc-rs, and document any change in connection behavior for each service.
  • We review whether ML-DSA certificate support is needed, since rustls 0.23.44 states ML-DSA certificates are not supported in the public web PKI.

How we test

  • We run handshake tests against each service to find unexpected connection failures, which the rustls defaults page says some users may see with X25519MLKEM768.
  • We test FIPS-mode builds separately, checking the fips feature, the default_fips_provider() install and the run-time status reported by ClientConfig::fips().
  • We confirm the crate versions and their audit status with you, noting that the RustCrypto ml-kem, ml-dsa and slh-dsa READMEs state they have never been independently audited.

How we hand over

  • We deliver a written inventory of every Rust service, its provider, crate versions and key exchange and signature settings at handover.
  • We document the build options, feature flags and provider configuration each service needs, so your team can reproduce the setup.
  • We record open items, such as crates that are not independently audited and certificate support still unavailable in the public web PKI, so your security and vendor-risk reviewers can assess them.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.