Lines Matching refs:meth

174     if (group->meth->field_encode != NULL) {  in ossl_ec_GFp_simple_group_set_curve()
175 if (!group->meth->field_encode(group, group->a, tmp_a, ctx)) in ossl_ec_GFp_simple_group_set_curve()
183 if (group->meth->field_encode != NULL) in ossl_ec_GFp_simple_group_set_curve()
184 if (!group->meth->field_encode(group, group->b, group->b, ctx)) in ossl_ec_GFp_simple_group_set_curve()
212 if (group->meth->field_decode != NULL) { in ossl_ec_GFp_simple_group_get_curve()
219 if (!group->meth->field_decode(group, a, group->a, ctx)) in ossl_ec_GFp_simple_group_get_curve()
223 if (!group->meth->field_decode(group, b, group->b, ctx)) in ossl_ec_GFp_simple_group_get_curve()
274 if (group->meth->field_decode != NULL) { in ossl_ec_GFp_simple_group_check_discriminant()
275 if (!group->meth->field_decode(group, a, group->a, ctx)) in ossl_ec_GFp_simple_group_check_discriminant()
277 if (!group->meth->field_decode(group, b, group->b, ctx)) in ossl_ec_GFp_simple_group_check_discriminant()
394 if (group->meth->field_encode) { in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
395 if (!group->meth->field_encode(group, point->X, point->X, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
403 if (group->meth->field_encode) { in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
404 if (!group->meth->field_encode(group, point->Y, point->Y, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
415 if (group->meth->field_encode) { in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
416 if (Z_is_one && (group->meth->field_set_to_one != 0)) { in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
417 if (!group->meth->field_set_to_one(group, point->Z, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
421 meth->field_encode(group, point->Z, point->Z, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
443 if (group->meth->field_decode != NULL) { in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp()
451 if (!group->meth->field_decode(group, x, point->X, ctx)) in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp()
455 if (!group->meth->field_decode(group, y, point->Y, ctx)) in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp()
459 if (!group->meth->field_decode(group, z, point->Z, ctx)) in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp()
532 if (group->meth->field_decode != NULL) { in ossl_ec_GFp_simple_point_get_affine_coordinates()
533 if (!group->meth->field_decode(group, Z, point->Z, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
541 if (group->meth->field_decode != NULL) { in ossl_ec_GFp_simple_point_get_affine_coordinates()
543 if (!group->meth->field_decode(group, x, point->X, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
547 if (!group->meth->field_decode(group, y, point->Y, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
561 if (!group->meth->field_inv(group, Z_1, Z_, ctx)) { in ossl_ec_GFp_simple_point_get_affine_coordinates()
566 if (group->meth->field_encode == NULL) { in ossl_ec_GFp_simple_point_get_affine_coordinates()
568 if (!group->meth->field_sqr(group, Z_2, Z_1, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
580 if (!group->meth->field_mul(group, x, point->X, Z_2, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
585 if (group->meth->field_encode == NULL) { in ossl_ec_GFp_simple_point_get_affine_coordinates()
589 if (!group->meth->field_mul(group, Z_3, Z_2, Z_1, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
600 if (!group->meth->field_mul(group, y, point->Y, Z_3, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
631 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_add()
632 field_sqr = group->meth->field_sqr; in ossl_ec_GFp_simple_add()
815 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_dbl()
816 field_sqr = group->meth->field_sqr; in ossl_ec_GFp_simple_dbl()
970 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_is_on_curve()
971 field_sqr = group->meth->field_sqr; in ossl_ec_GFp_simple_is_on_curve()
1088 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_cmp()
1089 field_sqr = group->meth->field_sqr; in ossl_ec_GFp_simple_cmp()
1248 if (group->meth->field_set_to_one != 0) { in ossl_ec_GFp_simple_points_make_affine()
1249 if (!group->meth->field_set_to_one(group, prod_Z[0], ctx)) in ossl_ec_GFp_simple_points_make_affine()
1260 meth->field_mul(group, prod_Z[i], prod_Z[i - 1], points[i]->Z, in ossl_ec_GFp_simple_points_make_affine()
1274 if (!group->meth->field_inv(group, tmp, prod_Z[num - 1], ctx)) { in ossl_ec_GFp_simple_points_make_affine()
1278 if (group->meth->field_encode != NULL) { in ossl_ec_GFp_simple_points_make_affine()
1284 if (!group->meth->field_encode(group, tmp, tmp, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1286 if (!group->meth->field_encode(group, tmp, tmp, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1301 meth->field_mul(group, tmp_Z, prod_Z[i - 1], tmp, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1306 if (!group->meth->field_mul(group, tmp, tmp, points[i]->Z, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1328 if (!group->meth->field_sqr(group, tmp, p->Z, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1330 if (!group->meth->field_mul(group, p->X, p->X, tmp, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1333 if (!group->meth->field_mul(group, tmp, tmp, p->Z, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1335 if (!group->meth->field_mul(group, p->Y, p->Y, tmp, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1338 if (group->meth->field_set_to_one != 0) { in ossl_ec_GFp_simple_points_make_affine()
1339 if (!group->meth->field_set_to_one(group, p->Z, ctx)) in ossl_ec_GFp_simple_points_make_affine()
1404 if (!group->meth->field_mul(group, r, a, e, ctx)) in ossl_ec_GFp_simple_field_inv()
1412 if (!group->meth->field_mul(group, r, r, e, ctx)) in ossl_ec_GFp_simple_field_inv()
1461 if ((group->meth->field_encode != NULL in ossl_ec_GFp_simple_blind_coordinates()
1462 && !group->meth->field_encode(group, lambda, lambda, ctx)) in ossl_ec_GFp_simple_blind_coordinates()
1463 || !group->meth->field_mul(group, p->Z, p->Z, lambda, ctx) in ossl_ec_GFp_simple_blind_coordinates()
1464 || !group->meth->field_sqr(group, temp, lambda, ctx) in ossl_ec_GFp_simple_blind_coordinates()
1465 || !group->meth->field_mul(group, p->X, p->X, temp, ctx) in ossl_ec_GFp_simple_blind_coordinates()
1466 || !group->meth->field_mul(group, temp, temp, lambda, ctx) in ossl_ec_GFp_simple_blind_coordinates()
1467 || !group->meth->field_mul(group, p->Y, p->Y, temp, ctx)) in ossl_ec_GFp_simple_blind_coordinates()
1506 || !group->meth->field_sqr(group, t3, p->X, ctx) in ossl_ec_GFp_simple_ladder_pre()
1508 || !group->meth->field_sqr(group, t4, t4, ctx) in ossl_ec_GFp_simple_ladder_pre()
1509 || !group->meth->field_mul(group, t5, p->X, group->b, ctx) in ossl_ec_GFp_simple_ladder_pre()
1514 || !group->meth->field_mul(group, t2, p->X, t1, ctx) in ossl_ec_GFp_simple_ladder_pre()
1533 if (group->meth->field_encode != NULL in ossl_ec_GFp_simple_ladder_pre()
1534 && (!group->meth->field_encode(group, r->Y, r->Y, ctx) in ossl_ec_GFp_simple_ladder_pre()
1535 || !group->meth->field_encode(group, s->Z, s->Z, ctx))) in ossl_ec_GFp_simple_ladder_pre()
1539 if (!group->meth->field_mul(group, r->Z, r->Z, r->Y, ctx) in ossl_ec_GFp_simple_ladder_pre()
1540 || !group->meth->field_mul(group, r->X, r->X, r->Y, ctx) in ossl_ec_GFp_simple_ladder_pre()
1541 || !group->meth->field_mul(group, s->X, p->X, s->Z, ctx)) /* s := p */ in ossl_ec_GFp_simple_ladder_pre()
1580 || !group->meth->field_mul(group, t6, r->X, s->X, ctx) in ossl_ec_GFp_simple_ladder_step()
1581 || !group->meth->field_mul(group, t0, r->Z, s->Z, ctx) in ossl_ec_GFp_simple_ladder_step()
1582 || !group->meth->field_mul(group, t4, r->X, s->Z, ctx) in ossl_ec_GFp_simple_ladder_step()
1583 || !group->meth->field_mul(group, t3, r->Z, s->X, ctx) in ossl_ec_GFp_simple_ladder_step()
1584 || !group->meth->field_mul(group, t5, group->a, t0, ctx) in ossl_ec_GFp_simple_ladder_step()
1587 || !group->meth->field_mul(group, t5, t6, t5, ctx) in ossl_ec_GFp_simple_ladder_step()
1588 || !group->meth->field_sqr(group, t0, t0, ctx) in ossl_ec_GFp_simple_ladder_step()
1590 || !group->meth->field_mul(group, t0, t2, t0, ctx) in ossl_ec_GFp_simple_ladder_step()
1594 || !group->meth->field_sqr(group, s->Z, t3, ctx) in ossl_ec_GFp_simple_ladder_step()
1595 || !group->meth->field_mul(group, t4, s->Z, p->X, ctx) in ossl_ec_GFp_simple_ladder_step()
1599 || !group->meth->field_sqr(group, t4, r->X, ctx) in ossl_ec_GFp_simple_ladder_step()
1600 || !group->meth->field_sqr(group, t5, r->Z, ctx) in ossl_ec_GFp_simple_ladder_step()
1601 || !group->meth->field_mul(group, t6, t5, group->a, ctx) in ossl_ec_GFp_simple_ladder_step()
1603 || !group->meth->field_sqr(group, t1, t1, ctx) in ossl_ec_GFp_simple_ladder_step()
1607 || !group->meth->field_sqr(group, t3, t3, ctx) in ossl_ec_GFp_simple_ladder_step()
1608 || !group->meth->field_mul(group, t0, t5, t1, ctx) in ossl_ec_GFp_simple_ladder_step()
1609 || !group->meth->field_mul(group, t0, t2, t0, ctx) in ossl_ec_GFp_simple_ladder_step()
1613 || !group->meth->field_sqr(group, t4, t5, ctx) in ossl_ec_GFp_simple_ladder_step()
1614 || !group->meth->field_mul(group, t4, t4, t2, ctx) in ossl_ec_GFp_simple_ladder_step()
1615 || !group->meth->field_mul(group, t1, t1, t3, ctx) in ossl_ec_GFp_simple_ladder_step()
1679 || !group->meth->field_mul(group, t6, r->X, t4, ctx) in ossl_ec_GFp_simple_ladder_post()
1680 || !group->meth->field_mul(group, t6, s->Z, t6, ctx) in ossl_ec_GFp_simple_ladder_post()
1681 || !group->meth->field_mul(group, t5, r->Z, t6, ctx) in ossl_ec_GFp_simple_ladder_post()
1683 || !group->meth->field_mul(group, t1, s->Z, t1, ctx) in ossl_ec_GFp_simple_ladder_post()
1684 || !group->meth->field_sqr(group, t3, r->Z, ctx) in ossl_ec_GFp_simple_ladder_post()
1685 || !group->meth->field_mul(group, t2, t3, t1, ctx) in ossl_ec_GFp_simple_ladder_post()
1686 || !group->meth->field_mul(group, t6, r->Z, group->a, ctx) in ossl_ec_GFp_simple_ladder_post()
1687 || !group->meth->field_mul(group, t1, p->X, r->X, ctx) in ossl_ec_GFp_simple_ladder_post()
1689 || !group->meth->field_mul(group, t1, s->Z, t1, ctx) in ossl_ec_GFp_simple_ladder_post()
1690 || !group->meth->field_mul(group, t0, p->X, r->Z, ctx) in ossl_ec_GFp_simple_ladder_post()
1692 || !group->meth->field_mul(group, t6, t6, t1, ctx) in ossl_ec_GFp_simple_ladder_post()
1695 || !group->meth->field_sqr(group, t0, t0, ctx) in ossl_ec_GFp_simple_ladder_post()
1696 || !group->meth->field_mul(group, t0, t0, s->X, ctx) in ossl_ec_GFp_simple_ladder_post()
1698 || !group->meth->field_mul(group, t1, s->Z, t4, ctx) in ossl_ec_GFp_simple_ladder_post()
1699 || !group->meth->field_mul(group, t1, t3, t1, ctx) in ossl_ec_GFp_simple_ladder_post()
1700 || (group->meth->field_decode != NULL in ossl_ec_GFp_simple_ladder_post()
1701 && !group->meth->field_decode(group, t1, t1, ctx)) in ossl_ec_GFp_simple_ladder_post()
1702 || !group->meth->field_inv(group, t1, t1, ctx) in ossl_ec_GFp_simple_ladder_post()
1703 || (group->meth->field_encode != NULL in ossl_ec_GFp_simple_ladder_post()
1704 && !group->meth->field_encode(group, t1, t1, ctx)) in ossl_ec_GFp_simple_ladder_post()
1705 || !group->meth->field_mul(group, r->X, t5, t1, ctx) in ossl_ec_GFp_simple_ladder_post()
1706 || !group->meth->field_mul(group, r->Y, t0, t1, ctx)) in ossl_ec_GFp_simple_ladder_post()
1709 if (group->meth->field_set_to_one != NULL) { in ossl_ec_GFp_simple_ladder_post()
1710 if (!group->meth->field_set_to_one(group, r->Z, ctx)) in ossl_ec_GFp_simple_ladder_post()