Lines Matching defs:meth

75 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth)
79 if (meth == NULL) {
83 if (meth->group_init == 0) {
94 ret->meth = meth;
109 if (!meth->group_init(ret)) {
122 if (group->meth->group_finish != 0)
123 group->meth->group_finish(group);
143 if (group->meth->group_clear_finish != 0)
144 group->meth->group_clear_finish(group);
145 else if (group->meth->group_finish != 0)
146 group->meth->group_finish(group);
168 if (dest->meth->group_copy == 0) {
172 if (dest->meth != src->meth) {
233 return dest->meth->group_copy(dest, src);
244 if ((t = EC_GROUP_new(a->meth)) == NULL)
262 return group->meth;
265 int EC_METHOD_get_field_type(const EC_METHOD *meth)
267 return meth->field_type;
387 if (group->meth->group_set_curve == 0) {
391 return group->meth->group_set_curve(group, p, a, b, ctx);
397 if (group->meth->group_get_curve == 0) {
401 return group->meth->group_get_curve(group, p, a, b, ctx);
408 if (group->meth->group_set_curve == 0) {
413 return group->meth->group_set_curve(group, p, a, b, ctx);
419 if (group->meth->group_get_curve == 0) {
424 return group->meth->group_get_curve(group, p, a, b, ctx);
430 if (group->meth->group_get_degree == 0) {
434 return group->meth->group_get_degree(group);
439 if (group->meth->group_check_discriminant == 0) {
444 return group->meth->group_check_discriminant(group, ctx);
485 if (!a->meth->group_get_curve(a, a1, a2, a3, ctx) ||
486 !b->meth->group_get_curve(b, b1, b2, b3, ctx))
674 if (group->meth->point_init == 0) {
685 ret->meth = group->meth;
687 if (!ret->meth->point_init(ret)) {
700 if (point->meth->point_finish != 0)
701 point->meth->point_finish(point);
710 if (point->meth->point_clear_finish != 0)
711 point->meth->point_clear_finish(point);
712 else if (point->meth->point_finish != 0)
713 point->meth->point_finish(point);
720 if (dest->meth->point_copy == 0) {
724 if (dest->meth != src->meth) {
730 return dest->meth->point_copy(dest, src);
754 return point->meth;
759 if (group->meth->point_set_to_infinity == 0) {
764 if (group->meth != point->meth) {
768 return group->meth->point_set_to_infinity(group, point);
776 if (group->meth->point_set_Jprojective_coordinates_GFp == 0) {
781 if (group->meth != point->meth) {
786 return group->meth->point_set_Jprojective_coordinates_GFp(group, point, x,
795 if (group->meth->point_get_Jprojective_coordinates_GFp == 0) {
800 if (group->meth != point->meth) {
805 return group->meth->point_get_Jprojective_coordinates_GFp(group, point, x,
813 if (group->meth->point_set_affine_coordinates == 0) {
818 if (group->meth != point->meth) {
823 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx);
831 if (group->meth->point_set_affine_coordinates == 0) {
836 if (group->meth != point->meth) {
841 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx);
849 if (group->meth->point_get_affine_coordinates == 0) {
854 if (group->meth != point->meth) {
859 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
867 if (group->meth->point_get_affine_coordinates == 0) {
872 if (group->meth != point->meth) {
877 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
884 if (group->meth->add == 0) {
888 if ((group->meth != r->meth) || (r->meth != a->meth)
889 || (a->meth != b->meth)) {
893 return group->meth->add(group, r, a, b, ctx);
899 if (group->meth->dbl == 0) {
903 if ((group->meth != r->meth) || (r->meth != a->meth)) {
907 return group->meth->dbl(group, r, a, ctx);
912 if (group->meth->invert == 0) {
916 if (group->meth != a->meth) {
920 return group->meth->invert(group, a, ctx);
925 if (group->meth->is_at_infinity == 0) {
930 if (group->meth != point->meth) {
934 return group->meth->is_at_infinity(group, point);
947 if (group->meth->is_on_curve == 0) {
951 if (group->meth != point->meth) {
955 return group->meth->is_on_curve(group, point, ctx);
961 if (group->meth->point_cmp == 0) {
965 if ((group->meth != a->meth) || (a->meth != b->meth)) {
969 return group->meth->point_cmp(group, a, b, ctx);
974 if (group->meth->make_affine == 0) {
978 if (group->meth != point->meth) {
982 return group->meth->make_affine(group, point, ctx);
990 if (group->meth->points_make_affine == 0) {
995 if (group->meth != points[i]->meth) {
1000 return group->meth->points_make_affine(group, num, points, ctx);
1004 * Functions for point multiplication. If group->meth->mul is 0, we use the
1013 if (group->meth->mul == 0)
1017 return group->meth->mul(group, r, scalar, num, points, scalars, ctx);
1038 if (group->meth->mul == 0)
1042 if (group->meth->precompute_mult != 0)
1043 return group->meth->precompute_mult(group, ctx);
1050 if (group->meth->mul == 0)
1054 if (group->meth->have_precompute_mult != 0)
1055 return group->meth->have_precompute_mult(group);