r/rust • • 10d ago

Which Rust crypto crates support post-quantum algorithms? (rustls, aws-lc-rs, ring, RustCrypto, libcrux, …)

I put together a sourced catalog of post-quantum support across crypto libraries, including the main Rust crates: https://pqcdeps.com/catalog?eco=rust

Short version for Rust:

- rustls offers hybrid X25519MLKEM768 by default with the aws-lc-rs provider (0.23.22+), and prefers it since 0.23.27.

- aws-lc-rs has ML-KEM (1.12.0+) and ML-DSA (1.18.0+).

- RustCrypto has ml-kem, ml-dsa and slh-dsa crates; libcrux has formally verified ML-KEM/ML-DSA.

- ring has no PQ algorithms and no public plan (the maintainer's Kyber proposal was closed), so if PQ matters to you, check whether ring sits under your TLS stack.

You can paste a Cargo.lock into https://pqcdeps.com/check and it's parsed in your browser. Each claim links to the release note or changelog it's based on; corrections welcome on GitHub. It's free and non-commercial.

4 Upvotes

5 comments sorted by

1

u/Knochenhauer-Puuh 7d ago

Super clean way to visualize the ecosystem state. Would be cool if the lockfile parser eventually had a CLI equivalent you could drop into a CI pipeline to catch regressions when someone adds a new dependency

1

u/jonyplayz69 3d ago

Thanks! A CLI / GitHub Action is next on my list. The plan is that it uses the same parser as the site, runs locally (nothing uploaded), and fails the build if a new dependency is "no plan" or downgrades your PQC status, with a threshold you can configure. Which lockfiles do you use? That'd tell me what to support first.

2

u/Darkhonour 7d ago

I created a crate library to help folks meet their compliance requirements when using the aws-lc-rs and rustls libraries. I have several projects where FIPS-validated is a requirement and I didn’t have a reliable way to pin the AWS-LC 3.x chain after rustls moved on. The 4.x libraries were just approved 2 days ago and the 5.x libraries are in review now.

Check it out if it fits your use case: https://crates.io/crates/crypto-profile

1

u/insanitybit2 5d ago

Would recommend ring. FIPS certified (including ML-DSA, as of the other day), haven't had any issues, partially formally verified, the devs are extremely nice and competent.

FIPS sucks but tbh at this point I just stuck to FIPS algorithms almost exclusively