Lines Matching refs:prd
1163 static void montgomery_ladder(MPI_POINT prd, MPI_POINT sum, in montgomery_ladder() argument
1169 ctx->addm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1172 ctx->mulm(p2->z, prd->x, p2->z, ctx); in montgomery_ladder()
1173 ctx->pow2(p1->x, prd->x, ctx); in montgomery_ladder()
1177 ctx->mulm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1181 ctx->mulm(prd->z, p1->z, ctx->a, ctx); /* CTX->A: (a-2)/4 */ in montgomery_ladder()
1183 ctx->addm(prd->z, p1->x, prd->z, ctx); in montgomery_ladder()
1184 ctx->mulm(prd->z, prd->z, p1->z, ctx); in montgomery_ladder()
1252 MPI_POINT q1, q2, prd, sum; in mpi_ec_mul_point() local
1282 prd = &p1_; in mpi_ec_mul_point()
1290 montgomery_ladder(prd, sum, q1, q2, point->x, ctx); in mpi_ec_mul_point()
1291 point_swap_cond(prd, sum, sw, ctx); in mpi_ec_mul_point()
1292 t = q1; q1 = prd; prd = t; in mpi_ec_mul_point()