Lines Matching defs:qx
85 ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx,
102 MP_CHECKOK(mp_copy(qx, rx));
108 if (ec_GFp_pt_is_inf_aff(qx, qy) == 0) {
114 /* if px != qx, then lambda = (py-qy) / (px-qx) */
115 if (mp_cmp(px, qx) != 0) {
117 MP_CHECKOK(group->meth->field_sub(px, qx, &tempx, group->meth));
128 /* lambda = (3qx^2+a) / (2qy) */
129 MP_CHECKOK(group->meth->field_sqr(qx, &tempx, group->meth));
146 /* rx = lambda^2 - px - qx */
149 MP_CHECKOK(group->meth->field_sub(&tempx, qx, &tempx, group->meth));
151 MP_CHECKOK(group->meth->field_sub(qx, &tempx, &tempy, group->meth));
171 ec_GFp_pt_sub_aff(const mp_int *px, const mp_int *py, const mp_int *qx,
182 res = group->point_add(px, py, qx, &nqy, rx, ry, group);
209 mp_int k, k3, qx, qy, sx, sy;
214 MP_DIGITS(&qx) = 0;
220 MP_CHECKOK(mp_init(&qx));
233 MP_CHECKOK(mp_copy(px, &qx));
243 MP_CHECKOK(mp_copy(&qx, &sx));
251 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
260 MP_CHECKOK(mp_copy(&qx, &sx));
273 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
277 point_sub(&sx, &sy, &qx, &qy, &sx, &sy, group));
288 mp_clear(&qx);