fqmul function

int fqmul(
  1. int a,
  2. int b
)

fqmul multiplies a*b modulo q using montgomeryreduce. It assumes that a and b are already reduced and in the range [0,q).

Implementation

int fqmul(int a, int b) {
  return montgomeryreduce(a * b);
}