Lines Matching refs:res
37 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm() argument
60 rp = res->d; in mpi_powm()
69 res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; in mpi_powm()
70 if (res->nlimbs) { in mpi_powm()
71 if (mpi_resize(res, 1) < 0) in mpi_powm()
73 rp = res->d; in mpi_powm()
76 res->sign = 0; in mpi_powm()
113 res->nlimbs = 0; in mpi_powm()
114 res->sign = 0; in mpi_powm()
118 if (res->alloced < size) { in mpi_powm()
128 if (mpi_resize(res, size) < 0) in mpi_powm()
130 rp = res->d; in mpi_powm()
277 mpihelp_lshift(res->d, rp, rsize, mod_shift_cnt); in mpi_powm()
278 rp = res->d; in mpi_powm()
284 MPN_COPY(res->d, rp, rsize); in mpi_powm()
285 rp = res->d; in mpi_powm()
307 res->nlimbs = rsize; in mpi_powm()
308 res->sign = rsign; in mpi_powm()
315 mpi_assign_limb_space(res, rp, size); in mpi_powm()