pub trait Params: 'static {
const K: usize;
const ETA1: usize;
const ETA2: usize;
const DU: usize;
const DV: usize;
const EK_LEN: usize = _;
const DK_LEN: usize = _;
const CT_LEN: usize = _;
const SS_LEN: usize = 32;
}Expand description
Parameter set trait for ML-KEM security levels.
Implemented by MlKem512, MlKem768, and MlKem1024, each
providing the constants that define key sizes, ciphertext sizes, and
sampling parameters for a specific NIST security category.
The derived constants (EK_LEN, DK_LEN,
CT_LEN, SS_LEN) are computed
automatically from the core parameters.
Required Associated Constants§
Provided Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.