Lines Matching refs:res
24 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm() argument
46 rp = res->d; in mpi_powm()
55 res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; in mpi_powm()
56 if (res->nlimbs) { in mpi_powm()
57 if (mpi_resize(res, 1) < 0) in mpi_powm()
59 rp = res->d; in mpi_powm()
62 res->sign = 0; in mpi_powm()
99 res->nlimbs = 0; in mpi_powm()
100 res->sign = 0; in mpi_powm()
104 if (res->alloced < size) { in mpi_powm()
114 if (mpi_resize(res, size) < 0) in mpi_powm()
116 rp = res->d; in mpi_powm()
263 mpihelp_lshift(res->d, rp, rsize, mod_shift_cnt); in mpi_powm()
264 rp = res->d; in mpi_powm()
270 MPN_COPY(res->d, rp, rsize); in mpi_powm()
271 rp = res->d; in mpi_powm()
293 res->nlimbs = rsize; in mpi_powm()
294 res->sign = rsign; in mpi_powm()
301 mpi_assign_limb_space(res, rp, size); in mpi_powm()