Expand description
params.rs - Enhanced polynomial ring parameters with NTT support
Structs§
- Dilithium2
Params - Example: Dilithium parameter sets
- Dilithium
Params - General Dilithium parameter set used by the signature implementation
- Dilithium
Params Mont - Optional: Dilithium parameters with Montgomery output Use this when you need coefficients to stay in Montgomery domain after inverse NTT
- Kyber256
Params - Example: Kyber-256 parameter set
Enums§
- Post
InvNtt - 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)