Use field parameter in EC group operation. Check value of modulus in ModMath.