Crate kylix_pqc

Crate kylix_pqc 

Source
Expand description

§Kylix

A post-quantum cryptography library implementing NIST FIPS standards.

§Features

  • std (default): Enable standard library support
  • ml-kem (default): Enable ML-KEM (FIPS 203) key encapsulation

§Supported Algorithms

  • ML-KEM (FIPS 203): Module-Lattice-Based Key Encapsulation Mechanism
    • ML-KEM-512
    • ML-KEM-768
    • ML-KEM-1024

§Example

use kylix::ml_kem::{MlKem768, Kem};

// Generate a key pair
let (dk, ek) = MlKem768::keygen(&mut rng)?;

// Encapsulate a shared secret
let (ct, ss_sender) = MlKem768::encaps(&ek, &mut rng)?;

// Decapsulate the shared secret
let ss_receiver = MlKem768::decaps(&dk, &ct)?;

assert_eq!(ss_sender, ss_receiver);

Modules§

ml_kem
ML-KEM (FIPS 203) key encapsulation mechanism.
traits
Core traits for cryptographic primitives.

Enums§

Error
Errors that can occur during cryptographic operations.

Type Aliases§

Result
Result type alias using Error.