Lines Matching refs:meth
76 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth)
80 if (meth == NULL)
85 if (meth->group_init == 0)
98 ret->meth = meth;
113 if (!meth->group_init(ret))
127 if (group->meth->group_finish != 0)
128 group->meth->group_finish(group);
148 if (group->meth->group_clear_finish != 0)
149 group->meth->group_clear_finish(group);
150 else if (group->meth->group_finish != 0)
151 group->meth->group_finish(group);
175 if (dest->meth->group_copy == 0)
180 if (dest->meth != src->meth)
246 return dest->meth->group_copy(dest, src);
257 if ((t = EC_GROUP_new(a->meth)) == NULL) return(NULL);
274 return group->meth;
278 int EC_METHOD_get_field_type(const EC_METHOD *meth)
280 return meth->field_type;
409 if (group->meth->group_set_curve == 0)
414 return group->meth->group_set_curve(group, p, a, b, ctx);
420 if (group->meth->group_get_curve == 0)
425 return group->meth->group_get_curve(group, p, a, b, ctx);
431 if (group->meth->group_set_curve == 0)
436 return group->meth->group_set_curve(group, p, a, b, ctx);
442 if (group->meth->group_get_curve == 0)
447 return group->meth->group_get_curve(group, p, a, b, ctx);
453 if (group->meth->group_get_degree == 0)
458 return group->meth->group_get_degree(group);
464 if (group->meth->group_check_discriminant == 0)
469 return group->meth->group_check_discriminant(group, ctx);
511 if (!a->meth->group_get_curve(a, a1, a2, a3, ctx) ||
512 !b->meth->group_get_curve(b, b1, b2, b3, ctx))
702 if (group->meth->point_init == 0)
715 ret->meth = group->meth;
717 if (!ret->meth->point_init(ret))
731 if (point->meth->point_finish != 0)
732 point->meth->point_finish(point);
741 if (point->meth->point_clear_finish != 0)
742 point->meth->point_clear_finish(point);
743 else if (point->meth->point_finish != 0)
744 point->meth->point_finish(point);
752 if (dest->meth->point_copy == 0)
757 if (dest->meth != src->meth)
764 return dest->meth->point_copy(dest, src);
789 return point->meth;
795 if (group->meth->point_set_to_infinity == 0)
800 if (group->meth != point->meth)
805 return group->meth->point_set_to_infinity(group, point);
812 if (group->meth->point_set_Jprojective_coordinates_GFp == 0)
817 if (group->meth != point->meth)
822 return group->meth->point_set_Jprojective_coordinates_GFp(group, point, x, y, z, ctx);
829 if (group->meth->point_get_Jprojective_coordinates_GFp == 0)
834 if (group->meth != point->meth)
839 return group->meth->point_get_Jprojective_coordinates_GFp(group, point, x, y, z, ctx);
846 if (group->meth->point_set_affine_coordinates == 0)
851 if (group->meth != point->meth)
856 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx);
863 if (group->meth->point_set_affine_coordinates == 0)
868 if (group->meth != point->meth)
873 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx);
880 if (group->meth->point_get_affine_coordinates == 0)
885 if (group->meth != point->meth)
890 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
897 if (group->meth->point_get_affine_coordinates == 0)
902 if (group->meth != point->meth)
907 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
913 if (group->meth->add == 0)
918 if ((group->meth != r->meth) || (r->meth != a->meth) || (a->meth != b->meth))
923 return group->meth->add(group, r, a, b, ctx);
929 if (group->meth->dbl == 0)
934 if ((group->meth != r->meth) || (r->meth != a->meth))
939 return group->meth->dbl(group, r, a, ctx);
945 if (group->meth->invert == 0)
950 if (group->meth != a->meth)
955 return group->meth->invert(group, a, ctx);
961 if (group->meth->is_at_infinity == 0)
966 if (group->meth != point->meth)
971 return group->meth->is_at_infinity(group, point);
977 if (group->meth->is_on_curve == 0)
982 if (group->meth != point->meth)
987 return group->meth->is_on_curve(group, point, ctx);
993 if (group->meth->point_cmp == 0)
998 if ((group->meth != a->meth) || (a->meth != b->meth))
1003 return group->meth->point_cmp(group, a, b, ctx);
1009 if (group->meth->make_affine == 0)
1014 if (group->meth != point->meth)
1019 return group->meth->make_affine(group, point, ctx);
1027 if (group->meth->points_make_affine == 0)
1034 if (group->meth != points[i]->meth)
1040 return group->meth->points_make_affine(group, num, points, ctx);
1046 * If group->meth->mul is 0, we use the wNAF-based implementations in ec_mult.c;
1053 if (group->meth->mul == 0)
1057 return group->meth->mul(group, r, scalar, num, points, scalars, ctx);
1076 if (group->meth->mul == 0)
1080 if (group->meth->precompute_mult != 0)
1081 return group->meth->precompute_mult(group, ctx);
1088 if (group->meth->mul == 0)
1092 if (group->meth->have_precompute_mult != 0)
1093 return group->meth->have_precompute_mult(group);