Skip to main content

libcrux_ml_dsa/
lib.rs

1#![no_std]
2#![deny(unsafe_code)]
3#![deny(unused_qualifications)]
4
5#[cfg(feature = "std")]
6extern crate std;
7
8mod arithmetic;
9mod constants;
10mod encoding;
11mod hash_functions;
12mod helper;
13mod matrix;
14mod ml_dsa_generic;
15mod ntt;
16mod polynomial;
17mod pre_hash;
18mod sample;
19mod samplex4;
20mod simd;
21
22#[cfg(hax)]
23mod specs;
24
25mod types;
26
27// Public interface
28
29pub use types::*;
30
31pub use crate::constants::KEY_GENERATION_RANDOMNESS_SIZE;
32pub use crate::constants::SIGNING_RANDOMNESS_SIZE;
33
34#[cfg(feature = "mldsa44")]
35pub mod ml_dsa_44;
36
37#[cfg(feature = "mldsa65")]
38pub mod ml_dsa_65;
39
40#[cfg(feature = "mldsa87")]
41pub mod ml_dsa_87;