Expand description
Decomposition, rounding, and hint functions for signatures. Decomposition algorithms for ML-DSA (FIPS 204, Algorithms 35-40).
Implements the Decompose, HighBits, LowBits, MakeHint, and UseHint
functions used during signing and verification to split polynomial
coefficients into high-order and low-order parts with respect to
alpha = 2 * gamma2.
All vector functions operate on slices and fixed arrays – no heap allocations.
Functions§
- decompose
- Decompose a coefficient into high and low parts.
- high_
bits - Extract the high-order representative of a coefficient.
- high_
bits_ vec - Apply
high_bitsto every coefficient of a polynomial vector. - low_
bits - Extract the low-order representative of a coefficient.
- low_
bits_ vec - Apply
low_bitsto every coefficient of a polynomial vector. - make_
hint - Compute a single hint bit.
- make_
hint_ vec - Apply
make_hintto every coefficient of two polynomial vectors. - use_
hint - Use a hint bit to recover the correct high bits.
- use_
hint_ vec - Apply
use_hintto every coefficient of a hint vector and an approximate vector.