Lines Matching defs:group
81 const ECGroup *group)
109 MP_CHECKOK(group->meth->field_add(py, qy, &tempy, group->meth));
110 MP_CHECKOK(group->meth->field_add(px, qx, &tempx, group->meth));
111 MP_CHECKOK(group->meth->
112 field_div(&tempy, &tempx, &lambda, group->meth));
113 MP_CHECKOK(group->meth->field_sqr(&lambda, &tempx, group->meth));
114 MP_CHECKOK(group->meth->
115 field_add(&tempx, &lambda, &tempx, group->meth));
116 MP_CHECKOK(group->meth->
117 field_add(&tempx, &group->curvea, &tempx, group->meth));
118 MP_CHECKOK(group->meth->
119 field_add(&tempx, px, &tempx, group->meth));
120 MP_CHECKOK(group->meth->
121 field_add(&tempx, qx, &tempx, group->meth));
131 MP_CHECKOK(group->meth->field_div(qy, qx, &lambda, group->meth));
132 MP_CHECKOK(group->meth->
133 field_add(&lambda, qx, &lambda, group->meth));
135 MP_CHECKOK(group->meth->field_sqr(&lambda, &tempx, group->meth));
136 MP_CHECKOK(group->meth->
137 field_add(&tempx, &lambda, &tempx, group->meth));
138 MP_CHECKOK(group->meth->
139 field_add(&tempx, &group->curvea, &tempx, group->meth));
142 MP_CHECKOK(group->meth->field_add(qx, &tempx, &tempy, group->meth));
143 MP_CHECKOK(group->meth->
144 field_mul(&tempy, &lambda, &tempy, group->meth));
145 MP_CHECKOK(group->meth->
146 field_add(&tempy, &tempx, &tempy, group->meth));
147 MP_CHECKOK(group->meth->field_add(&tempy, qy, ry, group->meth));
163 const ECGroup *group)
171 MP_CHECKOK(group->meth->field_add(qx, qy, &nqy, group->meth));
172 MP_CHECKOK(group->point_add(px, py, qx, &nqy, rx, ry, group));
182 mp_int *ry, const ECGroup *group)
184 return group->point_add(px, py, px, py, rx, ry, group);
193 mp_int *rx, mp_int *ry, const ECGroup *group)
225 MP_CHECKOK(group->meth->field_add(&qx, &qy, &qy, group->meth));
234 MP_CHECKOK(group->point_dbl(&sx, &sy, &sx, &sy, group));
237 MP_CHECKOK(group->
238 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
254 MP_CHECKOK(group->point_dbl(&sx, &sy, &sx, &sy, group));
259 MP_CHECKOK(group->
260 point_add(&sx, &sy, &qx, &qy, &sx, &sy, group));
263 MP_CHECKOK(group->
264 point_sub(&sx, &sy, &qx, &qy, &sx, &sy, group));
285 ec_GF2m_validate_point(const mp_int *px, const mp_int *py, const ECGroup *group)
309 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) ||
310 (MP_SIGN(py) == MP_NEG) || (mp_cmp(py, &group->meth->irr) >= 0)) {
315 if (group->meth->field_enc) {
316 group->meth->field_enc(px, &pxt, group->meth);
317 group->meth->field_enc(py, &pyt, group->meth);
323 MP_CHECKOK( group->meth->field_sqr(&pyt, &accl, group->meth) );
324 MP_CHECKOK( group->meth->field_mul(&pxt, &pyt, &tmp, group->meth) );
325 MP_CHECKOK( group->meth->field_add(&accl, &tmp, &accl, group->meth) );
327 MP_CHECKOK( group->meth->field_sqr(&pxt, &tmp, group->meth) );
328 MP_CHECKOK( group->meth->field_mul(&pxt, &tmp, &accr, group->meth) );
329 MP_CHECKOK( group->meth->field_mul(&group->curvea, &tmp, &tmp, group->meth) );
330 MP_CHECKOK( group->meth->field_add(&tmp, &accr, &accr, group->meth) );
331 MP_CHECKOK( group->meth->field_add(&accr, &group->curveb, &accr, group->meth) );
333 MP_CHECKOK( group->meth->field_add(&accl, &accr, &accr, group->meth) );
341 MP_CHECKOK( ECPoint_mul(group, &group->order, px, py, &pxt, &pyt) );