Lines Matching refs:field_mul
579 if (x != NULL && !group->meth->field_mul(group, x, &point->X, Z_2, ctx)) { in ec_GFp_simple_point_get_affine_coordinates()
586 if (!group->meth->field_mul(group, Z_3, Z_2, Z_1, ctx)) { in ec_GFp_simple_point_get_affine_coordinates()
595 if (!group->meth->field_mul(group, y, &point->Y, Z_3, ctx)) { in ec_GFp_simple_point_get_affine_coordinates()
611 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, in ec_GFp_simple_add() local
629 field_mul = group->meth->field_mul; in ec_GFp_simple_add()
666 !field_mul(group, n1, &a->X, n0, ctx)) { in ec_GFp_simple_add()
671 if (!field_mul(group, n0, n0, &b->Z, ctx) || in ec_GFp_simple_add()
672 !field_mul(group, n2, &a->Y, n0, ctx)) { in ec_GFp_simple_add()
687 !field_mul(group, n3, &b->X, n0, ctx)) { in ec_GFp_simple_add()
692 if (!field_mul(group, n0, n0, &a->Z, ctx) || in ec_GFp_simple_add()
693 !field_mul(group, n4, &b->Y, n0, ctx)) { in ec_GFp_simple_add()
745 } else if (!field_mul(group, n0, &a->Z, &b->Z, ctx)) { in ec_GFp_simple_add()
748 if (!field_mul(group, &r->Z, n0, n5, ctx)) { in ec_GFp_simple_add()
758 !field_mul(group, n3, n1, n4, ctx) || in ec_GFp_simple_add()
772 if (!field_mul(group, n0, n0, n6, ctx) || in ec_GFp_simple_add()
773 !field_mul(group, n5, n4, n5, ctx)) { in ec_GFp_simple_add()
776 if (!field_mul(group, n1, n2, n5, ctx) || in ec_GFp_simple_add()
802 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, in ec_GFp_simple_dbl() local
816 field_mul = group->meth->field_mul; in ec_GFp_simple_dbl()
854 !field_mul(group, n1, n0, n2, ctx) || in ec_GFp_simple_dbl()
867 !field_mul(group, n1, n1, &group->a, ctx) || in ec_GFp_simple_dbl()
879 } else if (!field_mul(group, n0, &a->Y, &a->Z, ctx)) { in ec_GFp_simple_dbl()
890 !field_mul(group, n2, &a->X, n3, ctx) || in ec_GFp_simple_dbl()
913 !field_mul(group, n0, n1, n0, ctx) || in ec_GFp_simple_dbl()
942 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, in ec_GFp_simple_is_on_curve() local
954 field_mul = group->meth->field_mul; in ec_GFp_simple_is_on_curve()
992 !field_mul(group, Z6, Z4, tmp, ctx)) { in ec_GFp_simple_is_on_curve()
1001 !field_mul(group, rh, rh, &point->X, ctx)) { in ec_GFp_simple_is_on_curve()
1005 if (!field_mul(group, tmp, Z4, &group->a, ctx) || in ec_GFp_simple_is_on_curve()
1007 !field_mul(group, rh, rh, &point->X, ctx)) { in ec_GFp_simple_is_on_curve()
1013 if (!field_mul(group, tmp, &group->b, Z6, ctx) || in ec_GFp_simple_is_on_curve()
1022 !field_mul(group, rh, rh, &point->X, ctx)) { in ec_GFp_simple_is_on_curve()
1052 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, in ec_GFp_simple_cmp() local
1072 field_mul = group->meth->field_mul; in ec_GFp_simple_cmp()
1099 !field_mul(group, tmp1, &a->X, Zb23, ctx)) { in ec_GFp_simple_cmp()
1108 !field_mul(group, tmp2, &b->X, Za23, ctx)) { in ec_GFp_simple_cmp()
1124 if (!field_mul(group, Zb23, Zb23, &b->Z, ctx) || in ec_GFp_simple_cmp()
1125 !field_mul(group, tmp1, &a->Y, Zb23, ctx)) { in ec_GFp_simple_cmp()
1133 if (!field_mul(group, Za23, Za23, &a->Z, ctx) || in ec_GFp_simple_cmp()
1134 !field_mul(group, tmp2, &b->Y, Za23, ctx)) { in ec_GFp_simple_cmp()
1257 if (!group->meth->field_mul(group, prod_Z[i], prod_Z[i - 1], in ec_GFp_simple_points_make_affine()
1295 if (!group->meth->field_mul(group, tmp_Z, prod_Z[i - 1], tmp, ctx) || in ec_GFp_simple_points_make_affine()
1297 !group->meth->field_mul(group, tmp, tmp, &points[i]->Z, ctx) || in ec_GFp_simple_points_make_affine()
1316 !group->meth->field_mul(group, &p->X, &p->X, tmp, ctx) || in ec_GFp_simple_points_make_affine()
1317 !group->meth->field_mul(group, tmp, tmp, &p->Z, ctx) || in ec_GFp_simple_points_make_affine()
1318 !group->meth->field_mul(group, &p->Y, &p->Y, tmp, ctx)) { in ec_GFp_simple_points_make_affine()