public XInt PowMod(XInt exp, XInt mod) { var result = new XInt(); mpz_powm(ref result.impl, ref this.impl, ref exp.impl, ref mod.impl); return result; }