Skip to main content

to_mont_poly

Function to_mont_poly 

Source
pub fn to_mont_poly(f: &mut [i16; 256])
Expand description

Convert polynomial from /R domain to normal domain (multiply by R).

Used in KeyGen after accumulating basemul results, before adding NTT(e). to_mont(c) = c·R mod q via Montgomery: mont_reduce(c · R²_mod_q).