Lines Matching refs:meth
114 MP_CHECKOK(group->meth->field_sub(py, qy, &tempy, group->meth)); in ec_GFp_pt_add_aff()
115 MP_CHECKOK(group->meth->field_sub(px, qx, &tempx, group->meth)); in ec_GFp_pt_add_aff()
116 MP_CHECKOK(group->meth-> in ec_GFp_pt_add_aff()
117 field_div(&tempy, &tempx, &lambda, group->meth)); in ec_GFp_pt_add_aff()
127 MP_CHECKOK(group->meth->field_sqr(qx, &tempx, group->meth)); in ec_GFp_pt_add_aff()
129 if (group->meth->field_enc) { in ec_GFp_pt_add_aff()
130 MP_CHECKOK(group->meth->field_enc(&temp, &temp, group->meth)); in ec_GFp_pt_add_aff()
132 MP_CHECKOK(group->meth-> in ec_GFp_pt_add_aff()
133 field_mul(&tempx, &temp, &tempx, group->meth)); in ec_GFp_pt_add_aff()
134 MP_CHECKOK(group->meth-> in ec_GFp_pt_add_aff()
135 field_add(&tempx, &group->curvea, &tempx, group->meth)); in ec_GFp_pt_add_aff()
137 if (group->meth->field_enc) { in ec_GFp_pt_add_aff()
138 MP_CHECKOK(group->meth->field_enc(&temp, &temp, group->meth)); in ec_GFp_pt_add_aff()
140 MP_CHECKOK(group->meth->field_mul(qy, &temp, &tempy, group->meth)); in ec_GFp_pt_add_aff()
141 MP_CHECKOK(group->meth-> in ec_GFp_pt_add_aff()
142 field_div(&tempx, &tempy, &lambda, group->meth)); in ec_GFp_pt_add_aff()
145 MP_CHECKOK(group->meth->field_sqr(&lambda, &tempx, group->meth)); in ec_GFp_pt_add_aff()
146 MP_CHECKOK(group->meth->field_sub(&tempx, px, &tempx, group->meth)); in ec_GFp_pt_add_aff()
147 MP_CHECKOK(group->meth->field_sub(&tempx, qx, &tempx, group->meth)); in ec_GFp_pt_add_aff()
149 MP_CHECKOK(group->meth->field_sub(qx, &tempx, &tempy, group->meth)); in ec_GFp_pt_add_aff()
150 MP_CHECKOK(group->meth-> in ec_GFp_pt_add_aff()
151 field_mul(&tempy, &lambda, &tempy, group->meth)); in ec_GFp_pt_add_aff()
152 MP_CHECKOK(group->meth->field_sub(&tempy, qy, &tempy, group->meth)); in ec_GFp_pt_add_aff()
179 MP_CHECKOK(group->meth->field_neg(qy, &nqy, group->meth)); in ec_GFp_pt_sub_aff()
236 MP_CHECKOK(group->meth->field_neg(&qy, &qy, group->meth)); in ec_GFp_pt_mul_aff()
320 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) || in ec_GFp_validate_point()
321 (MP_SIGN(py) == MP_NEG) || (mp_cmp(py, &group->meth->irr) >= 0)) { in ec_GFp_validate_point()
326 if (group->meth->field_enc) { in ec_GFp_validate_point()
327 group->meth->field_enc(px, &pxt, group->meth); in ec_GFp_validate_point()
328 group->meth->field_enc(py, &pyt, group->meth); in ec_GFp_validate_point()
334 MP_CHECKOK( group->meth->field_sqr(&pyt, &accl, group->meth) ); in ec_GFp_validate_point()
336 MP_CHECKOK( group->meth->field_sqr(&pxt, &tmp, group->meth) ); in ec_GFp_validate_point()
337 MP_CHECKOK( group->meth->field_mul(&pxt, &tmp, &accr, group->meth) ); in ec_GFp_validate_point()
338 MP_CHECKOK( group->meth->field_mul(&group->curvea, &pxt, &tmp, group->meth) ); in ec_GFp_validate_point()
339 MP_CHECKOK( group->meth->field_add(&tmp, &accr, &accr, group->meth) ); in ec_GFp_validate_point()
340 MP_CHECKOK( group->meth->field_add(&accr, &group->curveb, &accr, group->meth) ); in ec_GFp_validate_point()
342 MP_CHECKOK( group->meth->field_sub(&accl, &accr, &accr, group->meth) ); in ec_GFp_validate_point()