| Crates.io | pqc-ml-kem |
| lib.rs | pqc-ml-kem |
| version | 0.8.0 |
| created_at | 2025-05-15 15:27:11.283481+00 |
| updated_at | 2025-05-20 17:51:57.133608+00 |
| description | A library for Module-Lattice Key Encryption Mechanism (ML-KEM) |
| homepage | |
| repository | https://github.com/Godspower-Eze/ml_kem.rs |
| max_upload_size | |
| id | 1675234 |
| size | 2,466,625 |
A rust library for ML-KEM(Module-Lattice-Based Key-Encapsulation Mechanism)
This project is currently under active development. Expect breaking changes and incomplete features.
keygen() - generate a key pair (ek, dk)encaps(ek) - generate a key and ciphertext pair (key, ciphertext)decaps(dk, ciphertext)- generate the shared key keyTo install, use:
cargo add pqc-ml-kem
To use
use pqc_ml_kem::{ML_KEM_512, ML_KEM_768, ML_KEM_1024};
let (ek, dk) = ML_KEM_512.keygen();
let (key_1, ct) = ML_KEM_512.encaps(&ek);
let key_2 = ML_KEM_512.decaps(&dk, &ct);
assert_eq(key_1, key_2)
This project is licensed under the MIT license.
See LICENSE for more information.