• Home
  • Raw
  • Download

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()
914 if (group->meth->point_set_compressed_coordinates == 0) in EC_POINT_set_compressed_coordinates_GFp()
919 if (group->meth != point->meth) in EC_POINT_set_compressed_coordinates_GFp()
924 return group->meth->point_set_compressed_coordinates(group, point, x, y_bit, ctx); in EC_POINT_set_compressed_coordinates_GFp()
931 if (group->meth->point_set_compressed_coordinates == 0) in EC_POINT_set_compressed_coordinates_GF2m()
936 if (group->meth != point->meth) in EC_POINT_set_compressed_coordinates_GF2m()
941 return group->meth->point_set_compressed_coordinates(group, point, x, y_bit, ctx); in EC_POINT_set_compressed_coordinates_GF2m()
948 if (group->meth->point2oct == 0) in EC_POINT_point2oct()
953 if (group->meth != point->meth) in EC_POINT_point2oct()
958 return group->meth->point2oct(group, point, form, buf, len, ctx); in EC_POINT_point2oct()
965 if (group->meth->oct2point == 0) in EC_POINT_oct2point()
970 if (group->meth != point->meth) in EC_POINT_oct2point()
975 return group->meth->oct2point(group, point, buf, len, ctx); in EC_POINT_oct2point()
981 if (group->meth->add == 0) in EC_POINT_add()
986 if ((group->meth != r->meth) || (r->meth != a->meth) || (a->meth != b->meth)) in EC_POINT_add()
991 return group->meth->add(group, r, a, b, ctx); in EC_POINT_add()
997 if (group->meth->dbl == 0) in EC_POINT_dbl()
1002 if ((group->meth != r->meth) || (r->meth != a->meth)) in EC_POINT_dbl()
1007 return group->meth->dbl(group, r, a, ctx); in EC_POINT_dbl()
1013 if (group->meth->dbl == 0) in EC_POINT_invert()
1018 if (group->meth != a->meth) in EC_POINT_invert()
1023 return group->meth->invert(group, a, ctx); in EC_POINT_invert()
1029 if (group->meth->is_at_infinity == 0) in EC_POINT_is_at_infinity()
1034 if (group->meth != point->meth) in EC_POINT_is_at_infinity()
1039 return group->meth->is_at_infinity(group, point); in EC_POINT_is_at_infinity()
1045 if (group->meth->is_on_curve == 0) in EC_POINT_is_on_curve()
1050 if (group->meth != point->meth) in EC_POINT_is_on_curve()
1055 return group->meth->is_on_curve(group, point, ctx); in EC_POINT_is_on_curve()
1061 if (group->meth->point_cmp == 0) in EC_POINT_cmp()
1066 if ((group->meth != a->meth) || (a->meth != b->meth)) in EC_POINT_cmp()
1071 return group->meth->point_cmp(group, a, b, ctx); in EC_POINT_cmp()
1077 if (group->meth->make_affine == 0) in EC_POINT_make_affine()
1082 if (group->meth != point->meth) in EC_POINT_make_affine()
1087 return group->meth->make_affine(group, point, ctx); in EC_POINT_make_affine()
1095 if (group->meth->points_make_affine == 0) in EC_POINTs_make_affine()
1102 if (group->meth != points[i]->meth) in EC_POINTs_make_affine()
1108 return group->meth->points_make_affine(group, num, points, ctx); in EC_POINTs_make_affine()
1121 if (group->meth->mul == 0) in EC_POINTs_mul()
1125 return group->meth->mul(group, r, scalar, num, points, scalars, ctx); in EC_POINTs_mul()
1144 if (group->meth->mul == 0) in EC_GROUP_precompute_mult()
1148 if (group->meth->precompute_mult != 0) in EC_GROUP_precompute_mult()
1149 return group->meth->precompute_mult(group, ctx); in EC_GROUP_precompute_mult()
1156 if (group->meth->mul == 0) in EC_GROUP_have_precompute_mult()
1160 if (group->meth->have_precompute_mult != 0) in EC_GROUP_have_precompute_mult()
1161 return group->meth->have_precompute_mult(group); in EC_GROUP_have_precompute_mult()