Lines Matching defs:group

83 	const EC_GROUP *group; /* parent EC_GROUP object */
98 static EC_PRE_COMP *ec_pre_comp_new(const EC_GROUP *group)
102 if (!group)
111 ret->group = group;
346 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
372 if (group->meth != r->meth)
380 return EC_POINT_set_to_infinity(group, r);
385 if (group->meth != points[i]->meth)
401 generator = EC_GROUP_get0_generator(group);
410 pre_comp = EC_EX_DATA_get_data(group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free);
412 if (pre_comp && pre_comp->numblocks && (EC_POINT_cmp(group, generator, pre_comp->points[0], ctx) == 0))
607 *v = EC_POINT_new(group);
618 if (!(tmp = EC_POINT_new(group)))
640 if (!EC_POINT_dbl(group, tmp, val_sub[i][0], ctx)) goto err;
643 if (!EC_POINT_add(group, val_sub[i][j], val_sub[i][j - 1], tmp, ctx)) goto err;
649 if (!EC_POINTs_make_affine(group, num_val, val, ctx))
659 if (!EC_POINT_dbl(group, r, r, ctx)) goto err;
680 if (!EC_POINT_invert(group, r, ctx)) goto err;
694 if (!EC_POINT_add(group, r, r, val_sub[i][digit >> 1], ctx)) goto err;
703 if (!EC_POINT_set_to_infinity(group, r)) goto err;
708 if (!EC_POINT_invert(group, r, ctx)) goto err;
765 int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
777 EC_EX_DATA_free_data(&group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free);
779 if ((pre_comp = ec_pre_comp_new(group)) == NULL)
782 generator = EC_GROUP_get0_generator(group);
800 if (!EC_GROUP_get_order(group, order, ctx)) goto err;
839 if ((var[i] = EC_POINT_new(group)) == NULL)
846 if (!(tmp_point = EC_POINT_new(group)) || !(base = EC_POINT_new(group)))
860 if (!EC_POINT_dbl(group, tmp_point, base, ctx))
869 if (!EC_POINT_add(group, *var, tmp_point, *(var - 1), ctx))
884 if (!EC_POINT_dbl(group, base, tmp_point, ctx))
888 if (!EC_POINT_dbl(group,base,base,ctx))
894 if (!EC_POINTs_make_affine(group, num, points, ctx))
897 pre_comp->group = group;
905 if (!EC_EX_DATA_set_data(&group->extra_data, pre_comp,
934 int ec_wNAF_have_precompute_mult(const EC_GROUP *group)
936 if (EC_EX_DATA_get_data(group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free) != NULL)