Skip to main content

pointwise_mul

Function pointwise_mul 

Source
pub fn pointwise_mul(a: &[i32; 256], b: &[i32; 256]) -> [i32; 256]
Expand description

Pointwise multiplication of two NTT-domain polynomials.

Implements Algorithm 45 of FIPS 204. Because the ML-DSA NTT decomposes all the way down to length-1 components, this is a simple element-wise modular multiplication (no base-case Karatsuba needed). Pointwise multiplication — full Montgomery. Output is in /R domain. Use iNTT(F_SCALE_DSA) to compensate. For accumulation in NTT domain (KeyGen), call to_mont_poly after.