Lines Matching refs:meth

30                                const EC_METHOD *meth)  in ossl_ec_group_new_ex()  argument
34 if (meth == NULL) { in ossl_ec_group_new_ex()
38 if (meth->group_init == 0) { in ossl_ec_group_new_ex()
53 ret->meth = meth; in ossl_ec_group_new_ex()
54 if ((ret->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) { in ossl_ec_group_new_ex()
64 if (!meth->group_init(ret)) in ossl_ec_group_new_ex()
78 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new() argument
80 return ossl_ec_group_new_ex(NULL, NULL, meth); 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()
146 if (group->meth->group_clear_finish != 0) in EC_GROUP_clear_free()
147 group->meth->group_clear_finish(group); in EC_GROUP_clear_free()
148 else if (group->meth->group_finish != 0) in EC_GROUP_clear_free()
149 group->meth->group_finish(group); in EC_GROUP_clear_free()
163 if (dest->meth->group_copy == 0) { in EC_GROUP_copy()
167 if (dest->meth != src->meth) { in EC_GROUP_copy()
241 if ((src->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) { in EC_GROUP_copy()
265 return dest->meth->group_copy(dest, src); in EC_GROUP_copy()
276 if ((t = ossl_ec_group_new_ex(a->libctx, a->propq, a->meth)) == NULL) in EC_GROUP_dup()
294 return group->meth; in EC_GROUP_method_of()
297 int EC_METHOD_get_field_type(const EC_METHOD *meth) in EC_METHOD_get_field_type() argument
299 return meth->field_type; in EC_METHOD_get_field_type()
342 if (group->meth->field_type == NID_X9_62_characteristic_two_field) { in ec_guess_cofactor()
463 return group->meth->group_order_bits(group); in EC_GROUP_order_bits()
504 return group->meth->field_type; in EC_GROUP_get_field_type()
559 if (group->meth->group_set_curve == 0) { in EC_GROUP_set_curve()
563 return group->meth->group_set_curve(group, p, a, b, ctx); in EC_GROUP_set_curve()
569 if (group->meth->group_get_curve == NULL) { in EC_GROUP_get_curve()
573 return group->meth->group_get_curve(group, p, a, b, ctx); in EC_GROUP_get_curve()
606 if (group->meth->group_get_degree == 0) { in EC_GROUP_get_degree()
610 return group->meth->group_get_degree(group); in EC_GROUP_get_degree()
615 if (group->meth->group_check_discriminant == 0) { in EC_GROUP_check_discriminant()
619 return group->meth->group_check_discriminant(group, ctx); in EC_GROUP_check_discriminant()
637 if (a->meth->flags & EC_FLAGS_CUSTOM_CURVE) in EC_GROUP_cmp()
666 if (!a->meth->group_get_curve(a, a1, a2, a3, ctx) || in EC_GROUP_cmp()
667 !b->meth->group_get_curve(b, b1, b2, b3, ctx)) in EC_GROUP_cmp()
724 if (group->meth->point_init == NULL) { in EC_POINT_new()
733 ret->meth = group->meth; in EC_POINT_new()
736 if (!ret->meth->point_init(ret)) { in EC_POINT_new()
752 if (point->meth->point_finish != 0) in EC_POINT_free()
753 point->meth->point_finish(point); in EC_POINT_free()
763 if (point->meth->point_clear_finish != 0) in EC_POINT_clear_free()
764 point->meth->point_clear_finish(point); in EC_POINT_clear_free()
765 else if (point->meth->point_finish != 0) in EC_POINT_clear_free()
766 point->meth->point_finish(point); in EC_POINT_clear_free()
772 if (dest->meth->point_copy == 0) { in EC_POINT_copy()
776 if (dest->meth != src->meth in EC_POINT_copy()
785 return dest->meth->point_copy(dest, src); in EC_POINT_copy()
810 return point->meth; in EC_POINT_method_of()
816 if (group->meth->point_set_to_infinity == 0) { in EC_POINT_set_to_infinity()
820 if (group->meth != point->meth) { in EC_POINT_set_to_infinity()
824 return group->meth->point_set_to_infinity(group, point); in EC_POINT_set_to_infinity()
833 if (group->meth->field_type != NID_X9_62_prime_field) { in EC_POINT_set_Jprojective_coordinates_GFp()
850 if (group->meth->field_type != NID_X9_62_prime_field) { in EC_POINT_get_Jprojective_coordinates_GFp()
867 if (group->meth->point_set_affine_coordinates == NULL) { in EC_POINT_set_affine_coordinates()
875 if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx)) in EC_POINT_set_affine_coordinates()
907 if (group->meth->point_get_affine_coordinates == NULL) { in EC_POINT_get_affine_coordinates()
919 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates()
943 if (group->meth->add == 0) { in EC_POINT_add()
952 return group->meth->add(group, r, a, b, ctx); in EC_POINT_add()
958 if (group->meth->dbl == 0) { in EC_POINT_dbl()
966 return group->meth->dbl(group, r, a, ctx); in EC_POINT_dbl()
971 if (group->meth->invert == 0) { in EC_POINT_invert()
979 return group->meth->invert(group, a, ctx); in EC_POINT_invert()
984 if (group->meth->is_at_infinity == 0) { in EC_POINT_is_at_infinity()
992 return group->meth->is_at_infinity(group, point); in EC_POINT_is_at_infinity()
1005 if (group->meth->is_on_curve == 0) { in EC_POINT_is_on_curve()
1013 return group->meth->is_on_curve(group, point, ctx); in EC_POINT_is_on_curve()
1019 if (group->meth->point_cmp == 0) { in EC_POINT_cmp()
1027 return group->meth->point_cmp(group, a, b, ctx); in EC_POINT_cmp()
1033 if (group->meth->make_affine == 0) { in EC_POINT_make_affine()
1041 return group->meth->make_affine(group, point, ctx); in EC_POINT_make_affine()
1049 if (group->meth->points_make_affine == 0) { in EC_POINTs_make_affine()
1059 return group->meth->points_make_affine(group, num, points, ctx); in EC_POINTs_make_affine()
1104 if (group->meth->mul != NULL) in EC_POINTs_mul()
1105 ret = group->meth->mul(group, r, scalar, num, points, scalars, ctx); in EC_POINTs_mul()
1145 if (group->meth->mul != NULL) in EC_POINT_mul()
1146 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()
1160 if (group->meth->mul == 0) in EC_GROUP_precompute_mult()
1164 if (group->meth->precompute_mult != 0) in EC_GROUP_precompute_mult()
1165 return group->meth->precompute_mult(group, ctx); in EC_GROUP_precompute_mult()
1172 if (group->meth->mul == 0) in EC_GROUP_have_precompute_mult()
1176 if (group->meth->have_precompute_mult != 0) in EC_GROUP_have_precompute_mult()
1177 return group->meth->have_precompute_mult(group); in EC_GROUP_have_precompute_mult()
1300 if (group->meth->field_inverse_mod_ord != NULL) in ossl_ec_group_do_inverse_ord()
1301 return group->meth->field_inverse_mod_ord(group, res, x, ctx); in ossl_ec_group_do_inverse_ord()
1319 if (group->meth->blind_coordinates == NULL) in ossl_ec_point_blind_coordinates()
1322 return group->meth->blind_coordinates(group, p, ctx); in ossl_ec_point_blind_coordinates()