Lines Matching refs:meth
76 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new() argument
80 if (meth == NULL) in EC_GROUP_new()
85 if (meth->group_init == 0) in EC_GROUP_new()
98 ret->meth = meth; in EC_GROUP_new()
113 if (!meth->group_init(ret)) in EC_GROUP_new()
127 if (group->meth->group_finish != 0) in EC_GROUP_free()
128 group->meth->group_finish(group); in EC_GROUP_free()
148 if (group->meth->group_clear_finish != 0) in EC_GROUP_clear_free()
149 group->meth->group_clear_finish(group); in EC_GROUP_clear_free()
150 else if (group->meth->group_finish != 0) in EC_GROUP_clear_free()
151 group->meth->group_finish(group); in EC_GROUP_clear_free()
175 if (dest->meth->group_copy == 0) in EC_GROUP_copy()
180 if (dest->meth != src->meth) in EC_GROUP_copy()
246 return dest->meth->group_copy(dest, src); in EC_GROUP_copy()
257 if ((t = EC_GROUP_new(a->meth)) == NULL) return(NULL); in EC_GROUP_dup()
274 return group->meth; in EC_GROUP_method_of()
278 int EC_METHOD_get_field_type(const EC_METHOD *meth) in EC_METHOD_get_field_type() argument
280 return meth->field_type; in EC_METHOD_get_field_type()
409 if (group->meth->group_set_curve == 0) in EC_GROUP_set_curve_GFp()
414 return group->meth->group_set_curve(group, p, a, b, ctx); in EC_GROUP_set_curve_GFp()
420 if (group->meth->group_get_curve == 0) in EC_GROUP_get_curve_GFp()
425 return group->meth->group_get_curve(group, p, a, b, ctx); in EC_GROUP_get_curve_GFp()
431 if (group->meth->group_set_curve == 0) in EC_GROUP_set_curve_GF2m()
436 return group->meth->group_set_curve(group, p, a, b, ctx); in EC_GROUP_set_curve_GF2m()
442 if (group->meth->group_get_curve == 0) in EC_GROUP_get_curve_GF2m()
447 return group->meth->group_get_curve(group, p, a, b, ctx); in EC_GROUP_get_curve_GF2m()
453 if (group->meth->group_get_degree == 0) in EC_GROUP_get_degree()
458 return group->meth->group_get_degree(group); in EC_GROUP_get_degree()
464 if (group->meth->group_check_discriminant == 0) in EC_GROUP_check_discriminant()
469 return group->meth->group_check_discriminant(group, ctx); in EC_GROUP_check_discriminant()
511 if (!a->meth->group_get_curve(a, a1, a2, a3, ctx) || in EC_GROUP_cmp()
512 !b->meth->group_get_curve(b, b1, b2, b3, ctx)) in EC_GROUP_cmp()
702 if (group->meth->point_init == 0) in EC_POINT_new()
715 ret->meth = group->meth; in EC_POINT_new()
717 if (!ret->meth->point_init(ret)) in EC_POINT_new()
731 if (point->meth->point_finish != 0) in EC_POINT_free()
732 point->meth->point_finish(point); in EC_POINT_free()
741 if (point->meth->point_clear_finish != 0) in EC_POINT_clear_free()
742 point->meth->point_clear_finish(point); in EC_POINT_clear_free()
743 else if (point->meth->point_finish != 0) in EC_POINT_clear_free()
744 point->meth->point_finish(point); in EC_POINT_clear_free()
752 if (dest->meth->point_copy == 0) in EC_POINT_copy()
757 if (dest->meth != src->meth) in EC_POINT_copy()
764 return dest->meth->point_copy(dest, src); in EC_POINT_copy()
789 return point->meth; in EC_POINT_method_of()
795 if (group->meth->point_set_to_infinity == 0) in EC_POINT_set_to_infinity()
800 if (group->meth != point->meth) in EC_POINT_set_to_infinity()
805 return group->meth->point_set_to_infinity(group, point); in EC_POINT_set_to_infinity()
812 if (group->meth->point_set_Jprojective_coordinates_GFp == 0) in EC_POINT_set_Jprojective_coordinates_GFp()
817 if (group->meth != point->meth) in EC_POINT_set_Jprojective_coordinates_GFp()
822 return group->meth->point_set_Jprojective_coordinates_GFp(group, point, x, y, z, ctx); in EC_POINT_set_Jprojective_coordinates_GFp()
829 if (group->meth->point_get_Jprojective_coordinates_GFp == 0) in EC_POINT_get_Jprojective_coordinates_GFp()
834 if (group->meth != point->meth) in EC_POINT_get_Jprojective_coordinates_GFp()
839 return group->meth->point_get_Jprojective_coordinates_GFp(group, point, x, y, z, ctx); in EC_POINT_get_Jprojective_coordinates_GFp()
846 if (group->meth->point_set_affine_coordinates == 0) in EC_POINT_set_affine_coordinates_GFp()
851 if (group->meth != point->meth) in EC_POINT_set_affine_coordinates_GFp()
856 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx); in EC_POINT_set_affine_coordinates_GFp()
863 if (group->meth->point_set_affine_coordinates == 0) in EC_POINT_set_affine_coordinates_GF2m()
868 if (group->meth != point->meth) in EC_POINT_set_affine_coordinates_GF2m()
873 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx); in EC_POINT_set_affine_coordinates_GF2m()
880 if (group->meth->point_get_affine_coordinates == 0) in EC_POINT_get_affine_coordinates_GFp()
885 if (group->meth != point->meth) in EC_POINT_get_affine_coordinates_GFp()
890 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates_GFp()
897 if (group->meth->point_get_affine_coordinates == 0) in EC_POINT_get_affine_coordinates_GF2m()
902 if (group->meth != point->meth) in EC_POINT_get_affine_coordinates_GF2m()
907 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates_GF2m()
913 if (group->meth->add == 0) in EC_POINT_add()
918 if ((group->meth != r->meth) || (r->meth != a->meth) || (a->meth != b->meth)) in EC_POINT_add()
923 return group->meth->add(group, r, a, b, ctx); in EC_POINT_add()
929 if (group->meth->dbl == 0) in EC_POINT_dbl()
934 if ((group->meth != r->meth) || (r->meth != a->meth)) in EC_POINT_dbl()
939 return group->meth->dbl(group, r, a, ctx); in EC_POINT_dbl()
945 if (group->meth->dbl == 0) in EC_POINT_invert()
950 if (group->meth != a->meth) in EC_POINT_invert()
955 return group->meth->invert(group, a, ctx); in EC_POINT_invert()
961 if (group->meth->is_at_infinity == 0) in EC_POINT_is_at_infinity()
966 if (group->meth != point->meth) in EC_POINT_is_at_infinity()
971 return group->meth->is_at_infinity(group, point); in EC_POINT_is_at_infinity()
977 if (group->meth->is_on_curve == 0) in EC_POINT_is_on_curve()
982 if (group->meth != point->meth) in EC_POINT_is_on_curve()
987 return group->meth->is_on_curve(group, point, ctx); in EC_POINT_is_on_curve()
993 if (group->meth->point_cmp == 0) in EC_POINT_cmp()
998 if ((group->meth != a->meth) || (a->meth != b->meth)) in EC_POINT_cmp()
1003 return group->meth->point_cmp(group, a, b, ctx); in EC_POINT_cmp()
1009 if (group->meth->make_affine == 0) in EC_POINT_make_affine()
1014 if (group->meth != point->meth) in EC_POINT_make_affine()
1019 return group->meth->make_affine(group, point, ctx); in EC_POINT_make_affine()
1027 if (group->meth->points_make_affine == 0) in EC_POINTs_make_affine()
1034 if (group->meth != points[i]->meth) in EC_POINTs_make_affine()
1040 return group->meth->points_make_affine(group, num, points, ctx); in EC_POINTs_make_affine()
1053 if (group->meth->mul == 0) in EC_POINTs_mul()
1057 return group->meth->mul(group, r, scalar, num, points, scalars, ctx); in EC_POINTs_mul()
1076 if (group->meth->mul == 0) in EC_GROUP_precompute_mult()
1080 if (group->meth->precompute_mult != 0) in EC_GROUP_precompute_mult()
1081 return group->meth->precompute_mult(group, ctx); in EC_GROUP_precompute_mult()
1088 if (group->meth->mul == 0) in EC_GROUP_have_precompute_mult()
1092 if (group->meth->have_precompute_mult != 0) in EC_GROUP_have_precompute_mult()
1093 return group->meth->have_precompute_mult(group); in EC_GROUP_have_precompute_mult()