Home | History | Annotate | Download | only in ec

Lines Matching refs:meth

227 EC_GROUP *ec_group_new(const EC_METHOD *meth) {
230 if (meth == NULL) {
235 if (meth->group_init == 0) {
247 ret->meth = meth;
252 if (!meth->group_init(ret)) {
262 const EC_METHOD *meth = EC_GFp_mont_method();
265 ret = ec_group_new(meth);
270 if (ret->meth->group_set_curve == 0) {
275 if (!ret->meth->group_set_curve(ret, p, a, b, ctx)) {
289 const EC_METHOD *meth;
310 meth = curve->method();
311 if (((group = ec_group_new(meth)) == NULL) ||
312 (!(group->meth->group_set_curve(group, p, a, b, ctx)))) {
405 if (group->meth->group_finish != 0) {
406 group->meth->group_finish(group);
421 if (dest->meth->group_copy == 0) {
425 if (dest->meth != src->meth) {
462 return dest->meth->group_copy(dest, src);
473 t = ec_group_new(a->meth);
524 if (group->meth->group_get_curve == 0) {
529 return group->meth->group_get_curve(group, out_p, out_a, out_b, ctx);
535 if (group->meth->group_get_degree == 0) {
540 return group->meth->group_get_degree(group);
549 if (group->meth->mul == 0) {
554 if (group->meth->precompute_mult != 0) {
555 return group->meth->precompute_mult(group, ctx);
562 if (group->meth->mul == 0) {
567 if (group->meth->have_precompute_mult != 0) {
568 return group->meth->have_precompute_mult(group);
581 if (group->meth->point_init == 0) {
592 ret->meth = group->meth;
594 if (!ret->meth->point_init(ret)) {
607 if (point->meth->point_finish != 0) {
608 point->meth->point_finish(point);
618 if (point->meth->point_clear_finish != 0) {
619 point->meth->point_clear_finish(point);
620 } else if (point->meth->point_finish != 0) {
621 point->meth->point_finish(point);
628 if (dest->meth->point_copy == 0) {
632 if (dest->meth != src->meth) {
639 return dest->meth->point_copy(dest, src);
665 if (group->meth->point_set_to_infinity == 0) {
670 if (group->meth != point->meth) {
674 return group->meth->point_set_to_infinity(group, point);
678 if (group->meth->is_at_infinity == 0) {
683 if (group->meth != point->meth) {
687 return group->meth->is_at_infinity(group, point);
692 if (group->meth->is_on_curve == 0) {
697 if (group->meth != point->meth) {
701 return group->meth->is_on_curve(group, point, ctx);
706 if (group->meth->point_cmp == 0) {
710 if ((group->meth != a->meth) || (a->meth != b->meth)) {
714 return group->meth->point_cmp(group, a, b, ctx);
718 if (group->meth->make_affine == 0) {
723 if (group->meth != point->meth) {
727 return group->meth->make_affine(group, point, ctx);
734 if (group->meth->points_make_affine == 0) {
740 if (group->meth != points[i]->meth) {
745 return group->meth->points_make_affine(group, num, points, ctx);
751 if (group->meth->point_get_affine_coordinates == 0) {
756 if (group->meth != point->meth) {
761 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
767 if (group->meth->point_set_affine_coordinates == 0) {
772 if (group->meth != point->meth) {
777 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx);
782 if (group->meth->add == 0) {
786 if ((group->meth != r->meth) || (r->meth != a->meth) ||
787 (a->meth != b->meth)) {
791 return group->meth->add(group, r, a, b, ctx);
797 if (group->meth->dbl == 0) {
801 if ((group->meth != r->meth) || (r->meth != a->meth)) {
805 return group->meth->dbl(group, r, a, ctx);
810 if (group->meth->invert == 0) {
814 if (group->meth != a->meth) {
818 return group->meth->invert(group, a, ctx);
838 if (group->meth->mul == 0) {
843 return group->meth->mul(group, r, scalar, num, points, scalars, ctx);
849 if (group->meth->point_set_Jprojective_coordinates_GFp == 0) {
854 if (group->meth != point->meth) {
859 return group->meth->point_set_Jprojective_coordinates_GFp(group, point, x, y,