Module params

Source
Expand description

params.rs - Enhanced polynomial ring parameters with NTT support

Structs§

Dilithium2Params
Example: Dilithium parameter sets
DilithiumParams
General Dilithium parameter set used by the signature implementation
DilithiumParamsMont
Optional: Dilithium parameters with Montgomery output Use this when you need coefficients to stay in Montgomery domain after inverse NTT
Kyber256Params
Example: Kyber-256 parameter set

Enums§

PostInvNtt
Post-processing mode after a Gentleman–Sande inverse NTT.

Traits§

Modulus
Basic trait defining the modulus and degree for a polynomial ring
NttModulus
Extended trait for NTT-enabled moduli

Functions§

is_power_of_two
Check if N is a power of 2
is_prime
Helper functions for parameter validation Check if a number is prime (simplified check)