polybasemul function
Returns a new polynomial r
which is the component-wise multiplication of polynomials a
and b
in the Montgomery domain.
Implementation
Poly polybasemul(Poly a, Poly b) {
Poly r = Poly();
for (int i = 0; i < KYBER_N; i++) {
r.coeffs[i] = fqmul(a.coeffs[i], b.coeffs[i]);
}
return r;
}