Skip to main content

crypto/mlkem/
mod.rs

1//! ML-KEM post-quantum key encapsulation mechanism (KEM) standardized in FIPS 203.
2
3mod mlkem;
4mod mlkem1024;
5mod mlkem768;
6
7pub use mlkem::{MlKemError, SHARED_SECRET_SIZE};
8#[cfg(feature = "random")]
9pub use mlkem768::generate_keypair_768;
10pub use mlkem768::{
11    CIPHERTEXT_SIZE_768, PUBLIC_KEY_SIZE_768, PublicKey768, SECRET_KEY_SIZE_768, SecretKey768,
12    generate_keypair_768_derand,
13};
14#[cfg(feature = "random")]
15pub use mlkem1024::generate_keypair_1024;
16pub use mlkem1024::{CIPHERTEXT_SIZE_1024, PUBLIC_KEY_SIZE_1024, PublicKey1024, SECRET_KEY_SIZE_1024, SecretKey1024};