Lines Matching refs:ry
148 mp_int one, order_1, gx, gy, rx, ry, n; in ectest_curve_GFp() local
159 MP_CHECKOK(mp_init(&ry, kmflag)); in ectest_curve_GFp()
193 (&order_1, &group->genx, &group->geny, &rx, &ry, group)); in ectest_curve_GFp()
198 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
201 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth)); in ectest_curve_GFp()
203 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GFp()
214 (&order_1, &group->genx, &group->geny, &rx, &ry, group)); in ectest_curve_GFp()
219 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
222 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth)); in ectest_curve_GFp()
224 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GFp()
233 MP_CHECKOK(ECPoint_mul(group, &order_1, NULL, NULL, &rx, &ry)); in ectest_curve_GFp()
238 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
241 MP_CHECKOK(mp_submod(&group->meth->irr, &ry, &group->meth->irr, &ry)); in ectest_curve_GFp()
242 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
250 MP_CHECKOK(ECPoint_mul(group, &order_1, &gx, &gy, &rx, &ry)); in ectest_curve_GFp()
255 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
258 MP_CHECKOK(mp_submod(&group->meth->irr, &ry, &group->meth->irr, &ry)); in ectest_curve_GFp()
259 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
268 (&group->order, &group->genx, &group->geny, &rx, &ry, in ectest_curve_GFp()
274 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
277 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
287 (&group->order, &group->genx, &group->geny, &rx, &ry, in ectest_curve_GFp()
293 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
296 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
304 MP_CHECKOK(ECPoint_mul(group, &group->order, NULL, NULL, &rx, &ry)); in ectest_curve_GFp()
309 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
312 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
319 MP_CHECKOK(ECPoint_mul(group, &group->order, &gx, &gy, &rx, &ry)); in ectest_curve_GFp()
324 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
327 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
335 (group, &order_1, &order_1, &gx, &gy, &rx, &ry)); in ectest_curve_GFp()
336 MP_CHECKOK(ECPoints_mul(group, &one, &one, &rx, &ry, &rx, &ry)); in ectest_curve_GFp()
342 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
345 MP_CHECKOK(mp_submod(&group->meth->irr, &ry, &group->meth->irr, &ry)); in ectest_curve_GFp()
346 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
358 MP_CHECKOK(mp_add_d(&gy, 1, &ry)); in ectest_curve_GFp()
359 if (ECPoint_validate(group, &gx, &ry) != MP_NO) { in ectest_curve_GFp()
378 (&n, &group->genx, &group->geny, &rx, &ry, in ectest_curve_GFp()
382 (ECPoint_mul(group, &n, NULL, NULL, &rx, &ry)), in ectest_curve_GFp()
386 (group, &n, &n, &gx, &gy, &rx, &ry)), 100); in ectest_curve_GFp()
389 (ECPoint_mul(group, &n, NULL, NULL, &rx, &ry)), in ectest_curve_GFp()
392 (ECPoint_mul(group, &n, &gx, &gy, &rx, &ry)), in ectest_curve_GFp()
396 (group, &n, &n, &gx, &gy, &rx, &ry)), 100); in ectest_curve_GFp()
406 mp_clear(&ry); in ectest_curve_GFp()