AIFeed

Rust, Post-Quantum Cryptography, and You

Original text(via Lobsters)

On December 2, 2026 the NSA sent out a release: NSA Advises Immediate Transition to Post-Quantum Cryptography to Protect National Security Systems, which was quickly followed by statements by CISA, The US Government, Mozilla, OpenAI, Anthropic, AWS, Google Chrome, Cloudflare, and others. The recommendation is to shorten any timelines around the transition to post-quantum cryptography (PQC). In accordance with the recommendations and our own planning we wanted to share with you how we are working to protect Rust and its ecosystem. We take this threat seriously.

For the majority of Rust users, post-quantum support in the ecosystem already exists and TLS libraries including rustls, openssl, and native-tls already support it. Most common crates already default to using one of these crates, which already support PQC in many configurations. (Please see the recommendations further down this blog post for current best practice here.)

We recommend you make sure the cryptographic library you are using supports post-quantum algorithms for your use case, keep it up to date, and watch for RustSec advisories which include security and maintenance advisories; recommended by integrating cargo-deny or cargo-audit into your CI. For more advanced use cases, you should investigate the maintenance and PQ algorithm support of your upstream dependencies for your needs.

Actions Taken

On December 2, 2026 the Rust Project was informed by the NSA announcement and security staff began reaching out to project members and other communities.

On December 3rd, 2026, the Rust Project (Rust programming language) and supported Ecosystem projects began accelerating post-quantum algorithm enablement. Rust Foundation staff are supporting Rust teams and projects in making the transition quickly. This work is ongoing and we will continue to update you as we expedite this transition.

Ongoing Work

We wanted to take the time to highlight some of the active work that the Rust Project teams are doing to already make progress on the transition.

Rust Distribution & Infrastructure

  • Trusted Publishing: JWT tokens from GitHub do not currently use PQC; however, the crates.io team is actively making changes to immediately support it when it is implemented. trustpub: Skip unusable OIDC keys #15372 trustpub: Bind OIDC keys to their declared algorithm#15373
  • trustpub: Skip unusable OIDC keys #15372
  • trustpub: Bind OIDC keys to their declared algorithm#15373
  • crates.io, index.crates.io, static.crates.io sites: All already support PQ, and will prefer it when available after the changes deployed today in crates.io: moves fastly cdn services to pqc #1379.
  • crates.io Infrastructure: Servers: We have updated to OpenSSL 3.5+ Database: Work is ongoing to upgrade the database for PQC support Secrets: Secrets are stored in the database with AES256GCM which is quantum resistant
  • Servers: We have updated to OpenSSL 3.5+
  • Database: Work is ongoing to upgrade the database for PQC support
  • Secrets: Secrets are stored in the database with AES256GCM which is quantum resistant
  • Supporting Infrastructure: The Rust Infrastructure team is actively making policy and implementation changes across Rust Infrastructure for PQ support. Tracking Issue: Move to Post-Quantum Cryptography #1376 Raise TLS policies on AWS infrastructure #1377
  • Tracking Issue: Move to Post-Quantum Cryptography #1376
  • Raise TLS policies on AWS infrastructure #1377

Toolchain

  • cargo: No past or current versions support PQC on Windows by default, as identified in Cargo cannot use PQC on Windows without manual configuration #17857 All other platforms support and default to PQC for versions distributed via rustup since 1.89 (August, 2025)
  • No past or current versions support PQC on Windows by default, as identified in Cargo cannot use PQC on Windows without manual configuration #17857
  • All other platforms support and default to PQC for versions distributed via rustup since 1.89 (August, 2025)
  • rustup: rustup has supported PQC since 1.28.0 (March, 2025) Due to an oversight, versions of rustup between 1.28.0 and 1.29.3 did not prioritize PQ key exchange algorithms over non-PQ algorithms when available. No past versions of rustup have prioritized PQ above non-PQ algorithms when both are available. The Rustup Team is working on a new release to enable PQ by default in 1.29.4 Release Planning #5302.
  • rustup has supported PQC since 1.28.0 (March, 2025)
  • Due to an oversight, versions of rustup between 1.28.0 and 1.29.3 did not prioritize PQ key exchange algorithms over non-PQ algorithms when available.
  • No past versions of rustup have prioritized PQ above non-PQ algorithms when both are available.
  • The Rustup Team is working on a new release to enable PQ by default in 1.29.4 Release Planning #5302.

Rust Ecosystem

As part of our initial response to these statements, Rust Foundation security staff performed a preliminary analysis around what PQ support exists across top crates in the ecosystem to identify areas where migration or support is lacking. This list was compiled by analyzing the top 1000 crates, identifying cases where PQ is not available by default as of today, December 4th, 2026.

Risks Identified

  • hyper: hyper-rustls now defaults to PQC with the release of rustls 0.23.48 (December 3, 2026)
  • rustls: Has defaulted to PQ key exchange since 0.23.27 (May 2025); implemented via a default-enabled Cargo feature. While reviewing usage this week, we noticed that many downstreams set default-features = false and were unaware that PQ support should be enabled via the prefer-post-quantum feature. The rustls team released 0.23.48 which makes sure rustls always prefers PQ key exchange algorithms, prefers safer key elliptic curve algorithms when PQ algorithms are not available, and deprecates the ring crypto provider, which lacks support for PQ algorithms.
  • Has defaulted to PQ key exchange since 0.23.27 (May 2025); implemented via a default-enabled Cargo feature.
  • While reviewing usage this week, we noticed that many downstreams set default-features = false and were unaware that PQ support should be enabled via the prefer-post-quantum feature.
  • The rustls team released 0.23.48 which makes sure rustls always prefers PQ key exchange algorithms, prefers safer key elliptic curve algorithms when PQ algorithms are not available, and deprecates the ring crypto provider, which lacks support for PQ algorithms.
  • reqwest: Supports PQC in version 0.13 via either the (default) rustls feature or the native-tls feature. Version 0.12 also supported PQC when native-tls was enabled. Supports PQC in version 0.12+ via the default-enabled native-tls feature, and via both native-tls and rustls (which is the new default) in version 0.13+.
  • ring: Has no PQ support.
  • quinn, quinn-proto: Uses ring by default. Use the rustls-aws-lc-rs feature flag.
  • native-tls: PQC support is system dependent on most platforms, requiring OpenSSL 3.5+ No PQ support on MacOS. The MacOS implementation uses Secure Transport API, which is deprecated and without PQC. Other platforms fall back on openssl or operating system cryptography, which support PQ at newer versions.
  • PQC support is system dependent on most platforms, requiring OpenSSL 3.5+
  • No PQ support on MacOS. The MacOS implementation uses Secure Transport API, which is deprecated and without PQC. Other platforms fall back on openssl or operating system cryptography, which support PQ at newer versions.
  • ureq: Uses ring by default. Use the native-tls or rustls-no-provider feature flags.
  • rcgen: Uses ring by default. Use the aws_lc_rs (ML-DSA via aws_lc_rs_unstable) feature flag.

Recommendations

  • All downstream consumers of rustls update to 0.23.48 to address the default-enabled cargo feature.
  • Users of rustls use the aws-lc-rs (default) or rustls-graviola providers via their feature flags. With more complex cryptographic needs, investigate your dependencies for PQ support. Third party providers are not maintained directly by the rustls team and support may vary.
  • We recommend that all users of ring migrate to a PQ supporting library.
  • Users of crates leveraging openssl should make sure their projects are using openssl 3.5+

We’ve also put together a cheat-sheet of quick one-liners you can use to check your project for potentially out of date or problematic dependencies. Having these in your dependences doesn’t necessarily mean you need to take action, but provides a starting point for further investigation.

CheckCommand
rustls without prefer-post-quantumcargo tree --workspace --prefix none -f "{p} {f}" 2>/dev/null │ grep -E '^rustls v' │ grep -vE '[ ,]prefer-post-quantum(,│ │$)' │ sed 's/ (\)$//' │ sort -u
rustls with ring enabledcargo tree --workspace --prefix none -f "{p} {f}" 2>/dev/null │ grep -E '^rustls v[^ ]+ ([^ ]*,)?ring(,│ │$)│^rustls v0\.([0-9]│1[0-9]│2[01])\.'
Other ring usagecargo tree --workspace --prefix none -f "{p} {f}" │ grep -E '^ring v'
openssl-sys < 0.9.110cargo tree --workspace --prefix none -f "{p} {f}" │ grep -E '^openssl-sys v0\.([0-8]\.[0-9]+│9\.([0-9]│[1-9][0-9]│10[0-9]))( │$)'
OpenSSL < 3.5 (static)strings "<YOUR_BINARY>" │ grep -m1 -E '^OpenSSL [0-9]+\.[0-9]+' │ grep -E '^OpenSSL ([0-2]│3\.[0-4])\.'

Final Thoughts

This is an ongoing effort and we are taking all steps necessary to follow NSA guidelines for the Rust Project and ecosystem. The Rust Foundation is actively working with the Rust Project and is actively reaching out to projects in the Rust ecosystem to ensure that Rust continues to be a safe, secure choice. We will post another update as we continue to mitigate this threat. We invite the authors of ecosystem crates to contact us via the #security-chat channel on the Rust Zulip to update this blog post as they address PQC support or to request our assistance.

Thanks to Josh Triplett, David Wood, Dirkjan Ochtman, and Mark Rousskov for reviewing drafts of this blog post, and for their continued help and support in planning.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Lobsters
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗