Rust alternatives for post-quantum work compared

Rustls with the aws-lc-rs provider is the only ecosystem option in the sources checked that ships hybrid post-quantum key exchange by default. The ring provider, the openssl crate and the RustCrypto crates each differ in algorithm coverage, audit status and effort to adopt.

On this page

Which Rust path fits a post-quantum plan today

Teams choosing a Rust path for post-quantum work need to decide which cryptographic provider sits under their TLS stack, because that choice determines whether post-quantum key exchange is available at all. As of 2026-12-04, rustls with the aws-lc-rs provider ships X25519MLKEM768 as its default hybrid key exchange in the sources checked, and rustls 0.23.48 states that aws-lc-rs now prefers that group regardless of crate features. The ring provider does not support post-quantum algorithms, and rustls 0.23.48 deprecates rustls::crypto::ring::default_provider() for that reason. The RustCrypto ml-kem, ml-dsa and slh-dsa crates are pure Rust implementations of FIPS 203, 204 and 205, but each README states the code has never been independently audited.

Platform engineers picking a TLS stack should check which provider their rustls build actually uses, since the aws-lc-rs provider is enabled through the aws_lc_rs feature and the ring provider only through the optional ring feature. From version 0.24, the rustls README says applications must supply a crypto provider explicitly, so a dependency update can change the provider in use. Confirm the provider with builder_with_provider() or the process default set by CryptoProvider::install_default(), and test the connection, because the rustls defaults page warns that some users see unexpected failures with X25519MLKEM768 and asks for reports.

Security leads reviewing dependencies should treat the RustCrypto post-quantum crates and the ML-DSA material differently from the TLS key exchange. The rustls 0.23.44 release notes describe ML-DSA certificate support as unsupported in the public web PKI, and the rustls-post-quantum docs describe its ML-DSA variants only as experimental under the aws-lc-rs-unstable feature. Record the rustls and aws-lc-rs versions in use, confirm with the vendor or maintainers which post-quantum algorithms they stand behind, and check whether the FIPS build is required, since the rustls FIPS guide covers certificate #4816 and states that later aws-lc-rs releases may be pending certification.

How each Rust option compares on post-quantum support

This table compares the main Rust cryptography options on the algorithms they support, whether post-quantum support is on by default, and their audit status, with the source and date for each row. Read the rows to see which option offers post-quantum key exchange or signatures today, and which options have no post-quantum support or have never been independently audited.

OptionPost-quantum algorithms supportedDefault stateAudit status and source
rustls with aws-lc-rsHybrid X25519MLKEM768 key exchange; standalone MLKEM768 available; ML-DSA certificate supportHybrid X25519MLKEM768 preferred by default; standalone MLKEM768 not enabled by default; ML-DSA certificates not supported in the public web PKIAudit status not stated in the sources reviewed; rustls manual FIPS cites FIPS 140-3 certificate #4816 for FIPS use (rustls manual FIPS, rustls releases 0.23.48, 0.23.44)
rustls with ringNone; the rustls release notes say ring does not support post-quantum algorithmsNot applicable; rustls::crypto::ring::default_provider() is deprecated as of 0.23.48Audit status not stated in the sources reviewed (rustls releases 0.23.48)
openssl crateNot stated; the crate documentation, as fetched on 2026-12-03, does not mention post-quantum cryptographyNot stated in the crate documentationNot stated in the crate documentation (openssl crate docs, version 0.10.82)
rustls-post-quantumHybrid X25519MLKEM768 and standalone MLKEM768 on the aws-lc-rs provider; three experimental ML-DSA variants behind the aws-lc-rs-unstable featureML-DSA variants are off unless the aws-lc-rs-unstable feature is enabled; the docs describe them as experimental and unstableAudit status not stated in the sources reviewed (rustls-post-quantum docs, version 0.2.4)
RustCrypto ml-kemML-KEM-512, ML-KEM-768 and ML-KEM-1024, pure Rust implementation of FIPS 203 (docs show 0.3.4)No features enabled by defaultNever independently audited, according to the crate README; the README says to use it at your own risk (ml-kem README)
RustCrypto ml-dsaML-DSA-44, ML-DSA-65 and ML-DSA-87, pure Rust implementation of FIPS 204Not stated in the README reviewedNever independently audited, according to the crate README (ml-dsa README)
RustCrypto slh-dsaSLH-DSA, pure Rust implementation based on FIPS 205Not stated in the README reviewedNever independently audited, according to the crate README (slh-dsa README)

Which ecosystem component answers which need

Rust has no single built-in cryptography stack, so teams pick components by function: TLS, the provider that performs the cryptography, bindings to OpenSSL, or standalone post-quantum algorithm crates. The cards below set out what each one does, what it does not do, and where it differs for the alternatives question.

rustls for TLS

Rustls implements TLS 1.2 and TLS 1.3 for clients and servers. It does not perform the underlying cryptography itself: it delegates to a CryptoProvider. Its key exchange is ECDHE over curve25519, nistp256 or nistp384, and its authentication uses ECDSA, Ed25519 or RSA, so all of those classical public-key dependencies are in scope. Check which provider your build selects, since that determines post-quantum support.

Rustls README

aws-lc-rs as the provider

aws-lc-rs is the provider that carries post-quantum key exchange in rustls. It is enabled by default in rustls through the aws_lc_rs feature. Rustls 0.23.48 prefers X25519MLKEM768 regardless of crate features, with that hybrid remaining first for aws-lc-rs. Its fips feature binds to AWS-LC-FIPS 4.x, and it cannot be combined with non-fips. Confirm the exact aws-lc-rs version in your lockfile.

Version cited
1.19.0
aws-lc-rs docs

ring as a classical provider

Ring is available to rustls only through the optional ring feature. It does not support post-quantum algorithms, and rustls deprecated rustls::crypto::ring::default_provider() in 0.23.48 for that reason. Teams that pin ring for its footprint or compatibility should expect classical key exchange only. Check your rustls-ring configuration explicitly, because from version 0.24 an application must supply its crypto provider.

The openssl crate for bindings

The openssl crate binds Rust to OpenSSL 1.0.2 through 4.x.x and LibreSSL 3.5 through 4.4.x, at version 0.10.82. Its vendored feature compiles and statically links a copy of OpenSSL through openssl-src, so the OpenSSL version you ship is set by that build. The crate's documentation, fetched on 2026-12-03, does not mention post-quantum cryptography. Whether post-quantum support exists depends on the OpenSSL build underneath, not on the crate itself.

openssl crate docs

RustCrypto ML-KEM, ML-DSA and SLH-DSA

These are standalone pure Rust implementations: ml-kem follows FIPS 203, ml-dsa follows FIPS 204, and slh-dsa follows FIPS 205. They are not TLS stacks and do not connect to rustls by themselves. Each README states the implementation has never been independently audited and says to use it at your own risk. Confirm audit status before any production use, and do not treat them as a substitute for a validated provider.

ml-kem README

rustls-post-quantum for experiments

The rustls-post-quantum crate, at version 0.2.4, provides MLKEM768 and X25519MLKEM768 on the aws-lc-rs provider and an aws-lc-rs-unstable feature that adds three experimental ML-DSA signature variants. Its ML-KEM exchanges moved into rustls itself before rustls 0.23.22. Treat its ML-DSA support as experimental, because rustls 0.23.44 states ML-DSA certificates are not supported in the public web PKI.

rustls-post-quantum docs

How the choice differs by team and goal

Teams that terminate or initiate TLS in a Rust service should look first at rustls. The rustls README describes it as a TLS 1.2 and TLS 1.3 implementation for clients and servers, and it names two first-party providers. The rustls-aws-lc-rs provider has the complete feature set, including post-quantum algorithms, while rustls-ring does not support post-quantum algorithms. In the rustls 0.23.48 release notes, the aws-lc-rs provider prefers X25519MLKEM768 key exchange, a hybrid post-quantum key exchange, regardless of crate features. Standalone MLKEM768 is available but not enabled by default. The rustls defaults page also warns that some users may see unexpected connection failures with X25519MLKEM768 and asks for those to be reported.

  • Provider choice: Use the aws-lc-rs provider if you need post-quantum key exchange. The ring provider is deprecated in rustls 0.23.48 because ring does not support post-quantum algorithms.
  • Explicit provider: From version 0.24, you must supply a crypto provider explicitly, so plan the provider in your build.
  • Key exchange only: The hybrid key exchange protects the session key. It does not make certificates or signatures post-quantum.
  • Certificate authentication: Server and client authentication still use ECDSA, Ed25519 or RSA as documented in the rustls manual.
  • Failure reporting: Test X25519MLKEM768 against the peers you talk to and report unexpected handshake failures.

Confirm your peers' TLS support and your provider configuration with a test handshake before you rely on it in production.

How to decide among the Rust options

The diagram starts from the need: TLS, FIPS validation, pure-Rust primitives, or bindings to an existing OpenSSL. Each branch leads to the option the sources support. The TLS branch goes to rustls with a provider choice, since the aws_lc_rs provider is enabled by default and supports X25519MLKEM768, while ring does not support post-quantum algorithms. The FIPS branch goes to rustls with aws-lc-rs in fips mode, which the FIPS guide ties to certificate #4816. The pure-Rust branch goes to the RustCrypto crates, which the READMEs say have never been independently audited. Check each branch's version and feature flags before relying on it.

Each branch is labeled with the source fact that drives the choice.

What to do next when choosing a Rust path

This sequence turns the comparison into a decision your team can defend. Each step produces a written check you can record in your inventory or vendor-risk file. Work through them in order, because later steps depend on the provider choice made earlier.

  1. List your TLS and primitive needs

    Start by writing down which protocols your Rust services must speak (TLS 1.2, TLS 1.3, or both), which peers they connect to, and which signature and key exchange algorithms those peers accept. Include certificate types, server and client authentication, and any FIPS or contractual requirements. Your engineers and the owners of the peer systems should confirm the list. This step is done when the list is written down and each peer's requirements have a named owner.

  2. Check the rustls provider choice and version

    Confirm which rustls version your services use and which CryptoProvider it loads. Rustls documents two first-party providers: rustls-aws-lc-rs, which includes post-quantum algorithms, and rustls-ring, which does not. From version 0.24 an explicit provider must be supplied. Check your Cargo.lock and your startup code, and record the provider and version in the inventory. This step is done when you can name the provider in use for each service and show it in your code.

  3. Confirm the aws-lc-rs feature set

    If your path uses the aws-lc-rs provider, confirm which crate features are enabled, including whether the fips feature is set and whether non-fips is set, since the two cannot be combined. The aws-lc-rs 1.19.0 documentation binds the fips feature to AWS-LC-FIPS 4.x. If you need FIPS validation, also check the FIPS certificate listed in the rustls FIPS guide and whether your version is covered. This step is done when the feature list is recorded for each build and matches your compliance requirement.

  4. Check whether RustCrypto crates fit the audit requirement

    If you are considering the RustCrypto ml-kem, ml-dsa or slh-dsa crates directly, read their READMEs before deciding. Each states that the implementation has never been independently audited. If your organization requires an independent audit of cryptographic code, these crates do not meet that requirement as documented, and you should confirm this with your assessor. Record the decision and the reason. This step is done when you have a written yes or no on RustCrypto use for each audit-bound system.

  5. Test client compatibility with X25519MLKEM768

    Rustls 0.23.48 prefers X25519MLKEM768 key exchange with the aws-lc-rs provider, and the rustls defaults documentation warns that some users see unexpected connection failures with it. Run a test with peers and clients you actually serve, including older browsers, API clients and partner systems, and log any handshake failures. Report failures to the rustls project as its documentation requests. This step is done when you have a test record covering each peer type and any failures are either resolved or documented as open.

What the sources do not cover and what to ask

The sources checked for this page answer the state of Rust's main TLS and crypto crates as of their listed versions, but leave several questions open that matter for planning. Each card below names one open point and the question to put to the vendor or maintainer before relying on it.

Post-quantum support in the openssl crate

The openssl crate at version 0.10.82 binds to OpenSSL 1.0.2 through 4.x.x and to LibreSSL 3.5 through 4.4.x, and its vendored feature compiles and statically links a copy of OpenSSL through the openssl-src crate. The crate documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography at all. That silence does not show whether the bound OpenSSL versions offer post-quantum algorithms, or whether the crate exposes them. Ask the maintainers whether any planned release will expose post-quantum key exchange or signatures, and which OpenSSL version each would require. Until they answer, treat any code that reaches TLS through this crate as unconfirmed for post-quantum use.

openssl crate docs

ML-DSA certificates in the public web PKI

Rustls 0.23.44 enabled ML-DSA certificate support by default in the aws-lc-rs provider, and its release notes state that ML-DSA certificates are not supported in the public web PKI. The rustls-post-quantum crate also describes ML-DSA signatures only as an experimental feature behind aws-lc-rs-unstable. So the sources support ML-DSA in private or test deployments, not in certificates browsers trust. Ask the certificate authorities and the browser programs whether they plan to issue and accept ML-DSA certificates for public TLS, and on what timeline. Do not plan a public-facing service around ML-DSA certificates until those statements exist in writing.

rustls releases

Independent audits of the RustCrypto crates

The RustCrypto ml-kem, ml-dsa and slh-dsa READMEs each state that the implementation has never been independently audited. The ml-kem README goes further and tells users to use it at their own risk. These crates are pure Rust implementations of FIPS 203, 204 and 205, so they are the route for teams that want to avoid native bindings. Ask the maintainers whether an independent audit has been commissioned, who would perform it, and whether its report would be published. Until an audit is public, a security review should record the crates as unaudited and weigh that against the choice of a provider with a validated module.

ml-kem README

FIPS status of later aws-lc-rs releases

The rustls FIPS guide says 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 may be pending certification. The aws-lc-rs 1.19.0 docs say the fips feature binds to AWS-LC-FIPS 4.x and that AWS-LC-FIPS 3.0.x maps to releases below 1.18.0. Those two facts do not say which module version each aws-lc-rs release is validated under. Ask the aws-lc-rs maintainers which certificate covers the release you pin, and whether a given release is validated, pending or unvalidated. Record the certificate number and the exact aws-lc-rs and AWS-LC-FIPS versions in your evidence file, because a later upgrade can change that status.

rustls FIPS guide

Hybrid key exchange failures in production

Rustls 0.23.48 states that the aws-lc-rs provider now prefers X25519MLKEM768 key exchange regardless of crate features. The rustls defaults page warns that some users may see unexpected connection failures with that hybrid exchange and asks for them to be reported. The sources do not say how often these failures occur, which peers cause them, or whether they affect only some network paths. Ask the rustls maintainers for the known failure patterns and a way to force a classical group during a rollout. Plan a test against the peers your service actually talks to before the default change reaches production.

rustls manual defaults

Standalone ML-KEM and provider deprecations

The rustls defaults page says standalone MLKEM768 is available but not enabled by default, out of conservatism. The 0.23.48 release notes also deprecate rustls::crypto::ring::default_provider() because ring does not support post-quantum algorithms, and say the prefer-post-quantum feature remains only for compatibility. The sources do not say when standalone MLKEM768 will be enabled by default, or when the deprecated ring entry point will be removed. Ask the rustls maintainers for both dates, and check whether your code calls the deprecated provider path. A removal without notice could break a build that pins a version range.

rustls README

What can go wrong when choosing the post-quantum path

The most visible risk is a connection that works today and fails after a post-quantum key exchange is enabled. Rustls makes X25519MLKEM768 the first key exchange preference when the aws-lc-rs provider is in use, and its defaults page warns that some users may see unexpected connection failures with this hybrid group and asks them to report those cases to the project. Before enabling it in a service that talks to partners, legacy clients or internal middleboxes, test the handshake against each peer you depend on. Confirm which key exchange groups each side negotiates, and keep a rollback path that restores a classical-only configuration without a redeploy of the whole stack.

The provider choice carries a separate risk. Rustls 0.23.48 deprecates rustls::crypto::ring::default_provider() because the ring provider does not support post-quantum algorithms, and the README names rustls-ring as lacking post-quantum support. A build that still selects ring will not offer X25519MLKEM768 even though the code compiles and runs. Since version 0.24 requires an explicit crypto provider, check whether your code calls install_default() or passes a provider through builder_with_provider(), and confirm that the provider in use is the aws-lc-rs one. The prefer-post-quantum feature now only enables aws_lc_rs, so a configuration that relied on it to select the post-quantum path needs to be reviewed as well.

Two further points need review before a security assessment. The RustCrypto ml-kem, ml-dsa and slh-dsa crates state that they have never been independently audited, and their READMEs say to use them at your own risk, so ask whether any product on your path depends on them directly. Also, rustls holds only one implicit process default provider, and if none is set explicitly the choice depends on crate features such as aws_lc_rs and custom-provider. Make the provider explicit in code, record it in your inventory, and verify at run time which key exchange group was actually negotiated, rather than assuming the post-quantum group from the build configuration.

Questions about choosing a Rust post-quantum option

Is rustls quantum safe?

Rustls is not a quantum-safe product in itself, and nothing in the sources supports that label. What the sources support is narrower: rustls 0.23.48 prefers the hybrid X25519MLKEM768 key exchange when it runs on the aws-lc-rs provider, and standalone MLKEM768 is available but not enabled by default. Rustls's certificate verification still uses classical signatures (ECDSA, Ed25519 or RSA), and the rustls-post-quantum docs describe ML-DSA signatures only as an experimental, unstable feature. Ask which key exchange, signature and provider your deployment actually negotiates, and test it against your own peers.

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

The sources show rustls 0.23.48 as the release where the aws-lc-rs provider prefers X25519MLKEM768 regardless of crate features. Earlier 0.23.x releases carried the ML-KEM exchanges under the prefer-post-quantum feature, which the 0.23.48 notes say now only enables aws_lc_rs. Rustls from version 0.24 requires you to supply a crypto provider explicitly. Confirm the exact version in your lock file, and confirm that the aws-lc-rs provider is the one in use, because the ring provider does not support post-quantum algorithms.

Does choosing a post-quantum Rust option cost extra?

The sources give no price, licence fee or effort figure for any of these crates, so no cost number can be stated here. The main cost drivers are the provider choice, which decides whether post-quantum key exchange is available at all, and the effort to test interoperability with peers, since the rustls defaults page warns that some users see unexpected connection failures with X25519MLKEM768. Ask any integrator for a fixed-scope quote that covers testing, configuration and retesting, and ask them to separate one-time work from ongoing maintenance.

Can I use the RustCrypto ml-kem, ml-dsa and slh-dsa crates in production?

The RustCrypto READMEs for ml-kem, ml-dsa and slh-dsa each state that the implementation has never been independently audited, and the ml-kem README tells users to use it at their own risk. Given that, treat them as unaudited and decide on that basis. If your product must show an audit, the sources here do not offer one, so you would need a separate review of the code or a different, audited provider. The aws-lc-rs provider used by rustls is a separate code path from these crates. Confirm with your security lead before any production use.

Is the openssl crate an alternative for post-quantum work in Rust?

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. Its documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography, so the crate's own docs do not establish post-quantum support. Whether post-quantum algorithms are available depends on the OpenSSL version it binds to, which you would need to check directly against OpenSSL's documentation and your build.

What should I ask the Rust crate maintainers before I commit?

Ask which provider and version your deployment uses, and whether the post-quantum key exchange is enabled by default in that release. Ask whether any ML-DSA certificate support is intended for the public web PKI, since rustls 0.23.44 states it is not supported there. Ask whether the RustCrypto crates you depend on have an audit planned, and whether a FIPS-validated build with a post-quantum mode exists, and which certificate covers it. Ask how interoperability failures should be reported. Put the answers in writing and date them.

Can my team do the Rust post-quantum work itself?

Your team can do the work itself if it has engineers who can change a rustls configuration, select a provider, test handshakes against each peer and maintain a lock file. The harder parts are testing interoperability with every system you talk to and reviewing the unaudited RustCrypto crates if you use them. If that effort is not in the team's plan, a fixed-scope engagement from DeployOpen can cover planning, configuration, testing and retesting, with the written scope agreed before work starts. DeployOpen does not issue audit reports or certifications.

How DeployOpen helps teams choose and adopt a Rust post-quantum path

DeployOpen works through Rust alternatives for post-quantum work in four stages: scope, build, hand over and support. We start from the TLS stack, provider and bindings your Rust services use today, then set out the options in writing so your team can decide which path to take.

How we scope

  • We list which Rust crates your services use for TLS, certificates and keys, including rustls, aws-lc-rs, ring and the openssl crate.
  • We record which crypto provider each service selects and whether it can offer X25519MLKEM768 or other post-quantum options.
  • We agree the scope in writing before work starts, covering which services, options and deliverables are included.

How we build

  • We set up test builds that compare the candidate providers, such as the rustls-aws-lc-rs and rustls-ring options, on your own services.
  • We check handshake behavior and report any unexpected connection failures, since rustls notes these can occur with X25519MLKEM768.
  • We test the crates that are not yet independently audited, such as the RustCrypto ml-kem, ml-dsa and slh-dsa crates, and flag them as such.

How we hand over

  • We write a decision record showing each option, its maintenance model, the effort to adopt it and the open questions still to be settled.
  • We document the configuration for the chosen provider, including the explicit provider setup required from rustls version 0.24.
  • We deliver the tested build, the configuration notes and the decision record so your team can run and review the result.

How we support

  • Ongoing support and upgrades are available as a retainer, covering provider updates and changes in rustls and aws-lc-rs releases.
  • We can retest the chosen path after upgrades, so your team can confirm the post-quantum settings still behave as documented.
  • Continuous testing can be added to the retainer, so changes to the TLS stack are checked against your recorded decision.

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.