mqpoly_sqnorm

Function mqpoly_sqnorm 

Source
pub fn mqpoly_sqnorm(logn: u32, a: &[u16]) -> u32
Expand description

Get the squared norm of a polynomial modulo q (assuming normalization of coefficients in [-q/2,+q/2]).

The polynomial must be in external representation. If the squared norm exceeds 2^31-1 then 2^32-1 is returned.