Skip to main content

Crate quantaegis_ml_kem

Crate quantaegis_ml_kem 

Source
Expand description

From-scratch, pure-Rust, #![no_std], constant-time implementation of NIST FIPS 203 (Module-Lattice-Based Key-Encapsulation Mechanism Standard: ML-KEM-512, ML-KEM-768, and ML-KEM-1024).

§Security & Engineering Properties

  • Zero external cryptographic dependencies; #![no_std]; #![forbid(unsafe_code)].
  • Division-free finite-field arithmetic and Compress_d (immune to KyberSlash-class timing side-channels).
  • Mandatory FIPS 203 Section 7.2 / 7.3 encapsulation and decapsulation key validation checks.
  • Constant-time Fujisaki-Okamoto ciphertext verification and implicit rejection.
  • Automatic zeroization on drop and redacted Debug formatting for all secret material.
  • Strict separation between randomized production APIs ([quantaegis_core::Kem]) and deterministic internal APIs (hazmat, matching FIPS 203 Section 6 *_internal).

Note: Pre-1.0.0 software — an independent third-party cryptographic audit has not yet been completed; please take this into account when using this crate. The project-wide maturity stage is tracked in one place: SECURITY.md.

Re-exports§

pub use ml_kem_512::MlKem512;
pub use ml_kem_768::MlKem768;
pub use ml_kem_1024::MlKem1024;

Modules§

ml_kem_512
ML-KEM-512 parameter set (NIST Security Category 1, NIST FIPS 203).
ml_kem_768
ML-KEM-768 parameter set (NIST Security Category 3, NIST FIPS 203).
ml_kem_1024
ML-KEM-1024 parameter set (NIST Security Category 5, NIST FIPS 203).
params
NIST FIPS 203 (ML-KEM) parameter constants (Table 2).