Lines Matching refs:ry
150 mp_int one, order_1, gx, gy, rx, ry, n; in ectest_curve_GFp() local
161 MP_CHECKOK(mp_init(&ry, kmflag)); in ectest_curve_GFp()
195 (&order_1, &group->genx, &group->geny, &rx, &ry, group)); in ectest_curve_GFp()
200 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
203 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth)); in ectest_curve_GFp()
205 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GFp()
216 (&order_1, &group->genx, &group->geny, &rx, &ry, group)); in ectest_curve_GFp()
221 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
224 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth)); in ectest_curve_GFp()
226 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GFp()
235 MP_CHECKOK(ECPoint_mul(group, &order_1, NULL, NULL, &rx, &ry)); in ectest_curve_GFp()
240 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
243 MP_CHECKOK(mp_submod(&group->meth->irr, &ry, &group->meth->irr, &ry)); in ectest_curve_GFp()
244 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
252 MP_CHECKOK(ECPoint_mul(group, &order_1, &gx, &gy, &rx, &ry)); in ectest_curve_GFp()
257 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
260 MP_CHECKOK(mp_submod(&group->meth->irr, &ry, &group->meth->irr, &ry)); in ectest_curve_GFp()
261 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
270 (&group->order, &group->genx, &group->geny, &rx, &ry, in ectest_curve_GFp()
276 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
279 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
289 (&group->order, &group->genx, &group->geny, &rx, &ry, in ectest_curve_GFp()
295 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
298 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
306 MP_CHECKOK(ECPoint_mul(group, &group->order, NULL, NULL, &rx, &ry)); in ectest_curve_GFp()
311 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
314 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
321 MP_CHECKOK(ECPoint_mul(group, &group->order, &gx, &gy, &rx, &ry)); in ectest_curve_GFp()
326 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
329 if (ec_GFp_pt_is_inf_aff(&rx, &ry) != MP_YES) { in ectest_curve_GFp()
337 (group, &order_1, &order_1, &gx, &gy, &rx, &ry)); in ectest_curve_GFp()
338 MP_CHECKOK(ECPoints_mul(group, &one, &one, &rx, &ry, &rx, &ry)); in ectest_curve_GFp()
344 MP_CHECKOK(mp_toradix(&ry, s, 16)); in ectest_curve_GFp()
347 MP_CHECKOK(mp_submod(&group->meth->irr, &ry, &group->meth->irr, &ry)); in ectest_curve_GFp()
348 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
360 MP_CHECKOK(mp_add_d(&gy, 1, &ry)); in ectest_curve_GFp()
361 if (ECPoint_validate(group, &gx, &ry) != MP_NO) { in ectest_curve_GFp()
380 (&n, &group->genx, &group->geny, &rx, &ry, in ectest_curve_GFp()
384 (ECPoint_mul(group, &n, NULL, NULL, &rx, &ry)), in ectest_curve_GFp()
388 (group, &n, &n, &gx, &gy, &rx, &ry)), 100); in ectest_curve_GFp()
391 (ECPoint_mul(group, &n, NULL, NULL, &rx, &ry)), in ectest_curve_GFp()
394 (ECPoint_mul(group, &n, &gx, &gy, &rx, &ry)), in ectest_curve_GFp()
398 (group, &n, &n, &gx, &gy, &rx, &ry)), 100); in ectest_curve_GFp()
408 mp_clear(&ry); in ectest_curve_GFp()