Lines Matching defs:qy
80 const mp_int *qy, mp_int *rx, mp_int *ry,
95 MP_CHECKOK(mp_copy(qy, ry));
100 if (ec_GF2m_pt_is_inf_aff(qx, qy) == 0) {
106 /* if px != qx, then lambda = (py+qy) / (px+qx), tempx = a + lambda^2
109 MP_CHECKOK(group->meth->field_add(py, qy, &tempy, group->meth));
123 /* if py != qy or qx = 0, then R = inf */
124 if (((mp_cmp(py, qy) != 0)) || (mp_cmp_z(qx) == 0)) {
130 /* lambda = qx + qy / qx */
131 MP_CHECKOK(group->meth->field_div(qy, qx, &lambda, group->meth));
141 /* ry = (qx + tempx) * lambda + tempx + qy */
147 MP_CHECKOK(group->meth->field_add(&tempy, qy, ry, group->meth));
162 const mp_int *qy, mp_int *rx, mp_int *ry,
170 /* nqy = qx+qy */
171 MP_CHECKOK(group->meth->field_add(qx, qy, &nqy, group->meth));
196 mp_int k, k3, qx, qy, sx, sy;
202 MP_DIGITS(&qy) = 0;
208 MP_CHECKOK(mp_init(&qy));
221 MP_CHECKOK(mp_copy(py, &qy));
225 MP_CHECKOK(group->meth->field_add(&qx, &qy, &qy, group->meth));
231 MP_CHECKOK(mp_copy(&qy, &sy));
238 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
248 MP_CHECKOK(mp_copy(&qy, &sy));
260 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
264 point_sub(&sx, &sy, &qx, &qy, &sx, &sy, group));
276 mp_clear(&qy);