Lines Matching defs:meth
29 const EC_METHOD *meth)
33 if (meth == NULL) {
37 if (meth->group_init == 0) {
56 ret->meth = meth;
57 if ((ret->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) {
67 if (!meth->group_init(ret))
81 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth)
83 return ossl_ec_group_new_ex(NULL, NULL, meth);
126 if (group->meth->group_finish != 0)
127 group->meth->group_finish(group);
145 if (group->meth->group_clear_finish != 0)
146 group->meth->group_clear_finish(group);
147 else if (group->meth->group_finish != 0)
148 group->meth->group_finish(group);
162 if (dest->meth->group_copy == 0) {
166 if (dest->meth != src->meth) {
236 if ((src->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) {
262 return dest->meth->group_copy(dest, src);
273 if ((t = ossl_ec_group_new_ex(a->libctx, a->propq, a->meth)) == NULL)
291 return group->meth;
294 int EC_METHOD_get_field_type(const EC_METHOD *meth)
296 return meth->field_type;
339 if (group->meth->field_type == NID_X9_62_characteristic_two_field) {
460 return group->meth->group_order_bits(group);
501 return group->meth->field_type;
558 if (group->meth->group_set_curve == 0) {
562 return group->meth->group_set_curve(group, p, a, b, ctx);
568 if (group->meth->group_get_curve == NULL) {
572 return group->meth->group_get_curve(group, p, a, b, ctx);
605 if (group->meth->group_get_degree == 0) {
609 return group->meth->group_get_degree(group);
614 if (group->meth->group_check_discriminant == 0) {
618 return group->meth->group_check_discriminant(group, ctx);
636 if (a->meth->flags & EC_FLAGS_CUSTOM_CURVE)
665 if (!a->meth->group_get_curve(a, a1, a2, a3, ctx) ||
666 !b->meth->group_get_curve(b, b1, b2, b3, ctx))
723 if (group->meth->point_init == NULL) {
734 ret->meth = group->meth;
737 if (!ret->meth->point_init(ret)) {
750 if (point->meth->point_finish != 0)
751 point->meth->point_finish(point);
760 if (point->meth->point_clear_finish != 0)
761 point->meth->point_clear_finish(point);
762 else if (point->meth->point_finish != 0)
763 point->meth->point_finish(point);
769 if (dest->meth->point_copy == 0) {
773 if (dest->meth != src->meth
782 return dest->meth->point_copy(dest, src);
807 return point->meth;
813 if (group->meth->point_set_to_infinity == 0) {
817 if (group->meth != point->meth) {
821 return group->meth->point_set_to_infinity(group, point);
830 if (group->meth->field_type != NID_X9_62_prime_field) {
847 if (group->meth->field_type != NID_X9_62_prime_field) {
864 if (group->meth->point_set_affine_coordinates == NULL) {
872 if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx))
904 if (group->meth->point_get_affine_coordinates == NULL) {
916 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
940 if (group->meth->add == 0) {
949 return group->meth->add(group, r, a, b, ctx);
955 if (group->meth->dbl == 0) {
963 return group->meth->dbl(group, r, a, ctx);
968 if (group->meth->invert == 0) {
976 return group->meth->invert(group, a, ctx);
981 if (group->meth->is_at_infinity == 0) {
989 return group->meth->is_at_infinity(group, point);
1002 if (group->meth->is_on_curve == 0) {
1010 return group->meth->is_on_curve(group, point, ctx);
1016 if (group->meth->point_cmp == 0) {
1024 return group->meth->point_cmp(group, a, b, ctx);
1030 if (group->meth->make_affine == 0) {
1038 return group->meth->make_affine(group, point, ctx);
1046 if (group->meth->points_make_affine == 0) {
1056 return group->meth->points_make_affine(group, num, points, ctx);
1061 * Functions for point multiplication. If group->meth->mul is 0, we use the
1101 if (group->meth->mul != NULL)
1102 ret = group->meth->mul(group, r, scalar, num, points, scalars, ctx);
1142 if (group->meth->mul != NULL)
1143 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx);
1157 if (group->meth->mul == 0)
1161 if (group->meth->precompute_mult != 0)
1162 return group->meth->precompute_mult(group, ctx);
1169 if (group->meth->mul == 0)
1173 if (group->meth->have_precompute_mult != 0)
1174 return group->meth->have_precompute_mult(group);
1282 * Default behavior, if group->meth->field_inverse_mod_ord is NULL:
1297 if (group->meth->field_inverse_mod_ord != NULL)
1298 return group->meth->field_inverse_mod_ord(group, res, x, ctx);
1316 if (group->meth->blind_coordinates == NULL)
1319 return group->meth->blind_coordinates(group, p, ctx);