Which Rust features and APIs depend on RSA and elliptic-curve keys

In the ecosystem crates reviewed, rustls handshakes and certificate checks depend on RSA, ECDSA and Ed25519 signatures and ECDHE key exchange, and rustls with the aws-lc-rs provider now prefers the hybrid X25519MLKEM768 key exchange by default in version 0.23.48.

On this page

Which Rust TLS and certificate APIs rely on classical public keys today

A security assessor who needs to record which Rust TLS and certificate paths depend on classical public keys can start from one configuration. With rustls 0.23.48 and the aws-lc-rs provider, handshakes use ECDHE over curve25519, nistp256 or nistp384 for forward secrecy, and certificate checks use ECDSA, Ed25519 or RSA. The aws-lc-rs provider now prefers the hybrid X25519MLKEM768 key exchange ahead of those classical groups, and the rustls 0.23.48 release notes say this holds regardless of crate features. The classical key exchange and certificate algorithms remain in the provider, so an inventory should record both the post-quantum preference and the classical fallbacks.

The scope reviewed here covers the ecosystem crates rustls, aws-lc-rs, ring, the openssl crate, and the RustCrypto ml-kem, ml-dsa and slh-dsa crates. The openssl crate documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography, so an application that reaches TLS through that binding should confirm which OpenSSL build it links and what that build offers. The rustls 0.23.48 release notes also say that rustls::crypto::ring::default_provider() is deprecated because ring does not support post-quantum algorithms, which matters for any build that selects ring explicitly.

The sources do not establish what applications built on these crates configure. A CryptoProvider can be installed per process or passed explicitly, and the first entry in kx_groups decides what a client offers, so the assessor should check each application's provider choice and group ordering in its own code and deployment. The RustCrypto ml-kem, ml-dsa and slh-dsa READMEs state that those implementations have never been independently audited, and rustls 0.23.44 describes ML-DSA certificates as unsupported in the public web PKI, so certificate inventories should keep the classical algorithms as the working baseline.

Public-key dependencies by crate, version and component

This table lists each Rust crate or component covered by the sources, the public-key algorithms it depends on, whether a post-quantum option is documented, and the source it was checked against. Use it to trace which classical keys a Rust application touches and which post-quantum options the sources describe, then confirm the current state for your exact versions and features. Rows marked as unaudited or experimental need extra review before use.

Crate or componentPublic-key dependencyPost-quantum option documentedSource and date
rustls 0.23.48 with aws-lc-rsECDHE key exchange (curve25519, nistp256, nistp384) and ECDSA, Ed25519 or RSA authenticationYes: X25519MLKEM768 hybrid key exchange is preferred by default for aws-lc-rsrustls releases page, 03 Dec (year not shown in source)
rustls 0.23.48 with ring (rustls-ring)ECDHE key exchange and ECDSA, Ed25519 or RSA authenticationNo: ring does not support post-quantum algorithms, and the ring default provider is deprecatedrustls releases page and README, 03 Dec (year not shown in source)
rustls 0.23.44 ML-DSA certificatesML-DSA certificate signatures in the aws-lc-rs provider, alongside classical signaturesYes, enabled by default in aws-lc-rs, but the source states ML-DSA certificates are not supported in the public web PKIrustls releases page, 07 Sep (year not shown in source)
rustls-post-quantum 0.2.4MLKEM768 and X25519MLKEM768 key exchange on the aws-lc-rs providerYes for ML-KEM. ML-DSA variants exist only behind the aws-lc-rs-unstable feature and are experimentalrustls-post-quantum docs.rs page, current version as fetched
openssl crate 0.10.82Depends on the linked OpenSSL or LibreSSL library for RSA, ECDSA and ECDHENot stated: the crate documentation, as fetched on 2026-12-03, does not mention post-quantum cryptographyopenssl crate docs.rs page, fetched 2026-12-03
aws-lc-rs 1.19.0Underlying provider for rustls key exchange and signatures using ECDHE, ECDSA, Ed25519 and RSAYes: post-quantum algorithms are available through the provider, and the fips feature binds to AWS-LC-FIPS 4.xaws-lc-rs docs.rs page, current version as fetched
RustCrypto ml-kem (docs show 0.3.4)ML-KEM-512, ML-KEM-768 and ML-KEM-1024 as a standalone pure Rust implementation of FIPS 203Yes as a standalone crate, but the README states it has never been independently audited and to use it at your own riskml-kem docs.rs and README, current version as fetched
RustCrypto ml-dsaML-DSA-44, ML-DSA-65 and ML-DSA-87 as a pure Rust implementation of FIPS 204Yes as a standalone crate, but the README states it has never been independently auditedml-dsa README, current version as fetched
RustCrypto slh-dsaSLH-DSA as a pure Rust implementation based on FIPS 205Yes as a standalone crate, but the README states it has never been independently auditedslh-dsa README, current version as fetched

Which parts of the crate stack touch RSA and elliptic-curve keys

Rust has no single built-in cryptography stack, so the public-key dependencies sit across several crates. The cards below separate handshake key exchange, certificate signatures, provider selection and native bindings, so each can be checked on its own.

Handshake key exchange

Rustls uses ECDHE over curve25519, nistp256 or nistp384 for forward secrecy in TLS 1.2 and TLS 1.3. On the aws-lc-rs provider, rustls 0.23.48 prefers the hybrid X25519MLKEM768 group ahead of classical groups, so a client may send a post-quantum key share in the TLS 1.3 ClientHello. The classical ECDHE groups remain as fallbacks. Check which groups your build actually negotiates, because the defaults page warns that some users see unexpected connection failures with the hybrid group and asks for those to be reported.

Rustls defaults

Certificate and handshake signatures

Rustls authenticates servers and clients with ECDSA, Ed25519 or RSA signatures, so certificate chains and handshake signatures depend on classical public-key algorithms. Rustls 0.23.44 added ML-DSA certificate support in the aws-lc-rs provider, but states that ML-DSA certificates are not supported in the public web PKI. Confirm which certificate types your issuers provide, since a post-quantum signature in your stack does not mean a publicly trusted certificate can carry one.

Rustls releases

CryptoProvider selection

The CryptoProvider decides which cipher suites and key exchange groups are offered, and its kx_groups list is ordered by preference. A process has at most one implicit default provider, set with install_default(), or the application can pass a provider explicitly through the builder. Whether post-quantum groups are offered therefore depends on which provider the code selects, so record the provider name and feature flags in your inventory rather than assuming the defaults.

CryptoProvider docs

The openssl crate and vendored OpenSSL

The openssl crate binds to system OpenSSL and LibreSSL, and its vendored feature compiles and statically links a bundled copy of OpenSSL. The binding's documentation does not mention post-quantum cryptography, so it should not be treated as a post-quantum option. Note which OpenSSL version each build links, whether system or vendored, because any post-quantum support depends on that underlying library rather than on the Rust crate itself.

openssl crate docs

The ring provider

The ring provider is available through the optional ring feature, and rustls 0.23.48 deprecates rustls::crypto::ring::default_provider() because ring does not support post-quantum algorithms. Any service that still selects the ring provider will keep classical key exchange and signatures. Search your dependency tree and code for ring use, then decide whether those components move to aws-lc-rs before the deprecated path is removed.

Rustls README

RustCrypto standalone algorithm crates

The RustCrypto ml-kem, ml-dsa and slh-dsa crates are pure Rust implementations of FIPS 203, FIPS 204 and FIPS 205. Their READMEs state that none has been independently audited, and that use is at your own risk. They are not wired into rustls' handshake, so using them is a separate application design decision. Ask whether each crate has a review or audit record before you depend on it for production keys.

ml-kem README

How a rustls handshake chooses classical and hybrid key exchange

The handshake starts in the ClientHello, where rustls sends a key share for the first group in the CryptoProvider's kx_groups list. On the aws-lc-rs provider that group is X25519MLKEM768, a hybrid of ECDHE over X25519 and ML-KEM-768. If the server does not accept the hybrid, it answers with a classical ECDHE share, such as X25519, nistp256 or nistp384. The server's certificate chain is then verified with ECDSA, Ed25519 or RSA signatures, which are all classical public-key algorithms. Check which provider is installed and in what order its kx_groups are sorted.

Key exchange falls back from the hybrid group to classical ECDHE, while certificate signatures stay classical.

How the answer differs by provider, feature and crate

The aws-lc-rs provider is the default in rustls through the aws_lc_rs feature, so most rustls builds use it unless the application selects another provider. The rustls 0.23.48 release notes state that the aws-lc-rs provider now prefers X25519MLKEM768 key exchange regardless of crate features, and the rustls defaults page describes X25519MLKEM768 as a hybrid post-quantum key exchange available with this provider. Certificate authentication and the signature side of the handshake still rely on classical algorithms such as ECDSA, Ed25519 and RSA, as the rustls features page documents.

  • Default enablement: The aws_lc_rs feature is on by default in rustls, so a plain dependency on rustls uses this provider.
  • Preferred key exchange: X25519MLKEM768 is the first preference for the aws-lc-rs provider in rustls 0.23.48, and standalone MLKEM768 is available but not enabled by default.
  • Signatures unchanged: Server and client authentication still use ECDSA, Ed25519 or RSA, so public-key signatures in the handshake remain classical.
  • Unexpected failures: The rustls defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks for reports.
  • ML-DSA certificates: Rustls 0.23.44 enables ML-DSA certificate support in this provider but states that ML-DSA certificates are not supported in the public web PKI.

Confirm in your own build which rustls and aws-lc-rs versions are in your lockfile, and check the negotiated key exchange in a test connection to see whether X25519MLKEM768 is actually offered and accepted by your peers.

How to confirm the dependencies in your own Rust build

This sequence shows which Rust crates in your build perform RSA and elliptic-curve operations, which provider is installed, and which groups and certificate types are negotiated at runtime. Each step ends with a check you can record for your inventory. The steps rely on your own lock file and a test handshake, so the results reflect your build and not a general claim about Rust.

  1. List every crypto crate in the lock file

    Open Cargo.lock in the repository that produces your binary and record each rustls, aws-lc-rs, ring, openssl and RustCrypto crate with its exact version. Run cargo tree -i aws-lc-rs and the equivalent for ring, openssl and rustls to see which of your direct dependencies pull them in. The step is done when you have a table of crate names, versions and the dependency path that brings each one into the build.

  2. Confirm the installed CryptoProvider

    Find every call to CryptoProvider::install_default() and every use of builder_with_provider() in your code and in any internal library. Note which provider each call names, such as the aws-lc-rs default or a ring provider. Also check whether any code calls rustls::crypto::ring::default_provider(), which the rustls 0.23.48 release notes say is deprecated because ring does not support post-quantum algorithms. The step is done when you can state, for each binary, which single provider is the process default.

  3. Check the kx_groups order at runtime

    In a debug build or a test binary, print the kx_groups of the provider you identified in the previous step, in order. The first entry is the group your client offers a key share for in TLS 1.3. Compare this list against the rustls defaults documentation for your version, which describes X25519MLKEM768 as the hybrid key exchange in the aws-lc-rs provider. The step is done when you have the printed order recorded alongside the rustls and provider versions.

  4. Record the certificate types in use

    List every certificate and key your service presents or verifies, and note whether each is ECDSA, Ed25519 or RSA. Check the key type with your certificate tooling, for example by inspecting the public key algorithm of each PEM file. Also record any ML-DSA certificates, since the rustls 0.23.44 notes say they are not supported in the public web PKI. The step is done when every certificate in the inventory has a recorded key type and the chain it belongs to.

  5. Verify the negotiated group in a test handshake

    Run a client and server built from your own configuration, connect them, and record the key exchange group and cipher suite the connection reports. Repeat with a peer that does not offer the hybrid group, so you can see the fallback behavior. The rustls defaults page warns that some users see unexpected failures with X25519MLKEM768, so record any handshake errors as well. The step is done when you have the negotiated group and suite for each peer pairing in your environment.

  6. Note the FIPS status of the provider

    If your build enables the fips feature, confirm that default_fips_provider() is the installed process default and check the run-time status through ClientConfig::fips() or ServerConfig::fips(). Record the aws-lc-rs version, since the aws-lc-rs 1.19.0 documentation ties the fips feature to AWS-LC-FIPS 4.x. The rustls FIPS guide names certificate #4816 and notes that later releases may be pending certification, so confirm the certificate status for your exact version with the vendor. The step is done when the FIPS status and version are recorded, or recorded as not enabled.

Why rustls key exchange and certificates are separate dependencies

Key exchange and certificate signatures are separate dependencies in rustls, and they move on separate upgrade paths. The key exchange sets up the session keys for a connection. In rustls, the ECDHE groups used for forward secrecy (curve25519, nistp256 and nistp384) are one dependency, and the hybrid X25519MLKEM768 group available through the aws-lc-rs provider is another. The certificate signature is a different dependency: the ECDSA, Ed25519 or RSA algorithm that a server uses to authenticate itself, and that clients use to verify the server's certificate chain. Changing one does not change the other. A server can negotiate a post-quantum hybrid key exchange while still presenting a classical certificate, and that is the state the rustls documentation describes for its default aws-lc-rs configuration.

The rustls 0.23.48 release notes say that the aws-lc-rs provider now prefers X25519MLKEM768 regardless of crate features, and that this group remains the first preference for that provider. The rustls defaults page adds that standalone MLKEM768 is available but not enabled by default. Those statements cover key exchange only. For certificates, the rustls 0.23.44 release notes enabled ML-DSA certificate support by default in the aws-lc-rs provider, and in the same notes state that ML-DSA certificates are not supported in the public web PKI. Operators who issue or consume public web certificates should not plan around ML-DSA certificates on that basis. The rustls-post-quantum crate (0.2.4) describes its ML-DSA signature variants only as experimental, available under the aws-lc-rs-unstable feature. Treat that feature as unsuitable for production unless the vendor's documentation says otherwise.

The practical consequence is an inventory task. For each rustls-based service, record the key exchange group the client and server actually negotiate, and record the certificate algorithm used for each server identity, separately. Confirm the rustls and aws-lc-rs versions in the lockfile, because the defaults changed across the 0.23.x releases. Confirm whether the application installs a process default provider or passes one explicitly, since rustls 0.24 requires an explicit provider. Check whether X25519MLKEM768 failures appear in your environment, because the defaults page asks users to report unexpected connection failures with that group. For the certificate side, ask your certificate authority or internal PKI owner whether ML-DSA issuance is offered for the identities you need, and whether it applies to public or private trust chains. The rustls documentation does not cover that question.

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

The sources opened for this inventory answer some questions about Rust's public-key dependencies and leave others open. The cards below list the points the sources do not settle, so that security assessors can put them to the maintainers before recording an answer.

Post-quantum options in the openssl crate

The openssl crate documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography. Its vendored feature statically links a copy of OpenSSL, so the algorithms available depend on which OpenSSL version that copy contains. Ask the maintainers whether any post-quantum option is planned for the crate, and which OpenSSL version a vendored build uses.

openssl crate docs

Default status of standalone MLKEM768

The rustls defaults page says standalone MLKEM768 is available with the aws-lc-rs provider but is not enabled by default out of conservatism. It does not say whether that will change. The default hybrid key exchange, X25519MLKEM768, is a different setting from standalone MLKEM768. Ask the rustls maintainers for their plans and the conditions under which the default would change.

rustls defaults page

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 states that ML-DSA certificates are not supported in the public web PKI. The sources do not say whether or when public web PKI support will arrive. For a service that needs publicly trusted certificates, confirm the current position with the maintainers and with the certificate authorities that would issue them.

rustls releases

FIPS status of later aws-lc-rs releases

The rustls FIPS guide covers FIPS use under FIPS 140-3 certificate #4816 and states that later aws-lc-rs releases may be covered by later certificates or may be pending certification. The guide does not say which releases are covered. Before relying on FIPS status for a given release, ask the maintainers which certificate covers it, and check the certificate's status with the validation authority.

rustls FIPS guide

Independent audits of the RustCrypto PQC crates

The READMEs for the ml-kem, ml-dsa and slh-dsa crates each state that the implementation has never been independently audited. The ml-kem README advises users to use it at their own risk. Ask the RustCrypto maintainers whether an independent audit is planned, and what assurance they recommend for production use in the meantime.

ml-kem README

What can break or silently fall back to classical keys

The main risk in Rust's post-quantum key exchange is that a connection can succeed while using classical keys only. Rustls documents hybrid X25519MLKEM768 as available with the aws-lc-rs provider, and the rustls defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks that they be reported. Teams should treat any such failure as a signal to investigate rather than something to work around by disabling the group, and should record which provider and version each service uses so they can explain a fallback when an assessor asks.

Provider choice decides whether post-quantum groups are offered at all. The rustls README names rustls-ring as a provider that does not support post-quantum algorithms, and rustls 0.23.48 deprecates rustls::crypto::ring::default_provider() for that reason. A process that uses ring, or a custom provider that omits post-quantum groups, will negotiate only classical key exchange. Confirm which provider each binary links against, for example by checking the aws_lc_rs and ring features in its Cargo.toml and lockfile, and check that kx_groups in the active CryptoProvider includes X25519MLKEM768.

From version 0.24, rustls requires the application to supply a crypto provider explicitly, so an upgrade can fail to build or change behavior if the provider is not named. Two further risks sit in process-wide state. A rustls process has at most one implicit default provider, set once with CryptoProvider::install_default(), so a provider installed earlier by another crate in the same process can override the default that a later component expects. Checking the install order at startup, and passing a provider with builder_with_provider() where the code controls it, reduces that ambiguity. The sources do not say how a conflicting install is reported at run time, so teams should confirm that behavior in their own test environment.

Questions engineers and vendor-risk reviewers ask about Rust key dependencies

Is Rust quantum safe?

Rust is not a single product that can be called quantum safe, and the sources reviewed here do not support that label. The main TLS library, rustls, supports post-quantum key exchange through its aws-lc-rs provider: rustls 0.23.48 prefers the hybrid X25519MLKEM768 key exchange for that provider. Standalone MLKEM768 is available but not enabled by default. Signatures and certificates still rely on classical algorithms (ECDSA, Ed25519 and RSA), because rustls 0.23.44 describes ML-DSA certificates as unsupported in the public web PKI. The RustCrypto ml-kem, ml-dsa and slh-dsa crates implement the FIPS standards but state they have never been independently audited. Confirm the exact algorithms your build negotiates by checking your provider and version.

Which rustls version is needed for hybrid key exchange?

The sources point to rustls 0.23.48, which the releases page lists as dated 03 Dec (the year is not shown there). That release states the aws-lc-rs provider prefers X25519MLKEM768 regardless of crate features. The prefer-post-quantum feature remains for compatibility but now only enables aws_lc_rs. Earlier 0.23.x releases should be checked in their own release notes before you assume the same behavior. The rustls README names rustls-aws-lc-rs as the provider with post-quantum algorithms and rustls-ring as the one without them. Confirm your locked version in Cargo.lock.

Does enabling post-quantum key exchange in Rust cost extra?

The sources reviewed here give no cost figure, so no price or effort estimate can be stated. The cost components to confirm are the engineering time to update and test the dependency, the testing of connections against your clients and load balancers, and any ongoing maintenance of the provider crate. Ask your team or implementation partner for a written scope that lists which services change, which need retesting, and whether any licensing or hardware is involved. A reasonable starting point is to ask what work is one-time (upgrade and test) and what recurs (dependency updates and monitoring of release notes).

What breaks when X25519MLKEM768 is enabled?

The rustls defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks for them to be reported. The sources do not list the specific clients, servers or middleboxes that fail, so test against the peers you actually talk to. Check handshake errors in logs and in your monitoring for clients that do not offer the hybrid group, and check whether any TLS inspection devices or older load balancers sit on the path. Rolling the change out to a test environment first is the practical way to find these failures before production traffic does.

What should we ask the rustls and aws-lc-rs maintainers?

Ask which exact versions of rustls and aws-lc-rs your application needs for the post-quantum behavior you require, and whether that behavior is the default or needs a feature flag. Ask whether the ML-DSA signature support is planned for the public web PKI and on what timeline, since the sources say it is currently unsupported there. Ask how they plan to handle the connection failures they describe, and whether the aws-lc-rs FIPS build covers the post-quantum algorithms, since the FIPS guide covers certificate #4816 and later releases may be pending. Put these questions in writing and record the answers with dates.

Can our team do this ourselves or do we need outside help?

A team with Rust and TLS experience can usually make the dependency change and run the tests, but the cryptographic inventory, the compatibility testing across your peers and the evidence for a compliance review take more time. The sources list the provider, feature and version settings that a developer would need to check, so the technical work is bounded. Outside help is worth considering when you have many services, regulated evidence requirements or no one who owns the test environment. DeployOpen can plan, implement and test self-hosted platforms in your infrastructure and prepare compliance evidence, but it does not issue audit reports or certifications. Any engagement is fixed-scope, with scope and deliverables agreed in writing before work starts.

How DeployOpen works on this

DeployOpen approaches this question as a scoped inventory: we identify which Rust crates, TLS stacks and bindings in your applications use RSA, Diffie-Hellman or elliptic-curve keys, and record the exact versions and settings involved. The result is a written list your security and vendor-risk teams can check against the sources on this page.

How we scope

  • Engagements are fixed-scope, with the list of applications, repositories and deployment targets agreed in writing before work starts.
  • We confirm which Rust toolchain, crate versions and TLS providers (rustls with aws-lc-rs or ring, the openssl crate) are in use in each application.
  • The written scope states which crates and protocols are covered, including whether vendored OpenSSL builds are included.

How we build

  • We read each Cargo.lock and dependency tree to map where rustls, aws-lc-rs, ring and openssl appear and which versions resolve.
  • We record the key exchange groups, signature algorithms and cipher suites each configured provider offers, in preference order.
  • We check whether any code calls install_default() or builder_with_provider() and note which provider each process actually uses.

How we hand over

  • The inventory lists each dependency, its version, the public-key algorithms it relies on and the source that documents each one.
  • Each entry separates key exchange (such as X25519MLKEM768 or ECDHE) from certificate signatures (ECDSA, Ed25519 or RSA), so assessors can review them separately.
  • Items the sources do not settle, such as the FIPS certificate status of a later aws-lc-rs release, are marked for confirmation with the vendor.

How we support

  • Ongoing support and continuous review are available as a retainer, so the inventory can be refreshed when crate versions change.
  • On request, we re-run the dependency mapping after upgrades to rustls or aws-lc-rs and report what changed.
  • We do not issue audit reports or attestations; the inventory is evidence your independent auditors can review alongside their own testing.

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.