Lines Matching defs:qy
86 const mp_int *qy, mp_int *rx, mp_int *ry,
103 MP_CHECKOK(mp_copy(qy, ry));
108 if (ec_GFp_pt_is_inf_aff(qx, qy) == 0) {
114 /* if px != qx, then lambda = (py-qy) / (px-qx) */
116 MP_CHECKOK(group->meth->field_sub(py, qy, &tempy, group->meth));
121 /* if py != qy or qy = 0, then R = inf */
122 if (((mp_cmp(py, qy) != 0)) || (mp_cmp_z(qy) == 0)) {
128 /* lambda = (3qx^2+a) / (2qy) */
142 MP_CHECKOK(group->meth->field_mul(qy, &temp, &tempy, group->meth));
154 MP_CHECKOK(group->meth->field_sub(&tempy, qy, &tempy, group->meth));
172 const mp_int *qy, mp_int *rx, mp_int *ry,
180 /* nqy = -qy */
181 MP_CHECKOK(group->meth->field_neg(qy, &nqy, group->meth));
209 mp_int k, k3, qx, qy, sx, sy;
215 MP_DIGITS(&qy) = 0;
221 MP_CHECKOK(mp_init(&qy));
234 MP_CHECKOK(mp_copy(py, &qy));
238 MP_CHECKOK(group->meth->field_neg(&qy, &qy, group->meth));
244 MP_CHECKOK(mp_copy(&qy, &sy));
251 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
261 MP_CHECKOK(mp_copy(&qy, &sy));
273 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
277 point_sub(&sx, &sy, &qx, &qy, &sx, &sy, group));
289 mp_clear(&qy);