Lines Matching refs:group

68     const EC_GROUP *group;      /* Parent EC_GROUP object */
147 static NISTZ256_PRE_COMP *ecp_nistz256_pre_comp_new(const EC_GROUP *group);
616 __owur static int ecp_nistz256_windowed_mul(const EC_GROUP *group,
656 if (!BN_nnmod(mod, scalar[i], group->order, ctx)) {
813 __owur static int ecp_nistz256_mult_precompute(EC_GROUP *group, BN_CTX *ctx)
833 EC_pre_comp_free(group);
834 generator = EC_GROUP_get0_generator(group);
848 if ((pre_comp = ecp_nistz256_pre_comp_new(group)) == NULL)
852 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
859 order = EC_GROUP_get0_order(group);
878 P = EC_POINT_new(group);
879 T = EC_POINT_new(group);
899 if (group->meth->make_affine == NULL
900 || !group->meth->make_affine(group, P, ctx))
909 if (!EC_POINT_dbl(group, P, P, ctx))
913 if (!EC_POINT_add(group, T, T, generator, ctx))
917 pre_comp->group = group;
922 SETPRECOMP(group, nistz256, pre_comp);
937 __owur static int ecp_nistz256_set_from_affine(EC_POINT *out, const EC_GROUP *group,
952 __owur static int ecp_nistz256_points_mul(const EC_GROUP *group,
985 generator = EC_GROUP_get0_generator(group);
992 pre_comp = group->pre_comp.nistz256;
999 EC_POINT *pre_comp_generator = EC_POINT_new(group);
1005 group, &p.a, ctx)) {
1010 if (0 == EC_POINT_cmp(group, generator, pre_comp_generator, ctx))
1034 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) {
1152 if (!ecp_nistz256_windowed_mul(group, out, scalars, points, num, ctx))
1176 __owur static int ecp_nistz256_get_affine(const EC_GROUP *group,
1187 if (EC_POINT_is_at_infinity(group, point)) {
1220 static NISTZ256_PRE_COMP *ecp_nistz256_pre_comp_new(const EC_GROUP *group)
1224 if (!group)
1234 ret->group = group;
1274 static int ecp_nistz256_window_have_precompute_mult(const EC_GROUP *group)
1277 const EC_POINT *generator = EC_GROUP_get0_generator(group);
1284 return HAVEPRECOMP(group, nistz256);
1301 static int ecp_nistz256_inv_mod_ord(const EC_GROUP *group, BIGNUM *r,
1337 || !BN_nnmod(tmp, x, group->order, ctx)) {