Trait ml_kem::ParameterSet
source · pub trait ParameterSet: Default + Clone + Debug + PartialEq {
type K: ArraySize;
type Eta1: CbdSamplingSize;
type Eta2: CbdSamplingSize;
type Du: VectorEncodingSize<Self::K>;
type Dv: EncodingSize;
}
Expand description
A ParameterSet
captures the parameters that describe a particular instance of ML-KEM. There
are three variants, corresponding to three different security levels.
Required Associated Types§
sourcetype Eta1: CbdSamplingSize
type Eta1: CbdSamplingSize
The bit width of the centered binary distribution used when sampling random polynomials in key generation and encryption.
sourcetype Eta2: CbdSamplingSize
type Eta2: CbdSamplingSize
The bit width of the centered binary distribution used when sampling error vectors during encryption.
Object Safety§
This trait is not object safe.