#post-quantum-cryptography #quantum-computer #post-quantum #secure-communication #security-key #kyber #lattice

no-std ml-kem

Pure Rust implementation of the Module-Lattice-Based Key-Encapsulation Mechanism Standard (formerly known as Kyber) as described in FIPS 203

4 releases (2 breaking)

0.3.0-pre Jan 21, 2025
0.2.1 Aug 17, 2024
0.1.1 Jun 4, 2024
0.1.0 Apr 12, 2024
0.0.1 Aug 24, 2023

#2417 in Cryptography

Download history 608/week @ 2024-10-09 4282/week @ 2024-10-16 4085/week @ 2024-10-23 2980/week @ 2024-10-30 3426/week @ 2024-11-06 4279/week @ 2024-11-13 4639/week @ 2024-11-20 4055/week @ 2024-11-27 2915/week @ 2024-12-04 5573/week @ 2024-12-11 5354/week @ 2024-12-18 715/week @ 2024-12-25 4301/week @ 2025-01-01 5132/week @ 2025-01-08 4557/week @ 2025-01-15 4865/week @ 2025-01-22

18,909 downloads per month
Used in 6 crates (5 directly)

Apache-2.0 OR MIT

90KB
2K SLoC

RustCrypto: ML-KEM

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of the Module-Lattice-Based Key-Encapsulation Mechanism Standard (formerly known as Kyber) as described in FIPS 203 (final).

Documentation

About

ML-KEM is an algorithm which uses public-key cryptography to securely transfer a symmetric key between two parties who want to establish encrypted communications with each other. It uses algorithms which resist potential attacks by hypothetical future quantum computers which, when such computers are sufficiently mature, pose a problem for the algorithms we typically use for secure key establishment using public-key cryptography such as (EC)DH and RSA key encipherment.

Originally developed as CRYSTALS-Kyber (a.k.a. "Kyber"), ML-KEM is a refinement of the original Kyber algorithm after it was selected for standardization by NIST's Post-Quantum Cryptography (PQC) competition. The Kyber algorithm received considerable feedback as part of the standardization process and as such, ML-KEM includes many changes from the original Kyber. It can be though of as the official successor of Kyber.

In summary, ML-KEM stands at the forefront of post-quantum cryptography, offering enhanced security and efficiency in key encapsulation mechanisms to safeguard sensitive communications in an era where quantum computers potentially pose a looming threat.

⚠️ Security Warning

The implementation contained in this crate has never been independently audited!

USE AT YOUR OWN RISK!

Minimum Supported Rust Version

This crate requires Rust 1.81 at a minimum.

We may change the MSRV in the future, but it will be accompanied by a minor version bump.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~13K SLoC