pub trait ParameterSet {
type K: ArraySize;
type L: ArraySize;
type Eta: SamplingSize;
type Gamma1: MaskSamplingSize;
type Gamma2: Unsigned;
type TwoGamma2: Unsigned;
type W1Bits: EncodingSize;
type Lambda: ArraySize;
type Omega: ArraySize;
const TAU: usize;
const BETA: u32 = _;
}Expand description
A ParameterSet captures the parameters that describe a particular instance of ML-DSA. There
are three variants, corresponding to three different security levels.
Required Associated Constants§
Provided Associated Constants§
Required Associated Types§
Sourcetype Eta: SamplingSize
type Eta: SamplingSize
Private key range
Sourcetype Gamma1: MaskSamplingSize
type Gamma1: MaskSamplingSize
Error size bound for y
Sourcetype W1Bits: EncodingSize
type W1Bits: EncodingSize
Encoding width of the W1 polynomial, namely bitlen((q - 1) / (2 * gamma2) - 1)
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.