Expand description
Number-Theoretic Transform and modular polynomial arithmetic.
Constants§
Functions§
- barrett_
reduce - Barrett reduction to [0, q-1]. Constant-time.
- multiply_
ntts - Pointwise basemul in NTT domain (Algorithms 11+12) — full Montgomery.
- ntt
- Forward NTT (Algorithm 9) — full Montgomery.
- ntt_inv
- Inverse NTT (Algorithm 10) — full Montgomery.
- poly_
add - poly_
sub - reduce
- Reduce all coefficients to [0, q-1].
- to_
mont_ poly - Convert polynomial from /R domain to normal domain (multiply by R).
- zeroize_
bytes - zeroize_
poly