bin/cpdup/hcproto.c
1229
hc_chown(struct HostConf *hc, const char *path, uid_t owner, gid_t group)
bin/cpdup/hcproto.c
1241
rc = chown(path, owner, group);
bin/cpdup/hcproto.c
1250
hcc_leaf_int32(trans, LC_GID, group);
bin/cpdup/hcproto.c
1296
hc_lchown(struct HostConf *hc, const char *path, uid_t owner, gid_t group)
bin/cpdup/hcproto.c
1308
rc = lchown(path, owner, group);
bin/cpdup/hcproto.c
1317
hcc_leaf_int32(trans, LC_GID, group);
bin/cpdup/hcproto.h
108
int hc_chown(struct HostConf *hc, const char *path, uid_t owner, gid_t group);
bin/cpdup/hcproto.h
109
int hc_lchown(struct HostConf *hc, const char *path, uid_t owner, gid_t group);
bin/ls/ls.c
554
const char *user, *group;
bin/ls/ls.c
690
group = ngroup;
bin/ls/ls.c
693
group = group_from_gid(sp->st_gid, 0);
bin/ls/ls.c
697
if ((glen = strlen(group)) > maxgroup)
bin/ls/ls.c
720
np->group = &np->data[ulen + 1];
bin/ls/ls.c
721
strcpy(np->group, group);
bin/ls/ls.h
78
char *group;
bin/ls/print.c
155
np->group);
bin/pax/gen_subs.c
112
group = group_from_gid(sbp->st_gid, 0);
bin/pax/gen_subs.c
114
user ? user : "", group ? group : "");
bin/pax/gen_subs.c
79
const char *user, *group;
bin/pax/sel_subs.c
200
struct group *gr;
bin/pax/tar.c
863
const char *user, *group;
bin/pax/tar.c
997
group = group_from_gid(arcn->sb.st_gid, 1);
bin/pax/tar.c
999
l_strncpy(hd->gname, group ? group : "", sizeof(hd->gname));
crypto/libressl/apps/openssl/ec.c
265
const EC_GROUP *group;
crypto/libressl/apps/openssl/ec.c
340
group = EC_KEY_get0_group(eckey);
crypto/libressl/apps/openssl/ec.c
361
i = i2d_ECPKParameters_bio(out, group);
crypto/libressl/apps/openssl/ec.c
368
i = PEM_write_bio_ECPKParameters(out, group);
crypto/libressl/apps/openssl/ecparam.c
257
EC_GROUP *group = NULL;
crypto/libressl/apps/openssl/ecparam.c
363
group = EC_GROUP_new_by_curve_name(nid);
crypto/libressl/apps/openssl/ecparam.c
364
if (group == NULL) {
crypto/libressl/apps/openssl/ecparam.c
369
EC_GROUP_set_asn1_flag(group, ecparam_config.asn1_flag);
crypto/libressl/apps/openssl/ecparam.c
370
EC_GROUP_set_point_conversion_form(group, ecparam_config.form);
crypto/libressl/apps/openssl/ecparam.c
372
group = d2i_ECPKParameters_bio(in, NULL);
crypto/libressl/apps/openssl/ecparam.c
374
group = PEM_read_bio_ECPKParameters(in, NULL, NULL, NULL);
crypto/libressl/apps/openssl/ecparam.c
380
if (group == NULL) {
crypto/libressl/apps/openssl/ecparam.c
387
EC_GROUP_set_point_conversion_form(group, ecparam_config.form);
crypto/libressl/apps/openssl/ecparam.c
390
EC_GROUP_set_asn1_flag(group, ecparam_config.asn1_flag);
crypto/libressl/apps/openssl/ecparam.c
393
EC_GROUP_set_seed(group, NULL, 0);
crypto/libressl/apps/openssl/ecparam.c
396
if (!ECPKParameters_print(out, group, 0))
crypto/libressl/apps/openssl/ecparam.c
401
if (!EC_GROUP_check(group, NULL)) {
crypto/libressl/apps/openssl/ecparam.c
412
const EC_METHOD *meth = EC_GROUP_method_of(group);
crypto/libressl/apps/openssl/ecparam.c
424
if (!EC_GROUP_get_curve(group, ec_p, ec_a, ec_b, NULL))
crypto/libressl/apps/openssl/ecparam.c
427
if ((point = EC_GROUP_get0_generator(group)) == NULL)
crypto/libressl/apps/openssl/ecparam.c
429
if (!EC_POINT_point2bn(group, point,
crypto/libressl/apps/openssl/ecparam.c
430
EC_GROUP_get_point_conversion_form(group), ec_gen,
crypto/libressl/apps/openssl/ecparam.c
433
if (!EC_GROUP_get_order(group, ec_order, NULL))
crypto/libressl/apps/openssl/ecparam.c
435
if (!EC_GROUP_get_cofactor(group, ec_cofactor, NULL))
crypto/libressl/apps/openssl/ecparam.c
523
i = i2d_ECPKParameters_bio(out, group);
crypto/libressl/apps/openssl/ecparam.c
525
i = PEM_write_bio_ECPKParameters(out, group);
crypto/libressl/apps/openssl/ecparam.c
544
if (EC_KEY_set_group(eckey, group) == 0) {
crypto/libressl/apps/openssl/ecparam.c
580
EC_GROUP_free(group);
crypto/libressl/apps/openssl/s_cb.c
267
const EC_GROUP *group;
crypto/libressl/apps/openssl/s_cb.c
282
if ((group = EC_KEY_get0_group(ec)) == NULL)
crypto/libressl/apps/openssl/s_cb.c
285
nid = EC_GROUP_get_curve_name(group);
crypto/libressl/crypto/conf/conf_lib.c
149
CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group,
crypto/libressl/crypto/conf/conf_lib.c
153
return NCONF_get_string(NULL, group, name);
crypto/libressl/crypto/conf/conf_lib.c
157
return NCONF_get_string(&ctmp, group, name);
crypto/libressl/crypto/conf/conf_lib.c
162
CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group,
crypto/libressl/crypto/conf/conf_lib.c
169
status = NCONF_get_number_e(NULL, group, name, &result);
crypto/libressl/crypto/conf/conf_lib.c
173
status = NCONF_get_number_e(&ctmp, group, name, &result);
crypto/libressl/crypto/conf/conf_lib.c
309
NCONF_get_string(const CONF *conf, const char *group, const char *name)
crypto/libressl/crypto/conf/conf_lib.c
311
char *s = _CONF_get_string(conf, group, name);
crypto/libressl/crypto/conf/conf_lib.c
324
group ? group : "", name);
crypto/libressl/crypto/conf/conf_lib.c
329
NCONF_get_number_e(const CONF *conf, const char *group, const char *name,
crypto/libressl/crypto/conf/conf_lib.c
339
str = NCONF_get_string(conf, group, name);
crypto/libressl/crypto/ec/ec2_mult.c
100
if (!group->meth->field_sqr(group, t1, z, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
102
if (!group->meth->field_mul(group, z, x, t1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
104
if (!group->meth->field_sqr(group, x, x, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
106
if (!group->meth->field_sqr(group, t1, t1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
108
if (!group->meth->field_mul(group, t1, &group->b, t1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
127
gf2m_Madd(const EC_GROUP *group, const BIGNUM *x, BIGNUM *x1, BIGNUM *z1,
crypto/libressl/crypto/ec/ec2_mult.c
142
if (!group->meth->field_mul(group, x1, x1, z2, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
144
if (!group->meth->field_mul(group, z1, z1, x2, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
146
if (!group->meth->field_mul(group, t2, x1, z1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
150
if (!group->meth->field_sqr(group, z1, z1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
152
if (!group->meth->field_mul(group, x1, z1, t1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
174
gf2m_Mxy(const EC_GROUP *group, const BIGNUM *x, const BIGNUM *y, BIGNUM *x1,
crypto/libressl/crypto/ec/ec2_mult.c
204
if (!group->meth->field_mul(group, t3, z1, z2, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
207
if (!group->meth->field_mul(group, z1, z1, x, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
211
if (!group->meth->field_mul(group, z2, z2, x, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
213
if (!group->meth->field_mul(group, x1, z2, x1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
218
if (!group->meth->field_mul(group, z2, z2, z1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
220
if (!group->meth->field_sqr(group, t4, x, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
224
if (!group->meth->field_mul(group, t4, t4, t3, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
229
if (!group->meth->field_mul(group, t3, t3, x, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
231
if (!group->meth->field_div(group, t3, t5, t3, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
233
if (!group->meth->field_mul(group, t4, t3, t4, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
235
if (!group->meth->field_mul(group, x2, x1, t3, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
240
if (!group->meth->field_mul(group, z2, z2, t4, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
263
ec_GF2m_montgomery_point_multiply(const EC_GROUP *group, EC_POINT *r,
crypto/libressl/crypto/ec/ec2_mult.c
276
EC_POINT_is_at_infinity(group, point) > 0) {
crypto/libressl/crypto/ec/ec2_mult.c
277
return EC_POINT_set_to_infinity(group, r);
crypto/libressl/crypto/ec/ec2_mult.c
293
if (!bn_wexpand(x1, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
295
if (!bn_wexpand(z1, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
297
if (!bn_wexpand(x2, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
299
if (!bn_wexpand(z2, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
302
if (!BN_GF2m_mod_arr(x1, &point->X, group->poly))
crypto/libressl/crypto/ec/ec2_mult.c
306
if (!group->meth->field_sqr(group, z2, x1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
308
if (!group->meth->field_sqr(group, x2, z2, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
310
if (!BN_GF2m_add(x2, x2, &group->b))
crypto/libressl/crypto/ec/ec2_mult.c
328
if (!BN_swap_ct(word & mask, x1, x2, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
330
if (!BN_swap_ct(word & mask, z1, z2, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
332
if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
334
if (!gf2m_Mdouble(group, x1, z1, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
336
if (!BN_swap_ct(word & mask, x1, x2, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
338
if (!BN_swap_ct(word & mask, z1, z2, group->field.top))
crypto/libressl/crypto/ec/ec2_mult.c
346
i = gf2m_Mxy(group, &point->X, &point->Y, x1, z1, x2, z2, ctx);
crypto/libressl/crypto/ec/ec2_mult.c
350
if (!EC_POINT_set_to_infinity(group, r))
crypto/libressl/crypto/ec/ec2_mult.c
375
ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
crypto/libressl/crypto/ec/ec2_mult.c
396
(num == 0 && EC_GROUP_have_precompute_mult(group))) {
crypto/libressl/crypto/ec/ec2_mult.c
397
ret = ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
crypto/libressl/crypto/ec/ec2_mult.c
400
if ((p = EC_POINT_new(group)) == NULL)
crypto/libressl/crypto/ec/ec2_mult.c
402
if ((acc = EC_POINT_new(group)) == NULL)
crypto/libressl/crypto/ec/ec2_mult.c
405
if (!EC_POINT_set_to_infinity(group, acc))
crypto/libressl/crypto/ec/ec2_mult.c
409
if (!ec_GF2m_montgomery_point_multiply(group, p, scalar, group->generator, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
412
if (!group->meth->invert(group, p, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
414
if (!group->meth->add(group, acc, acc, p, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
418
if (!ec_GF2m_montgomery_point_multiply(group, p, scalars[i], points[i], ctx))
crypto/libressl/crypto/ec/ec2_mult.c
421
if (!group->meth->invert(group, p, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
423
if (!group->meth->add(group, acc, acc, p, ctx))
crypto/libressl/crypto/ec/ec2_mult.c
444
ec_GF2m_precompute_mult(EC_GROUP * group, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec2_mult.c
446
return ec_wNAF_precompute_mult(group, ctx);
crypto/libressl/crypto/ec/ec2_mult.c
450
ec_GF2m_have_precompute_mult(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec2_mult.c
452
return ec_wNAF_have_precompute_mult(group);
crypto/libressl/crypto/ec/ec2_mult.c
88
gf2m_Mdouble(const EC_GROUP *group, BIGNUM *x, BIGNUM *z, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec2_mult.c
98
if (!group->meth->field_sqr(group, x, x, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
121
if (!BN_GF2m_mod_arr(x, x_, group->poly))
crypto/libressl/crypto/ec/ec2_oct.c
128
if (!BN_GF2m_mod_sqrt_arr(y, &group->b, group->poly, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
131
if (!group->meth->field_sqr(group, tmp, x, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
133
if (!group->meth->field_div(group, tmp, &group->b, tmp, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
135
if (!BN_GF2m_add(tmp, &group->a, tmp))
crypto/libressl/crypto/ec/ec2_oct.c
139
if (!BN_GF2m_mod_solve_quad_arr(z, tmp, group->poly, ctx)) {
crypto/libressl/crypto/ec/ec2_oct.c
151
if (!group->meth->field_mul(group, y, x, z, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
159
if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
176
ec_GF2m_simple_point2oct(const EC_GROUP *group, const EC_POINT *point,
crypto/libressl/crypto/ec/ec2_oct.c
192
if (EC_POINT_is_at_infinity(group, point) > 0) {
crypto/libressl/crypto/ec/ec2_oct.c
204
field_len = (EC_GROUP_get_degree(group) + 7) / 8;
crypto/libressl/crypto/ec/ec2_oct.c
228
if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
233
if (!group->meth->field_div(group, yxi, y, x, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
292
ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec2_oct.c
340
return EC_POINT_set_to_infinity(group, point);
crypto/libressl/crypto/ec/ec2_oct.c
343
field_len = (EC_GROUP_get_degree(group) + 7) / 8;
crypto/libressl/crypto/ec/ec2_oct.c
367
if (BN_ucmp(x, &group->field) >= 0) {
crypto/libressl/crypto/ec/ec2_oct.c
376
if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
381
if (BN_ucmp(y, &group->field) >= 0) {
crypto/libressl/crypto/ec/ec2_oct.c
397
if (!group->meth->field_div(group, yxi, y, x,
crypto/libressl/crypto/ec/ec2_oct.c
410
if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ec2_oct.c
94
ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec2_smpl.c
130
ec_GF2m_simple_group_init(EC_GROUP * group)
crypto/libressl/crypto/ec/ec2_smpl.c
132
BN_init(&group->field);
crypto/libressl/crypto/ec/ec2_smpl.c
133
BN_init(&group->a);
crypto/libressl/crypto/ec/ec2_smpl.c
134
BN_init(&group->b);
crypto/libressl/crypto/ec/ec2_smpl.c
143
ec_GF2m_simple_group_finish(EC_GROUP * group)
crypto/libressl/crypto/ec/ec2_smpl.c
145
BN_free(&group->field);
crypto/libressl/crypto/ec/ec2_smpl.c
146
BN_free(&group->a);
crypto/libressl/crypto/ec/ec2_smpl.c
147
BN_free(&group->b);
crypto/libressl/crypto/ec/ec2_smpl.c
155
ec_GF2m_simple_group_clear_finish(EC_GROUP * group)
crypto/libressl/crypto/ec/ec2_smpl.c
157
BN_clear_free(&group->field);
crypto/libressl/crypto/ec/ec2_smpl.c
158
BN_clear_free(&group->a);
crypto/libressl/crypto/ec/ec2_smpl.c
159
BN_clear_free(&group->b);
crypto/libressl/crypto/ec/ec2_smpl.c
160
group->poly[0] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
161
group->poly[1] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
162
group->poly[2] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
163
group->poly[3] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
164
group->poly[4] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
165
group->poly[5] = -1;
crypto/libressl/crypto/ec/ec2_smpl.c
203
ec_GF2m_simple_group_set_curve(EC_GROUP * group,
crypto/libressl/crypto/ec/ec2_smpl.c
209
if (!BN_copy(&group->field, p))
crypto/libressl/crypto/ec/ec2_smpl.c
211
i = BN_GF2m_poly2arr(&group->field, group->poly, 6) - 1;
crypto/libressl/crypto/ec/ec2_smpl.c
217
if (!BN_GF2m_mod_arr(&group->a, a, group->poly))
crypto/libressl/crypto/ec/ec2_smpl.c
219
if (bn_wexpand(&group->a, (int) (group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL)
crypto/libressl/crypto/ec/ec2_smpl.c
221
for (i = group->a.top; i < group->a.dmax; i++)
crypto/libressl/crypto/ec/ec2_smpl.c
222
group->a.d[i] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
225
if (!BN_GF2m_mod_arr(&group->b, b, group->poly))
crypto/libressl/crypto/ec/ec2_smpl.c
227
if (bn_wexpand(&group->b, (int) (group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL)
crypto/libressl/crypto/ec/ec2_smpl.c
229
for (i = group->b.top; i < group->b.dmax; i++)
crypto/libressl/crypto/ec/ec2_smpl.c
230
group->b.d[i] = 0;
crypto/libressl/crypto/ec/ec2_smpl.c
242
ec_GF2m_simple_group_get_curve(const EC_GROUP *group,
crypto/libressl/crypto/ec/ec2_smpl.c
248
if (!BN_copy(p, &group->field))
crypto/libressl/crypto/ec/ec2_smpl.c
252
if (!BN_copy(a, &group->a))
crypto/libressl/crypto/ec/ec2_smpl.c
256
if (!BN_copy(b, &group->b))
crypto/libressl/crypto/ec/ec2_smpl.c
268
ec_GF2m_simple_group_get_degree(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec2_smpl.c
270
return BN_num_bits(&group->field) - 1;
crypto/libressl/crypto/ec/ec2_smpl.c
278
ec_GF2m_simple_group_check_discriminant(const EC_GROUP * group, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec2_smpl.c
295
if (!BN_GF2m_mod_arr(b, &group->b, group->poly))
crypto/libressl/crypto/ec/ec2_smpl.c
367
ec_GF2m_simple_point_set_to_infinity(const EC_GROUP * group, EC_POINT * point)
crypto/libressl/crypto/ec/ec2_smpl.c
379
ec_GF2m_simple_point_set_affine_coordinates(const EC_GROUP * group, EC_POINT * point,
crypto/libressl/crypto/ec/ec2_smpl.c
408
ec_GF2m_simple_point_get_affine_coordinates(const EC_GROUP *group,
crypto/libressl/crypto/ec/ec2_smpl.c
413
if (EC_POINT_is_at_infinity(group, point) > 0) {
crypto/libressl/crypto/ec/ec2_smpl.c
441
ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
crypto/libressl/crypto/ec/ec2_smpl.c
448
if (EC_POINT_is_at_infinity(group, a) > 0) {
crypto/libressl/crypto/ec/ec2_smpl.c
453
if (EC_POINT_is_at_infinity(group, b) > 0) {
crypto/libressl/crypto/ec/ec2_smpl.c
487
if (!EC_POINT_get_affine_coordinates(group, a, x0, y0, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
496
if (!EC_POINT_get_affine_coordinates(group, b, x1, y1, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
506
if (!group->meth->field_div(group, s, s, t, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
508
if (!group->meth->field_sqr(group, x2, s, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
510
if (!BN_GF2m_add(x2, x2, &group->a))
crypto/libressl/crypto/ec/ec2_smpl.c
518
if (!EC_POINT_set_to_infinity(group, r))
crypto/libressl/crypto/ec/ec2_smpl.c
523
if (!group->meth->field_div(group, s, y1, x1, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
528
if (!group->meth->field_sqr(group, x2, s, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
532
if (!BN_GF2m_add(x2, x2, &group->a))
crypto/libressl/crypto/ec/ec2_smpl.c
538
if (!group->meth->field_mul(group, y2, y2, s, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
545
if (!EC_POINT_set_affine_coordinates(group, r, x2, y2, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
561
ec_GF2m_simple_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
crypto/libressl/crypto/ec/ec2_smpl.c
564
return ec_GF2m_simple_add(group, r, a, a, ctx);
crypto/libressl/crypto/ec/ec2_smpl.c
568
ec_GF2m_simple_invert(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec2_smpl.c
570
if (EC_POINT_is_at_infinity(group, point) > 0 || BN_is_zero(&point->Y))
crypto/libressl/crypto/ec/ec2_smpl.c
574
if (!EC_POINT_make_affine(group, point, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
582
ec_GF2m_simple_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
crypto/libressl/crypto/ec/ec2_smpl.c
593
ec_GF2m_simple_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec2_smpl.c
601
if (EC_POINT_is_at_infinity(group, point) > 0)
crypto/libressl/crypto/ec/ec2_smpl.c
604
field_mul = group->meth->field_mul;
crypto/libressl/crypto/ec/ec2_smpl.c
605
field_sqr = group->meth->field_sqr;
crypto/libressl/crypto/ec/ec2_smpl.c
627
if (!BN_GF2m_add(lh, &point->X, &group->a))
crypto/libressl/crypto/ec/ec2_smpl.c
629
if (!field_mul(group, lh, lh, &point->X, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
633
if (!field_mul(group, lh, lh, &point->X, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
635
if (!BN_GF2m_add(lh, lh, &group->b))
crypto/libressl/crypto/ec/ec2_smpl.c
637
if (!field_sqr(group, y2, &point->Y, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
657
ec_GF2m_simple_cmp(const EC_GROUP *group, const EC_POINT *a,
crypto/libressl/crypto/ec/ec2_smpl.c
664
if (EC_POINT_is_at_infinity(group, a) > 0) {
crypto/libressl/crypto/ec/ec2_smpl.c
665
return EC_POINT_is_at_infinity(group, b) > 0 ? 0 : 1;
crypto/libressl/crypto/ec/ec2_smpl.c
667
if (EC_POINT_is_at_infinity(group, b) > 0)
crypto/libressl/crypto/ec/ec2_smpl.c
688
if (!EC_POINT_get_affine_coordinates(group, a, aX, aY, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
690
if (!EC_POINT_get_affine_coordinates(group, b, bX, bY, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
704
ec_GF2m_simple_make_affine(const EC_GROUP * group, EC_POINT * point, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec2_smpl.c
710
if (point->Z_is_one || EC_POINT_is_at_infinity(group, point) > 0)
crypto/libressl/crypto/ec/ec2_smpl.c
724
if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
745
ec_GF2m_simple_points_make_affine(const EC_GROUP *group, size_t num,
crypto/libressl/crypto/ec/ec2_smpl.c
751
if (!group->meth->make_affine(group, points[i], ctx))
crypto/libressl/crypto/ec/ec2_smpl.c
761
ec_GF2m_simple_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ec2_smpl.c
764
return BN_GF2m_mod_mul_arr(r, a, b, group->poly, ctx);
crypto/libressl/crypto/ec/ec2_smpl.c
770
ec_GF2m_simple_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ec2_smpl.c
773
return BN_GF2m_mod_sqr_arr(r, a, group->poly, ctx);
crypto/libressl/crypto/ec/ec2_smpl.c
779
ec_GF2m_simple_field_div(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ec2_smpl.c
782
return BN_GF2m_mod_div(r, a, b, &group->field, ctx);
crypto/libressl/crypto/ec/ec_ameth.c
148
EC_GROUP *group = NULL;
crypto/libressl/crypto/ec/ec_ameth.c
173
group = EC_GROUP_new_by_curve_name(OBJ_obj2nid(poid));
crypto/libressl/crypto/ec/ec_ameth.c
174
if (group == NULL)
crypto/libressl/crypto/ec/ec_ameth.c
176
EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE);
crypto/libressl/crypto/ec/ec_ameth.c
177
if (EC_KEY_set_group(eckey, group) == 0)
crypto/libressl/crypto/ec/ec_ameth.c
184
EC_GROUP_free(group);
crypto/libressl/crypto/ec/ec_ameth.c
189
EC_GROUP_free(group);
crypto/libressl/crypto/ec/ec_ameth.c
230
const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
crypto/libressl/crypto/ec/ec_ameth.c
233
r = EC_POINT_cmp(group, pa, pb, NULL);
crypto/libressl/crypto/ec/ec_ameth.c
267
const EC_GROUP *group;
crypto/libressl/crypto/ec/ec_ameth.c
273
group = EC_KEY_get0_group(eckey);
crypto/libressl/crypto/ec/ec_ameth.c
274
pub_key = EC_POINT_new(group);
crypto/libressl/crypto/ec/ec_ameth.c
279
if (!EC_POINT_copy(pub_key, EC_GROUP_get0_generator(group))) {
crypto/libressl/crypto/ec/ec_ameth.c
285
if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, NULL)) {
crypto/libressl/crypto/ec/ec_ameth.c
371
const EC_GROUP *group;
crypto/libressl/crypto/ec/ec_ameth.c
378
group = EC_KEY_get0_group(pkey->pkey.ec);
crypto/libressl/crypto/ec/ec_ameth.c
379
if (!EC_GROUP_get_order(group, order, NULL)) {
crypto/libressl/crypto/ec/ec_ameth.c
447
const EC_GROUP *group;
crypto/libressl/crypto/ec/ec_ameth.c
451
if (x == NULL || (group = EC_KEY_get0_group(x)) == NULL) {
crypto/libressl/crypto/ec/ec_ameth.c
463
if ((pub_key = EC_POINT_point2bn(group, public_key,
crypto/libressl/crypto/ec/ec_ameth.c
497
if (!EC_GROUP_get_order(group, order, NULL))
crypto/libressl/crypto/ec/ec_ameth.c
509
if (!ECPKParameters_print(bp, group, off))
crypto/libressl/crypto/ec/ec_ameth.c
670
if (eckey->group == NULL) {
crypto/libressl/crypto/ec/ec_ameth.c
675
return EC_GROUP_check(eckey->group, NULL);
crypto/libressl/crypto/ec/ec_ameth.c
81
const EC_GROUP *group;
crypto/libressl/crypto/ec/ec_ameth.c
83
if (ec_key == NULL || (group = EC_KEY_get0_group(ec_key)) == NULL) {
crypto/libressl/crypto/ec/ec_ameth.c
87
if (EC_GROUP_get_asn1_flag(group) &&
crypto/libressl/crypto/ec/ec_ameth.c
88
(nid = EC_GROUP_get_curve_name(group))) {
crypto/libressl/crypto/ec/ec_asn1.c
1009
if (EC_GROUP_get_asn1_flag(group)) {
crypto/libressl/crypto/ec/ec_asn1.c
101
|| !((group->poly[0] != 0) && (group->poly[1] != 0) && (group->poly[2] == 0))) {
crypto/libressl/crypto/ec/ec_asn1.c
1014
tmp = EC_GROUP_get_curve_name(group);
crypto/libressl/crypto/ec/ec_asn1.c
1026
group, NULL)) == NULL)
crypto/libressl/crypto/ec/ec_asn1.c
106
*k = group->poly[1];
crypto/libressl/crypto/ec/ec_asn1.c
112
EC_GROUP_get_pentanomial_basis(const EC_GROUP * group, unsigned int *k1,
crypto/libressl/crypto/ec/ec_asn1.c
115
if (group == NULL)
crypto/libressl/crypto/ec/ec_asn1.c
118
if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) !=
crypto/libressl/crypto/ec/ec_asn1.c
120
|| !((group->poly[0] != 0) && (group->poly[1] != 0) && (group->poly[2] != 0) && (group->poly[3] != 0) && (group->poly[4] == 0))) {
crypto/libressl/crypto/ec/ec_asn1.c
125
*k1 = group->poly[3];
crypto/libressl/crypto/ec/ec_asn1.c
127
*k2 = group->poly[2];
crypto/libressl/crypto/ec/ec_asn1.c
1289
EC_GROUP *group = NULL;
crypto/libressl/crypto/ec/ec_asn1.c
129
*k3 = group->poly[1];
crypto/libressl/crypto/ec/ec_asn1.c
1296
if ((group = ec_asn1_pkparameters2group(params)) == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
1303
*a = group;
crypto/libressl/crypto/ec/ec_asn1.c
1308
return (group);
crypto/libressl/crypto/ec/ec_asn1.c
1350
EC_GROUP_clear_free(ret->group);
crypto/libressl/crypto/ec/ec_asn1.c
1351
ret->group = ec_asn1_pkparameters2group(priv_key->parameters);
crypto/libressl/crypto/ec/ec_asn1.c
1353
if (ret->group == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
1375
ret->pub_key = EC_POINT_new(ret->group);
crypto/libressl/crypto/ec/ec_asn1.c
1394
if (!EC_POINT_oct2point(ret->group, ret->pub_key,
crypto/libressl/crypto/ec/ec_asn1.c
1400
if (!EC_POINT_mul(ret->group, ret->pub_key, ret->priv_key,
crypto/libressl/crypto/ec/ec_asn1.c
1431
if (a == NULL || a->group == NULL || a->priv_key == NULL ||
crypto/libressl/crypto/ec/ec_asn1.c
1458
a->group, priv_key->parameters)) == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
1469
tmp_len = EC_POINT_point2oct(a->group, a->pub_key,
crypto/libressl/crypto/ec/ec_asn1.c
1481
if (!EC_POINT_point2oct(a->group, a->pub_key,
crypto/libressl/crypto/ec/ec_asn1.c
1514
return i2d_ECPKParameters(a->group, out);
crypto/libressl/crypto/ec/ec_asn1.c
1534
if (!d2i_ECPKParameters(&ret->group, in, len)) {
crypto/libressl/crypto/ec/ec_asn1.c
1551
if (a == NULL || (*a) == NULL || (*a)->group == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
1558
(ret->pub_key = EC_POINT_new(ret->group)) == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
1562
if (!EC_POINT_oct2point(ret->group, ret->pub_key, *in, len, NULL)) {
crypto/libressl/crypto/ec/ec_asn1.c
1582
buf_len = EC_POINT_point2oct(a->group, a->pub_key,
crypto/libressl/crypto/ec/ec_asn1.c
1596
if (!EC_POINT_point2oct(a->group, a->pub_key, a->conv_form,
crypto/libressl/crypto/ec/ec_asn1.c
686
ec_asn1_group2fieldid(const EC_GROUP * group, X9_62_FIELDID * field)
crypto/libressl/crypto/ec/ec_asn1.c
691
if (group == NULL || field == NULL)
crypto/libressl/crypto/ec/ec_asn1.c
700
nid = EC_METHOD_get_field_type(EC_GROUP_method_of(group));
crypto/libressl/crypto/ec/ec_asn1.c
71
EC_GROUP_get_basis_type(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_asn1.c
712
if (!EC_GROUP_get_curve(group, tmp, NULL, NULL, NULL)) {
crypto/libressl/crypto/ec/ec_asn1.c
740
char_two->m = (long) EC_GROUP_get_degree(group);
crypto/libressl/crypto/ec/ec_asn1.c
742
field_type = EC_GROUP_get_basis_type(group);
crypto/libressl/crypto/ec/ec_asn1.c
75
if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) !=
crypto/libressl/crypto/ec/ec_asn1.c
756
if (!EC_GROUP_get_trinomial_basis(group, &k))
crypto/libressl/crypto/ec/ec_asn1.c
771
if (!EC_GROUP_get_pentanomial_basis(group, &k1, &k2, &k3))
crypto/libressl/crypto/ec/ec_asn1.c
80
while (group->poly[i] != 0)
crypto/libressl/crypto/ec/ec_asn1.c
802
ec_asn1_group2curve(const EC_GROUP * group, X9_62_CURVE * curve)
crypto/libressl/crypto/ec/ec_asn1.c
811
if (!group || !curve || !curve->a || !curve->b)
crypto/libressl/crypto/ec/ec_asn1.c
820
if (!EC_GROUP_get_curve(group, NULL, tmp_1, tmp_2, NULL)) {
crypto/libressl/crypto/ec/ec_asn1.c
870
if (group->seed != NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
875
if (!ASN1_BIT_STRING_set(curve->seed, group->seed,
crypto/libressl/crypto/ec/ec_asn1.c
876
(int) group->seed_len)) {
crypto/libressl/crypto/ec/ec_asn1.c
897
ec_asn1_group2parameters(const EC_GROUP * group, ECPARAMETERS * param)
crypto/libressl/crypto/ec/ec_asn1.c
923
if (!ec_asn1_group2fieldid(group, ret->fieldID)) {
crypto/libressl/crypto/ec/ec_asn1.c
928
if (!ec_asn1_group2curve(group, ret->curve)) {
crypto/libressl/crypto/ec/ec_asn1.c
933
if ((point = EC_GROUP_get0_generator(group)) == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
937
form = EC_GROUP_get_point_conversion_form(group);
crypto/libressl/crypto/ec/ec_asn1.c
939
len = EC_POINT_point2oct(group, point, form, NULL, len, NULL);
crypto/libressl/crypto/ec/ec_asn1.c
94
EC_GROUP_get_trinomial_basis(const EC_GROUP * group, unsigned int *k)
crypto/libressl/crypto/ec/ec_asn1.c
948
if (!EC_POINT_point2oct(group, point, form, buffer, len, NULL)) {
crypto/libressl/crypto/ec/ec_asn1.c
96
if (group == NULL)
crypto/libressl/crypto/ec/ec_asn1.c
961
if (!EC_GROUP_get_order(group, tmp, NULL)) {
crypto/libressl/crypto/ec/ec_asn1.c
971
if (EC_GROUP_get_cofactor(group, tmp, NULL)) {
crypto/libressl/crypto/ec/ec_asn1.c
99
if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) !=
crypto/libressl/crypto/ec/ec_asn1.c
992
ec_asn1_group2pkparameters(const EC_GROUP * group, ECPKPARAMETERS * params)
crypto/libressl/crypto/ec/ec_check.c
101
if (!EC_POINT_mul(group, point, order, NULL, NULL, ctx))
crypto/libressl/crypto/ec/ec_check.c
103
if (EC_POINT_is_at_infinity(group, point) <= 0) {
crypto/libressl/crypto/ec/ec_check.c
60
EC_GROUP_check(const EC_GROUP * group, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec_check.c
79
if (!EC_GROUP_check_discriminant(group, ctx)) {
crypto/libressl/crypto/ec/ec_check.c
84
if (group->generator == NULL) {
crypto/libressl/crypto/ec/ec_check.c
88
if (EC_POINT_is_on_curve(group, group->generator, ctx) <= 0) {
crypto/libressl/crypto/ec/ec_check.c
93
if ((point = EC_POINT_new(group)) == NULL)
crypto/libressl/crypto/ec/ec_check.c
95
if (!EC_GROUP_get_order(group, order, ctx))
crypto/libressl/crypto/ec/ec_curve.c
3319
EC_GROUP *group = NULL;
crypto/libressl/crypto/ec/ec_curve.c
3347
if (((group = EC_GROUP_new(meth)) == NULL) ||
crypto/libressl/crypto/ec/ec_curve.c
3348
(!(group->meth->group_set_curve(group, p, a, b, ctx)))) {
crypto/libressl/crypto/ec/ec_curve.c
3353
if ((group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) == NULL) {
crypto/libressl/crypto/ec/ec_curve.c
3361
if ((group = EC_GROUP_new_curve_GF2m(p, a, b, ctx)) == NULL) {
crypto/libressl/crypto/ec/ec_curve.c
3368
if ((P = EC_POINT_new(group)) == NULL) {
crypto/libressl/crypto/ec/ec_curve.c
3377
if (!EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) {
crypto/libressl/crypto/ec/ec_curve.c
3386
if (!EC_GROUP_set_generator(group, P, order, x)) {
crypto/libressl/crypto/ec/ec_curve.c
3391
if (!EC_GROUP_set_seed(group, params - seed_len, seed_len)) {
crypto/libressl/crypto/ec/ec_curve.c
3399
EC_GROUP_free(group);
crypto/libressl/crypto/ec/ec_curve.c
3400
group = NULL;
crypto/libressl/crypto/ec/ec_curve.c
3410
return group;
crypto/libressl/crypto/ec/ec_key.c
121
EC_GROUP_free(r->group);
crypto/libressl/crypto/ec/ec_key.c
149
if (src->group) {
crypto/libressl/crypto/ec/ec_key.c
150
const EC_METHOD *meth = EC_GROUP_method_of(src->group);
crypto/libressl/crypto/ec/ec_key.c
152
EC_GROUP_free(dest->group);
crypto/libressl/crypto/ec/ec_key.c
153
dest->group = EC_GROUP_new(meth);
crypto/libressl/crypto/ec/ec_key.c
154
if (dest->group == NULL)
crypto/libressl/crypto/ec/ec_key.c
156
if (!EC_GROUP_copy(dest->group, src->group))
crypto/libressl/crypto/ec/ec_key.c
160
if (src->pub_key && src->group) {
crypto/libressl/crypto/ec/ec_key.c
162
dest->pub_key = EC_POINT_new(src->group);
crypto/libressl/crypto/ec/ec_key.c
267
if (!eckey || !eckey->group) {
crypto/libressl/crypto/ec/ec_key.c
282
if (!EC_GROUP_get_order(eckey->group, order, ctx))
crypto/libressl/crypto/ec/ec_key.c
289
if ((pub_key = EC_POINT_new(eckey->group)) == NULL)
crypto/libressl/crypto/ec/ec_key.c
293
if (!EC_POINT_mul(eckey->group, pub_key, priv_key, NULL, NULL, ctx))
crypto/libressl/crypto/ec/ec_key.c
319
if (!eckey || !eckey->group || !eckey->pub_key) {
crypto/libressl/crypto/ec/ec_key.c
323
if (EC_POINT_is_at_infinity(eckey->group, eckey->pub_key) > 0) {
crypto/libressl/crypto/ec/ec_key.c
329
if ((point = EC_POINT_new(eckey->group)) == NULL)
crypto/libressl/crypto/ec/ec_key.c
333
if (EC_POINT_is_on_curve(eckey->group, eckey->pub_key, ctx) <= 0) {
crypto/libressl/crypto/ec/ec_key.c
338
order = &eckey->group->order;
crypto/libressl/crypto/ec/ec_key.c
343
if (!EC_POINT_mul(eckey->group, point, NULL, eckey->pub_key, order, ctx)) {
crypto/libressl/crypto/ec/ec_key.c
347
if (EC_POINT_is_at_infinity(eckey->group, point) <= 0) {
crypto/libressl/crypto/ec/ec_key.c
360
if (!EC_POINT_mul(eckey->group, point, eckey->priv_key,
crypto/libressl/crypto/ec/ec_key.c
365
if (EC_POINT_cmp(eckey->group, point, eckey->pub_key,
crypto/libressl/crypto/ec/ec_key.c
386
if (!key || !key->group || !x || !y) {
crypto/libressl/crypto/ec/ec_key.c
394
point = EC_POINT_new(key->group);
crypto/libressl/crypto/ec/ec_key.c
404
if (!EC_POINT_set_affine_coordinates(key->group, point, x, y, ctx))
crypto/libressl/crypto/ec/ec_key.c
406
if (!EC_POINT_get_affine_coordinates(key->group, point, tx, ty, ctx))
crypto/libressl/crypto/ec/ec_key.c
434
return key->group;
crypto/libressl/crypto/ec/ec_key.c
438
EC_KEY_set_group(EC_KEY * key, const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_key.c
441
key->meth->set_group(key, group) == 0)
crypto/libressl/crypto/ec/ec_key.c
443
EC_GROUP_free(key->group);
crypto/libressl/crypto/ec/ec_key.c
444
key->group = EC_GROUP_dup(group);
crypto/libressl/crypto/ec/ec_key.c
445
return (key->group == NULL) ? 0 : 1;
crypto/libressl/crypto/ec/ec_key.c
478
key->pub_key = EC_POINT_dup(pub_key, key->group);
crypto/libressl/crypto/ec/ec_key.c
504
if (key->group != NULL)
crypto/libressl/crypto/ec/ec_key.c
505
EC_GROUP_set_point_conversion_form(key->group, cform);
crypto/libressl/crypto/ec/ec_key.c
543
if (key->group != NULL)
crypto/libressl/crypto/ec/ec_key.c
544
EC_GROUP_set_asn1_flag(key->group, flag);
crypto/libressl/crypto/ec/ec_key.c
550
if (key->group == NULL)
crypto/libressl/crypto/ec/ec_key.c
552
return EC_GROUP_precompute_mult(key->group, ctx);
crypto/libressl/crypto/ec/ec_key.c
88
ret->group = EC_GROUP_new_by_curve_name(nid);
crypto/libressl/crypto/ec/ec_key.c
89
if (ret->group == NULL) {
crypto/libressl/crypto/ec/ec_key.c
94
ret->meth->set_group(ret, ret->group) == 0) {
crypto/libressl/crypto/ec/ec_kmeth.c
165
ret->group = NULL;
crypto/libressl/crypto/ec/ec_lcl.h
169
int (*mul_single_ct)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
crypto/libressl/crypto/ec/ec_lcl.h
171
int (*mul_double_nonct)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
crypto/libressl/crypto/ec/ec_lcl.h
173
int (*precompute_mult)(EC_GROUP *group, BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
174
int (*have_precompute_mult)(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
189
int (*blind_coordinates)(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
257
EC_GROUP *group;
crypto/libressl/crypto/ec/ec_lcl.h
288
int ec_group_simple_order_bits(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
305
int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
crypto/libressl/crypto/ec/ec_lcl.h
307
int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
308
int ec_wNAF_have_precompute_mult(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
349
int ec_GFp_simple_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
369
int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
416
int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
crypto/libressl/crypto/ec/ec_lcl.h
418
int ec_GF2m_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
419
int ec_GF2m_have_precompute_mult(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
422
int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
crypto/libressl/crypto/ec/ec_lcl.h
424
int ec_GF2m_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
425
int ec_GF2m_have_precompute_mult(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
429
int ec_GFp_nistp224_group_init(EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
430
int ec_GFp_nistp224_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *n, BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
431
int ec_GFp_nistp224_point_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
432
int ec_GFp_nistp224_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
433
int ec_GFp_nistp224_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
434
int ec_GFp_nistp224_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
435
int ec_GFp_nistp224_have_precompute_mult(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
438
int ec_GFp_nistp256_group_init(EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
439
int ec_GFp_nistp256_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *n, BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
440
int ec_GFp_nistp256_point_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
441
int ec_GFp_nistp256_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
442
int ec_GFp_nistp256_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
443
int ec_GFp_nistp256_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
444
int ec_GFp_nistp256_have_precompute_mult(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
489
int ec_GFp_nistp521_group_init(EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lcl.h
490
int ec_GFp_nistp521_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *n, BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
491
int ec_GFp_nistp521_point_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
492
int ec_GFp_nistp521_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
crypto/libressl/crypto/ec/ec_lcl.h
493
int ec_GFp_nistp521_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
494
int ec_GFp_nistp521_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/crypto/ec/ec_lcl.h
495
int ec_GFp_nistp521_have_precompute_mult(const EC_GROUP *group);
crypto/libressl/crypto/ec/ec_lib.c
1000
if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
crypto/libressl/crypto/ec/ec_lib.c
1008
EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
1011
return EC_POINT_set_affine_coordinates(group, point, x, y, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1016
EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
1019
return EC_POINT_set_affine_coordinates(group, point, x, y, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1024
EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
1027
if (group->meth->point_get_affine_coordinates == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
1031
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
1035
return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1039
EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
1042
return EC_POINT_get_affine_coordinates(group, point, x, y, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1047
EC_POINT_get_affine_coordinates_GF2m(const EC_GROUP *group, const EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
1050
return EC_POINT_get_affine_coordinates(group, point, x, y, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1055
EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
crypto/libressl/crypto/ec/ec_lib.c
1058
if (group->meth->add == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1062
if ((group->meth != r->meth) || (r->meth != a->meth) || (a->meth != b->meth)) {
crypto/libressl/crypto/ec/ec_lib.c
1066
return group->meth->add(group, r, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1071
EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec_lib.c
1073
if (group->meth->dbl == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1077
if ((group->meth != r->meth) || (r->meth != a->meth)) {
crypto/libressl/crypto/ec/ec_lib.c
1081
return group->meth->dbl(group, r, a, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1086
EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec_lib.c
1088
if (group->meth->invert == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1092
if (group->meth != a->meth) {
crypto/libressl/crypto/ec/ec_lib.c
1096
return group->meth->invert(group, a, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1101
EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
crypto/libressl/crypto/ec/ec_lib.c
1103
if (group->meth->is_at_infinity == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1107
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
1111
return group->meth->is_at_infinity(group, point);
crypto/libressl/crypto/ec/ec_lib.c
1116
EC_POINT_is_on_curve(const EC_GROUP * group, const EC_POINT * point, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec_lib.c
1118
if (group->meth->is_on_curve == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1122
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
1126
return group->meth->is_on_curve(group, point, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1131
EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,
crypto/libressl/crypto/ec/ec_lib.c
1134
if (group->meth->point_cmp == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1138
if ((group->meth != a->meth) || (a->meth != b->meth)) {
crypto/libressl/crypto/ec/ec_lib.c
1142
return group->meth->point_cmp(group, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1147
EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec_lib.c
1149
if (group->meth->make_affine == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1153
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
1157
return group->meth->make_affine(group, point, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1162
EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[],
crypto/libressl/crypto/ec/ec_lib.c
1167
if (group->meth->points_make_affine == 0) {
crypto/libressl/crypto/ec/ec_lib.c
1172
if (group->meth != points[i]->meth) {
crypto/libressl/crypto/ec/ec_lib.c
1177
return group->meth->points_make_affine(group, num, points, ctx);
crypto/libressl/crypto/ec/ec_lib.c
118
EC_GROUP_free(EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
1183
EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
crypto/libressl/crypto/ec/ec_lib.c
1190
if (group->meth->mul_generator_ct == NULL ||
crypto/libressl/crypto/ec/ec_lib.c
1191
group->meth->mul_single_ct == NULL ||
crypto/libressl/crypto/ec/ec_lib.c
1192
group->meth->mul_double_nonct == NULL ||
crypto/libressl/crypto/ec/ec_lib.c
120
if (!group)
crypto/libressl/crypto/ec/ec_lib.c
1200
return EC_POINT_mul(group, r, scalar, points[0], scalars[0],
crypto/libressl/crypto/ec/ec_lib.c
1205
return EC_POINT_mul(group, r, scalar, NULL, NULL, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1213
EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
crypto/libressl/crypto/ec/ec_lib.c
1216
if (group->meth->mul_generator_ct == NULL ||
crypto/libressl/crypto/ec/ec_lib.c
1217
group->meth->mul_single_ct == NULL ||
crypto/libressl/crypto/ec/ec_lib.c
1218
group->meth->mul_double_nonct == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
123
if (group->meth->group_finish != 0)
crypto/libressl/crypto/ec/ec_lib.c
1231
return group->meth->mul_generator_ct(group, r, g_scalar, ctx);
crypto/libressl/crypto/ec/ec_lib.c
124
group->meth->group_finish(group);
crypto/libressl/crypto/ec/ec_lib.c
1241
return group->meth->mul_single_ct(group, r, p_scalar, point,
crypto/libressl/crypto/ec/ec_lib.c
1251
return group->meth->mul_double_nonct(group, r, g_scalar,
crypto/libressl/crypto/ec/ec_lib.c
126
EC_EX_DATA_free_all_data(&group->extra_data);
crypto/libressl/crypto/ec/ec_lib.c
1261
EC_GROUP_precompute_mult(EC_GROUP * group, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec_lib.c
1263
if (group->meth->precompute_mult != 0)
crypto/libressl/crypto/ec/ec_lib.c
1264
return group->meth->precompute_mult(group, ctx);
crypto/libressl/crypto/ec/ec_lib.c
1270
EC_GROUP_have_precompute_mult(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
1272
if (group->meth->have_precompute_mult != 0)
crypto/libressl/crypto/ec/ec_lib.c
1273
return group->meth->have_precompute_mult(group);
crypto/libressl/crypto/ec/ec_lib.c
128
EC_POINT_free(group->generator);
crypto/libressl/crypto/ec/ec_lib.c
1280
ec_group_simple_order_bits(const EC_GROUP *group)
crypto/libressl/crypto/ec/ec_lib.c
1284
if (group->order == NULL)
crypto/libressl/crypto/ec/ec_lib.c
1287
return BN_num_bits(&group->order);
crypto/libressl/crypto/ec/ec_lib.c
129
BN_free(&group->order);
crypto/libressl/crypto/ec/ec_lib.c
130
BN_free(&group->cofactor);
crypto/libressl/crypto/ec/ec_lib.c
132
free(group->seed);
crypto/libressl/crypto/ec/ec_lib.c
134
free(group);
crypto/libressl/crypto/ec/ec_lib.c
139
EC_GROUP_clear_free(EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
141
if (!group)
crypto/libressl/crypto/ec/ec_lib.c
144
if (group->meth->group_clear_finish != 0)
crypto/libressl/crypto/ec/ec_lib.c
145
group->meth->group_clear_finish(group);
crypto/libressl/crypto/ec/ec_lib.c
146
else if (group->meth->group_finish != 0)
crypto/libressl/crypto/ec/ec_lib.c
147
group->meth->group_finish(group);
crypto/libressl/crypto/ec/ec_lib.c
149
EC_EX_DATA_clear_free_all_data(&group->extra_data);
crypto/libressl/crypto/ec/ec_lib.c
151
EC_POINT_clear_free(group->generator);
crypto/libressl/crypto/ec/ec_lib.c
152
BN_clear_free(&group->order);
crypto/libressl/crypto/ec/ec_lib.c
153
BN_clear_free(&group->cofactor);
crypto/libressl/crypto/ec/ec_lib.c
155
freezero(group->seed, group->seed_len);
crypto/libressl/crypto/ec/ec_lib.c
156
freezero(group, sizeof *group);
crypto/libressl/crypto/ec/ec_lib.c
244
EC_GROUP_method_of(const EC_GROUP *group)
crypto/libressl/crypto/ec/ec_lib.c
246
return group->meth;
crypto/libressl/crypto/ec/ec_lib.c
271
ec_guess_cofactor(EC_GROUP *group)
crypto/libressl/crypto/ec/ec_lib.c
281
if (BN_num_bits(&group->order) <=
crypto/libressl/crypto/ec/ec_lib.c
282
(BN_num_bits(&group->field) + 1) / 2 + 3) {
crypto/libressl/crypto/ec/ec_lib.c
283
BN_zero(&group->cofactor);
crypto/libressl/crypto/ec/ec_lib.c
295
if (group->meth->field_type == NID_X9_62_characteristic_two_field) {
crypto/libressl/crypto/ec/ec_lib.c
297
if (!BN_set_bit(q, BN_num_bits(&group->field) - 1))
crypto/libressl/crypto/ec/ec_lib.c
300
if (!BN_copy(q, &group->field))
crypto/libressl/crypto/ec/ec_lib.c
310
if (!BN_rshift1(&group->cofactor, &group->order))
crypto/libressl/crypto/ec/ec_lib.c
313
if (!BN_add(&group->cofactor, &group->cofactor, BN_value_one()))
crypto/libressl/crypto/ec/ec_lib.c
316
if (!BN_add(&group->cofactor, &group->cofactor, q))
crypto/libressl/crypto/ec/ec_lib.c
319
if (!BN_div_ct(&group->cofactor, NULL, &group->cofactor, &group->order,
crypto/libressl/crypto/ec/ec_lib.c
330
BN_zero(&group->cofactor);
crypto/libressl/crypto/ec/ec_lib.c
336
EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,
crypto/libressl/crypto/ec/ec_lib.c
345
if (BN_is_zero(&group->field) || BN_is_negative(&group->field)) {
crypto/libressl/crypto/ec/ec_lib.c
355
BN_num_bits(order) > BN_num_bits(&group->field) + 1) {
crypto/libressl/crypto/ec/ec_lib.c
370
if (group->generator == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
371
group->generator = EC_POINT_new(group);
crypto/libressl/crypto/ec/ec_lib.c
372
if (group->generator == NULL)
crypto/libressl/crypto/ec/ec_lib.c
375
if (!EC_POINT_copy(group->generator, generator))
crypto/libressl/crypto/ec/ec_lib.c
378
if (!BN_copy(&group->order, order))
crypto/libressl/crypto/ec/ec_lib.c
383
if (!BN_copy(&group->cofactor, cofactor))
crypto/libressl/crypto/ec/ec_lib.c
385
} else if (!ec_guess_cofactor(group))
crypto/libressl/crypto/ec/ec_lib.c
389
if (BN_num_bits(&group->cofactor) > BN_num_bits(&group->field) + 1) {
crypto/libressl/crypto/ec/ec_lib.c
399
EC_GROUP_get0_generator(const EC_GROUP *group)
crypto/libressl/crypto/ec/ec_lib.c
401
return group->generator;
crypto/libressl/crypto/ec/ec_lib.c
406
EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec_lib.c
408
if (!BN_copy(order, &group->order))
crypto/libressl/crypto/ec/ec_lib.c
415
EC_GROUP_order_bits(const EC_GROUP *group)
crypto/libressl/crypto/ec/ec_lib.c
417
return group->meth->group_order_bits(group);
crypto/libressl/crypto/ec/ec_lib.c
421
EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec_lib.c
423
if (!BN_copy(cofactor, &group->cofactor))
crypto/libressl/crypto/ec/ec_lib.c
426
return !BN_is_zero(&group->cofactor);
crypto/libressl/crypto/ec/ec_lib.c
431
EC_GROUP_set_curve_name(EC_GROUP * group, int nid)
crypto/libressl/crypto/ec/ec_lib.c
433
group->curve_name = nid;
crypto/libressl/crypto/ec/ec_lib.c
438
EC_GROUP_get_curve_name(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
440
return group->curve_name;
crypto/libressl/crypto/ec/ec_lib.c
445
EC_GROUP_set_asn1_flag(EC_GROUP * group, int flag)
crypto/libressl/crypto/ec/ec_lib.c
447
group->asn1_flag = flag;
crypto/libressl/crypto/ec/ec_lib.c
452
EC_GROUP_get_asn1_flag(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
454
return group->asn1_flag;
crypto/libressl/crypto/ec/ec_lib.c
459
EC_GROUP_set_point_conversion_form(EC_GROUP * group,
crypto/libressl/crypto/ec/ec_lib.c
462
group->asn1_form = form;
crypto/libressl/crypto/ec/ec_lib.c
467
EC_GROUP_get_point_conversion_form(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
469
return group->asn1_form;
crypto/libressl/crypto/ec/ec_lib.c
474
EC_GROUP_set_seed(EC_GROUP * group, const unsigned char *p, size_t len)
crypto/libressl/crypto/ec/ec_lib.c
476
if (group->seed) {
crypto/libressl/crypto/ec/ec_lib.c
477
free(group->seed);
crypto/libressl/crypto/ec/ec_lib.c
478
group->seed = NULL;
crypto/libressl/crypto/ec/ec_lib.c
479
group->seed_len = 0;
crypto/libressl/crypto/ec/ec_lib.c
484
if ((group->seed = malloc(len)) == NULL)
crypto/libressl/crypto/ec/ec_lib.c
486
memcpy(group->seed, p, len);
crypto/libressl/crypto/ec/ec_lib.c
487
group->seed_len = len;
crypto/libressl/crypto/ec/ec_lib.c
494
EC_GROUP_get0_seed(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
496
return group->seed;
crypto/libressl/crypto/ec/ec_lib.c
501
EC_GROUP_get_seed_len(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
503
return group->seed_len;
crypto/libressl/crypto/ec/ec_lib.c
507
EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
crypto/libressl/crypto/ec/ec_lib.c
510
if (group->meth->group_set_curve == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
514
return group->meth->group_set_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
518
EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
crypto/libressl/crypto/ec/ec_lib.c
521
if (group->meth->group_get_curve == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
525
return group->meth->group_get_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
529
EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
crypto/libressl/crypto/ec/ec_lib.c
532
return EC_GROUP_set_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
536
EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
crypto/libressl/crypto/ec/ec_lib.c
539
return EC_GROUP_get_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
544
EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
crypto/libressl/crypto/ec/ec_lib.c
547
return EC_GROUP_set_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
551
EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p, BIGNUM *a,
crypto/libressl/crypto/ec/ec_lib.c
554
return EC_GROUP_get_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ec_lib.c
559
EC_GROUP_get_degree(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
561
if (group->meth->group_get_degree == 0) {
crypto/libressl/crypto/ec/ec_lib.c
565
return group->meth->group_get_degree(group);
crypto/libressl/crypto/ec/ec_lib.c
570
EC_GROUP_check_discriminant(const EC_GROUP * group, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec_lib.c
572
if (group->meth->group_check_discriminant == 0) {
crypto/libressl/crypto/ec/ec_lib.c
576
return group->meth->group_check_discriminant(group, ctx);
crypto/libressl/crypto/ec/ec_lib.c
664
ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx)
crypto/libressl/crypto/ec/ec_lib.c
666
if (group->meth->blind_coordinates == NULL)
crypto/libressl/crypto/ec/ec_lib.c
669
return group->meth->blind_coordinates(group, p, ctx);
crypto/libressl/crypto/ec/ec_lib.c
828
EC_POINT_new(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
832
if (group == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
836
if (group->meth->point_init == 0) {
crypto/libressl/crypto/ec/ec_lib.c
845
ret->meth = group->meth;
crypto/libressl/crypto/ec/ec_lib.c
899
EC_POINT_dup(const EC_POINT * a, const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_lib.c
907
t = EC_POINT_new(group);
crypto/libressl/crypto/ec/ec_lib.c
927
EC_POINT_set_to_infinity(const EC_GROUP * group, EC_POINT * point)
crypto/libressl/crypto/ec/ec_lib.c
929
if (group->meth->point_set_to_infinity == 0) {
crypto/libressl/crypto/ec/ec_lib.c
933
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
937
return group->meth->point_set_to_infinity(group, point);
crypto/libressl/crypto/ec/ec_lib.c
941
EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
944
if (group->meth->point_set_Jprojective_coordinates == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
948
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
952
return group->meth->point_set_Jprojective_coordinates(group, point,
crypto/libressl/crypto/ec/ec_lib.c
957
EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group,
crypto/libressl/crypto/ec/ec_lib.c
960
if (group->meth->point_get_Jprojective_coordinates == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
964
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
968
return group->meth->point_get_Jprojective_coordinates(group, point,
crypto/libressl/crypto/ec/ec_lib.c
973
EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
976
return EC_POINT_set_Jprojective_coordinates(group, point, x, y, z, ctx);
crypto/libressl/crypto/ec/ec_lib.c
980
EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,
crypto/libressl/crypto/ec/ec_lib.c
983
return EC_POINT_get_Jprojective_coordinates(group, point, x, y, z, ctx);
crypto/libressl/crypto/ec/ec_lib.c
987
EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_lib.c
990
if (group->meth->point_set_affine_coordinates == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
994
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_lib.c
998
if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ec_mult.c
101
ec_pre_comp_new(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_mult.c
105
if (!group)
crypto/libressl/crypto/ec/ec_mult.c
113
ret->group = group;
crypto/libressl/crypto/ec/ec_mult.c
335
ec_wNAF_mul(const EC_GROUP * group, EC_POINT * r, const BIGNUM * scalar,
crypto/libressl/crypto/ec/ec_mult.c
364
if (group->meth != r->meth) {
crypto/libressl/crypto/ec/ec_mult.c
369
return EC_POINT_set_to_infinity(group, r);
crypto/libressl/crypto/ec/ec_mult.c
372
if (group->meth != points[i]->meth) {
crypto/libressl/crypto/ec/ec_mult.c
384
generator = EC_GROUP_get0_generator(group);
crypto/libressl/crypto/ec/ec_mult.c
391
pre_comp = EC_EX_DATA_get_data(group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free);
crypto/libressl/crypto/ec/ec_mult.c
394
(EC_POINT_cmp(group, generator, pre_comp->points[0], ctx) == 0)) {
crypto/libressl/crypto/ec/ec_mult.c
591
*v = EC_POINT_new(group);
crypto/libressl/crypto/ec/ec_mult.c
601
if (!(tmp = EC_POINT_new(group)))
crypto/libressl/crypto/ec/ec_mult.c
618
if (!EC_POINT_dbl(group, tmp, val_sub[i][0], ctx))
crypto/libressl/crypto/ec/ec_mult.c
621
if (!EC_POINT_add(group, val_sub[i][j], val_sub[i][j - 1], tmp, ctx))
crypto/libressl/crypto/ec/ec_mult.c
627
if (!EC_POINTs_make_affine(group, num_val, val, ctx))
crypto/libressl/crypto/ec/ec_mult.c
634
if (!EC_POINT_dbl(group, r, r, ctx))
crypto/libressl/crypto/ec/ec_mult.c
650
if (!EC_POINT_invert(group, r, ctx))
crypto/libressl/crypto/ec/ec_mult.c
662
if (!EC_POINT_add(group, r, r, val_sub[i][digit >> 1], ctx))
crypto/libressl/crypto/ec/ec_mult.c
671
if (!EC_POINT_set_to_infinity(group, r))
crypto/libressl/crypto/ec/ec_mult.c
675
if (!EC_POINT_invert(group, r, ctx))
crypto/libressl/crypto/ec/ec_mult.c
725
ec_wNAF_precompute_mult(EC_GROUP * group, BN_CTX * ctx)
crypto/libressl/crypto/ec/ec_mult.c
738
EC_EX_DATA_free_data(&group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free);
crypto/libressl/crypto/ec/ec_mult.c
740
if ((pre_comp = ec_pre_comp_new(group)) == NULL)
crypto/libressl/crypto/ec/ec_mult.c
743
generator = EC_GROUP_get0_generator(group);
crypto/libressl/crypto/ec/ec_mult.c
757
if (!EC_GROUP_get_order(group, order, ctx))
crypto/libressl/crypto/ec/ec_mult.c
794
if ((var[i] = EC_POINT_new(group)) == NULL) {
crypto/libressl/crypto/ec/ec_mult.c
800
if (!(tmp_point = EC_POINT_new(group)) || !(base = EC_POINT_new(group))) {
crypto/libressl/crypto/ec/ec_mult.c
811
if (!EC_POINT_dbl(group, tmp_point, base, ctx))
crypto/libressl/crypto/ec/ec_mult.c
819
if (!EC_POINT_add(group, *var, tmp_point, *(var - 1), ctx))
crypto/libressl/crypto/ec/ec_mult.c
83
const EC_GROUP *group; /* parent EC_GROUP object */
crypto/libressl/crypto/ec/ec_mult.c
834
if (!EC_POINT_dbl(group, base, tmp_point, ctx))
crypto/libressl/crypto/ec/ec_mult.c
837
if (!EC_POINT_dbl(group, base, base, ctx))
crypto/libressl/crypto/ec/ec_mult.c
843
if (!EC_POINTs_make_affine(group, num, points, ctx))
crypto/libressl/crypto/ec/ec_mult.c
846
pre_comp->group = group;
crypto/libressl/crypto/ec/ec_mult.c
854
if (!EC_EX_DATA_set_data(&group->extra_data, pre_comp,
crypto/libressl/crypto/ec/ec_mult.c
879
ec_wNAF_have_precompute_mult(const EC_GROUP * group)
crypto/libressl/crypto/ec/ec_mult.c
881
if (EC_EX_DATA_get_data(group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free) != NULL)
crypto/libressl/crypto/ec/ec_oct.c
101
if (!group->meth->point_set_compressed_coordinates(group, point, x,
crypto/libressl/crypto/ec/ec_oct.c
104
if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
crypto/libressl/crypto/ec/ec_oct.c
112
EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_oct.c
115
return EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx);
crypto/libressl/crypto/ec/ec_oct.c
120
EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_oct.c
123
return EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx);
crypto/libressl/crypto/ec/ec_oct.c
128
EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point,
crypto/libressl/crypto/ec/ec_oct.c
132
if (group->meth->point2oct == 0
crypto/libressl/crypto/ec/ec_oct.c
133
&& !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
crypto/libressl/crypto/ec/ec_oct.c
137
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_oct.c
141
if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
crypto/libressl/crypto/ec/ec_oct.c
142
if (group->meth->field_type == NID_X9_62_prime_field)
crypto/libressl/crypto/ec/ec_oct.c
143
return ec_GFp_simple_point2oct(group, point,
crypto/libressl/crypto/ec/ec_oct.c
152
return ec_GF2m_simple_point2oct(group, point,
crypto/libressl/crypto/ec/ec_oct.c
156
return group->meth->point2oct(group, point, form, buf, len, ctx);
crypto/libressl/crypto/ec/ec_oct.c
160
EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_oct.c
163
if (group->meth->oct2point == 0 &&
crypto/libressl/crypto/ec/ec_oct.c
164
!(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
crypto/libressl/crypto/ec/ec_oct.c
168
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_oct.c
172
if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
crypto/libressl/crypto/ec/ec_oct.c
173
if (group->meth->field_type == NID_X9_62_prime_field)
crypto/libressl/crypto/ec/ec_oct.c
174
return ec_GFp_simple_oct2point(group, point,
crypto/libressl/crypto/ec/ec_oct.c
183
return ec_GF2m_simple_oct2point(group, point,
crypto/libressl/crypto/ec/ec_oct.c
187
return group->meth->oct2point(group, point, buf, len, ctx);
crypto/libressl/crypto/ec/ec_oct.c
74
EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
crypto/libressl/crypto/ec/ec_oct.c
77
if (group->meth->point_set_compressed_coordinates == NULL &&
crypto/libressl/crypto/ec/ec_oct.c
78
!(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
crypto/libressl/crypto/ec/ec_oct.c
82
if (group->meth != point->meth) {
crypto/libressl/crypto/ec/ec_oct.c
86
if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
crypto/libressl/crypto/ec/ec_oct.c
87
if (group->meth->field_type == NID_X9_62_prime_field)
crypto/libressl/crypto/ec/ec_oct.c
89
group, point, x, y_bit, ctx);
crypto/libressl/crypto/ec/ec_oct.c
98
group, point, x, y_bit, ctx);
crypto/libressl/crypto/ec/ec_pmeth.c
226
const EC_GROUP *group;
crypto/libressl/crypto/ec/ec_pmeth.c
227
group = EC_KEY_get0_group(eckey);
crypto/libressl/crypto/ec/ec_pmeth.c
228
*keylen = (EC_GROUP_get_degree(group) + 7) / 8;
crypto/libressl/crypto/ec/ec_pmeth.c
290
EC_GROUP *group;
crypto/libressl/crypto/ec/ec_pmeth.c
294
group = EC_GROUP_new_by_curve_name(p1);
crypto/libressl/crypto/ec/ec_pmeth.c
295
if (group == NULL) {
crypto/libressl/crypto/ec/ec_pmeth.c
300
dctx->gen_group = group;
crypto/libressl/crypto/ec/ec_pmeth.c
324
if (!ec_key->group)
crypto/libressl/crypto/ec/ec_pmeth.c
327
if (BN_is_one(&ec_key->group->cofactor))
crypto/libressl/crypto/ec/ec_print.c
104
if ((ret = EC_POINT_new(group)) == NULL) {
crypto/libressl/crypto/ec/ec_print.c
111
if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) {
crypto/libressl/crypto/ec/ec_print.c
125
EC_POINT_point2hex(const EC_GROUP * group, const EC_POINT * point,
crypto/libressl/crypto/ec/ec_print.c
132
buf_len = EC_POINT_point2oct(group, point, form,
crypto/libressl/crypto/ec/ec_print.c
140
if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx)) {
crypto/libressl/crypto/ec/ec_print.c
164
EC_POINT_hex2point(const EC_GROUP * group, const char *buf,
crypto/libressl/crypto/ec/ec_print.c
173
ret = EC_POINT_bn2point(group, tmp_bn, point, ctx);
crypto/libressl/crypto/ec/ec_print.c
60
EC_POINT_point2bn(const EC_GROUP * group, const EC_POINT * point,
crypto/libressl/crypto/ec/ec_print.c
66
buf_len = EC_POINT_point2oct(group, point, form,
crypto/libressl/crypto/ec/ec_print.c
74
if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx)) {
crypto/libressl/crypto/ec/ec_print.c
86
EC_POINT_bn2point(const EC_GROUP * group,
crypto/libressl/crypto/ec/ecp_mont.c
122
ec_GFp_mont_group_init(EC_GROUP * group)
crypto/libressl/crypto/ec/ecp_mont.c
126
ok = ec_GFp_simple_group_init(group);
crypto/libressl/crypto/ec/ecp_mont.c
127
group->field_data1 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
128
group->field_data2 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
134
ec_GFp_mont_group_finish(EC_GROUP * group)
crypto/libressl/crypto/ec/ecp_mont.c
136
BN_MONT_CTX_free(group->field_data1);
crypto/libressl/crypto/ec/ecp_mont.c
137
group->field_data1 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
138
BN_free(group->field_data2);
crypto/libressl/crypto/ec/ecp_mont.c
139
group->field_data2 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
140
ec_GFp_simple_group_finish(group);
crypto/libressl/crypto/ec/ecp_mont.c
145
ec_GFp_mont_group_clear_finish(EC_GROUP * group)
crypto/libressl/crypto/ec/ecp_mont.c
147
BN_MONT_CTX_free(group->field_data1);
crypto/libressl/crypto/ec/ecp_mont.c
148
group->field_data1 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
149
BN_clear_free(group->field_data2);
crypto/libressl/crypto/ec/ecp_mont.c
150
group->field_data2 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
151
ec_GFp_simple_group_clear_finish(group);
crypto/libressl/crypto/ec/ecp_mont.c
190
ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
crypto/libressl/crypto/ec/ecp_mont.c
198
BN_MONT_CTX_free(group->field_data1);
crypto/libressl/crypto/ec/ecp_mont.c
199
group->field_data1 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
200
BN_free(group->field_data2);
crypto/libressl/crypto/ec/ecp_mont.c
201
group->field_data2 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
220
group->field_data1 = mont;
crypto/libressl/crypto/ec/ecp_mont.c
222
group->field_data2 = one;
crypto/libressl/crypto/ec/ecp_mont.c
225
ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ecp_mont.c
228
BN_MONT_CTX_free(group->field_data1);
crypto/libressl/crypto/ec/ecp_mont.c
229
group->field_data1 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
230
BN_free(group->field_data2);
crypto/libressl/crypto/ec/ecp_mont.c
231
group->field_data2 = NULL;
crypto/libressl/crypto/ec/ecp_mont.c
242
ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ecp_mont.c
245
if (group->field_data1 == NULL) {
crypto/libressl/crypto/ec/ecp_mont.c
249
return BN_mod_mul_montgomery(r, a, b, group->field_data1, ctx);
crypto/libressl/crypto/ec/ecp_mont.c
254
ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ecp_mont.c
257
if (group->field_data1 == NULL) {
crypto/libressl/crypto/ec/ecp_mont.c
261
return BN_mod_mul_montgomery(r, a, a, group->field_data1, ctx);
crypto/libressl/crypto/ec/ecp_mont.c
266
ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ecp_mont.c
269
if (group->field_data1 == NULL) {
crypto/libressl/crypto/ec/ecp_mont.c
273
return BN_to_montgomery(r, a, (BN_MONT_CTX *) group->field_data1, ctx);
crypto/libressl/crypto/ec/ecp_mont.c
278
ec_GFp_mont_field_decode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ecp_mont.c
281
if (group->field_data1 == NULL) {
crypto/libressl/crypto/ec/ecp_mont.c
285
return BN_from_montgomery(r, a, group->field_data1, ctx);
crypto/libressl/crypto/ec/ecp_mont.c
290
ec_GFp_mont_field_set_to_one(const EC_GROUP *group, BIGNUM *r, BN_CTX *ctx)
crypto/libressl/crypto/ec/ecp_mont.c
292
if (group->field_data2 == NULL) {
crypto/libressl/crypto/ec/ecp_mont.c
296
if (!BN_copy(r, group->field_data2))
crypto/libressl/crypto/ec/ecp_nist.c
128
ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
crypto/libressl/crypto/ec/ecp_nist.c
144
group->field_mod_func = BN_nist_mod_192;
crypto/libressl/crypto/ec/ecp_nist.c
146
group->field_mod_func = BN_nist_mod_224;
crypto/libressl/crypto/ec/ecp_nist.c
148
group->field_mod_func = BN_nist_mod_256;
crypto/libressl/crypto/ec/ecp_nist.c
150
group->field_mod_func = BN_nist_mod_384;
crypto/libressl/crypto/ec/ecp_nist.c
152
group->field_mod_func = BN_nist_mod_521;
crypto/libressl/crypto/ec/ecp_nist.c
158
ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
crypto/libressl/crypto/ec/ecp_nist.c
168
ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
crypto/libressl/crypto/ec/ecp_nist.c
174
if (!group || !r || !a || !b) {
crypto/libressl/crypto/ec/ecp_nist.c
184
if (!group->field_mod_func(r, r, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_nist.c
195
ec_GFp_nist_field_sqr(const EC_GROUP * group, BIGNUM * r, const BIGNUM * a,
crypto/libressl/crypto/ec/ecp_nist.c
201
if (!group || !r || !a) {
crypto/libressl/crypto/ec/ecp_nist.c
211
if (!group->field_mod_func(r, r, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
103
if (!BN_nnmod(x, x_, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
105
if (group->meth->field_decode == 0) {
crypto/libressl/crypto/ec/ecp_oct.c
107
if (!group->meth->field_sqr(group, tmp2, x_, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
109
if (!group->meth->field_mul(group, tmp1, tmp2, x_, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
112
if (!BN_mod_sqr(tmp2, x_, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
114
if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
119
if (group->a_is_minus3) {
crypto/libressl/crypto/ec/ecp_oct.c
120
if (!BN_mod_lshift1_quick(tmp2, x, &group->field))
crypto/libressl/crypto/ec/ecp_oct.c
122
if (!BN_mod_add_quick(tmp2, tmp2, x, &group->field))
crypto/libressl/crypto/ec/ecp_oct.c
124
if (!BN_mod_sub_quick(tmp1, tmp1, tmp2, &group->field))
crypto/libressl/crypto/ec/ecp_oct.c
127
if (group->meth->field_decode) {
crypto/libressl/crypto/ec/ecp_oct.c
128
if (!group->meth->field_decode(group, tmp2, &group->a, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
130
if (!BN_mod_mul(tmp2, tmp2, x, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
134
if (!group->meth->field_mul(group, tmp2, &group->a, x, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
138
if (!BN_mod_add_quick(tmp1, tmp1, tmp2, &group->field))
crypto/libressl/crypto/ec/ecp_oct.c
143
if (group->meth->field_decode) {
crypto/libressl/crypto/ec/ecp_oct.c
144
if (!group->meth->field_decode(group, tmp2, &group->b, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
146
if (!BN_mod_add_quick(tmp1, tmp1, tmp2, &group->field))
crypto/libressl/crypto/ec/ecp_oct.c
149
if (!BN_mod_add_quick(tmp1, tmp1, &group->b, &group->field))
crypto/libressl/crypto/ec/ecp_oct.c
153
if (!BN_mod_sqrt(y, tmp1, &group->field, ctx)) {
crypto/libressl/crypto/ec/ecp_oct.c
167
kron = BN_kronecker(x, &group->field, ctx);
crypto/libressl/crypto/ec/ecp_oct.c
181
if (!BN_usub(y, &group->field, y))
crypto/libressl/crypto/ec/ecp_oct.c
188
if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
201
ec_GFp_simple_point2oct(const EC_GROUP * group, const EC_POINT * point, point_conversion_form_t form,
crypto/libressl/crypto/ec/ecp_oct.c
216
if (EC_POINT_is_at_infinity(group, point) > 0) {
crypto/libressl/crypto/ec/ecp_oct.c
228
field_len = BN_num_bytes(&group->field);
crypto/libressl/crypto/ec/ecp_oct.c
249
if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
306
ec_GFp_simple_oct2point(const EC_GROUP * group, EC_POINT * point,
crypto/libressl/crypto/ec/ecp_oct.c
338
return EC_POINT_set_to_infinity(group, point);
crypto/libressl/crypto/ec/ecp_oct.c
340
field_len = BN_num_bytes(&group->field);
crypto/libressl/crypto/ec/ecp_oct.c
360
if (BN_ucmp(x, &group->field) >= 0) {
crypto/libressl/crypto/ec/ecp_oct.c
369
if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
374
if (BN_ucmp(y, &group->field) >= 0) {
crypto/libressl/crypto/ec/ecp_oct.c
388
if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ecp_oct.c
70
ec_GFp_simple_set_compressed_coordinates(const EC_GROUP * group,
crypto/libressl/crypto/ec/ecp_smpl.c
1000
field_sqr = group->meth->field_sqr;
crypto/libressl/crypto/ec/ecp_smpl.c
1001
p = &group->field;
crypto/libressl/crypto/ec/ecp_smpl.c
1028
if (!field_sqr(group, rh, &point->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1032
if (!field_sqr(group, tmp, &point->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1034
if (!field_sqr(group, Z4, tmp, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1036
if (!field_mul(group, Z6, Z4, tmp, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1040
if (group->a_is_minus3) {
crypto/libressl/crypto/ec/ecp_smpl.c
1047
if (!field_mul(group, rh, rh, &point->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1050
if (!field_mul(group, tmp, Z4, &group->a, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1054
if (!field_mul(group, rh, rh, &point->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1059
if (!field_mul(group, tmp, &group->b, Z6, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1067
if (!BN_mod_add_quick(rh, rh, &group->a, p))
crypto/libressl/crypto/ec/ecp_smpl.c
1069
if (!field_mul(group, rh, rh, &point->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1072
if (!BN_mod_add_quick(rh, rh, &group->b, p))
crypto/libressl/crypto/ec/ecp_smpl.c
1077
if (!field_sqr(group, tmp, &point->Y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1090
ec_GFp_simple_cmp(const EC_GROUP * group, const EC_POINT * a, const EC_POINT * b, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
1104
if (EC_POINT_is_at_infinity(group, a) > 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
1105
return EC_POINT_is_at_infinity(group, b) > 0 ? 0 : 1;
crypto/libressl/crypto/ec/ecp_smpl.c
1107
if (EC_POINT_is_at_infinity(group, b) > 0)
crypto/libressl/crypto/ec/ecp_smpl.c
1113
field_mul = group->meth->field_mul;
crypto/libressl/crypto/ec/ecp_smpl.c
1114
field_sqr = group->meth->field_sqr;
crypto/libressl/crypto/ec/ecp_smpl.c
1138
if (!field_sqr(group, Zb23, &b->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1140
if (!field_mul(group, tmp1, &a->X, Zb23, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1146
if (!field_sqr(group, Za23, &a->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1148
if (!field_mul(group, tmp2, &b->X, Za23, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1160
if (!field_mul(group, Zb23, Zb23, &b->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1162
if (!field_mul(group, tmp1, &a->Y, Zb23, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1168
if (!field_mul(group, Za23, Za23, &a->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1170
if (!field_mul(group, tmp2, &b->Y, Za23, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1192
ec_GFp_simple_make_affine(const EC_GROUP * group, EC_POINT * point, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
1198
if (point->Z_is_one || EC_POINT_is_at_infinity(group, point) > 0)
crypto/libressl/crypto/ec/ecp_smpl.c
1212
if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1214
if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1230
ec_GFp_simple_points_make_affine(const EC_GROUP * group, size_t num, EC_POINT * points[], BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
1309
if (!group->meth->field_mul(group, heap[i],
crypto/libressl/crypto/ec/ecp_smpl.c
1319
if (BN_mod_inverse_ct(heap[1], heap[1], &group->field, ctx) == NULL) {
crypto/libressl/crypto/ec/ecp_smpl.c
1324
if (group->meth->field_encode != 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
1331
if (!group->meth->field_encode(group, heap[1], heap[1], ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1333
if (!group->meth->field_encode(group, heap[1], heap[1], ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
134
ec_GFp_simple_group_init(EC_GROUP * group)
crypto/libressl/crypto/ec/ecp_smpl.c
1340
if (!group->meth->field_mul(group, tmp0, heap[i / 2], heap[i + 1], ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1342
if (!group->meth->field_mul(group, tmp1, heap[i / 2], heap[i], ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
136
BN_init(&group->field);
crypto/libressl/crypto/ec/ecp_smpl.c
1364
if (!group->meth->field_sqr(group, tmp1, &p->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1366
if (!group->meth->field_mul(group, &p->X, &p->X, tmp1, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1369
if (!group->meth->field_mul(group, tmp1, tmp1, &p->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
137
BN_init(&group->a);
crypto/libressl/crypto/ec/ecp_smpl.c
1371
if (!group->meth->field_mul(group, &p->Y, &p->Y, tmp1, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1374
if (group->meth->field_set_to_one != 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
1375
if (!group->meth->field_set_to_one(group, &p->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
138
BN_init(&group->b);
crypto/libressl/crypto/ec/ecp_smpl.c
139
group->a_is_minus3 = 0;
crypto/libressl/crypto/ec/ecp_smpl.c
1405
ec_GFp_simple_field_mul(const EC_GROUP * group, BIGNUM * r, const BIGNUM * a, const BIGNUM * b, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
1407
return BN_mod_mul(r, a, b, &group->field, ctx);
crypto/libressl/crypto/ec/ecp_smpl.c
1411
ec_GFp_simple_field_sqr(const EC_GROUP * group, BIGNUM * r, const BIGNUM * a, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
1413
return BN_mod_sqr(r, a, &group->field, ctx);
crypto/libressl/crypto/ec/ecp_smpl.c
1424
ec_GFp_simple_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
1437
if (!bn_rand_interval(lambda, BN_value_one(), &group->field))
crypto/libressl/crypto/ec/ecp_smpl.c
1440
if (group->meth->field_encode != NULL &&
crypto/libressl/crypto/ec/ecp_smpl.c
1441
!group->meth->field_encode(group, lambda, lambda, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1445
if (!group->meth->field_mul(group, &p->Z, lambda, &p->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1449
if (!group->meth->field_sqr(group, tmp, lambda, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
145
ec_GFp_simple_group_finish(EC_GROUP * group)
crypto/libressl/crypto/ec/ecp_smpl.c
1453
if (!group->meth->field_mul(group, &p->X, tmp, &p->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1457
if (!group->meth->field_mul(group, tmp, tmp, lambda, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1461
if (!group->meth->field_mul(group, &p->Y, tmp, &p->Y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
147
BN_free(&group->field);
crypto/libressl/crypto/ec/ecp_smpl.c
148
BN_free(&group->a);
crypto/libressl/crypto/ec/ecp_smpl.c
149
BN_free(&group->b);
crypto/libressl/crypto/ec/ecp_smpl.c
1513
ec_GFp_simple_mul_ct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
crypto/libressl/crypto/ec/ecp_smpl.c
1529
if ((s = EC_POINT_new(group)) == NULL)
crypto/libressl/crypto/ec/ecp_smpl.c
1533
if (!EC_POINT_copy(s, group->generator))
crypto/libressl/crypto/ec/ecp_smpl.c
154
ec_GFp_simple_group_clear_finish(EC_GROUP * group)
crypto/libressl/crypto/ec/ecp_smpl.c
1548
if (!BN_mul(cardinality, &group->order, &group->cofactor, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
156
BN_clear_free(&group->field);
crypto/libressl/crypto/ec/ecp_smpl.c
157
BN_clear_free(&group->a);
crypto/libressl/crypto/ec/ecp_smpl.c
158
BN_clear_free(&group->b);
crypto/libressl/crypto/ec/ecp_smpl.c
1590
group_top = group->field.top;
crypto/libressl/crypto/ec/ecp_smpl.c
1603
if (!ec_point_blind_coordinates(group, s, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1612
if (!EC_POINT_dbl(group, s, s, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1678
if (!EC_POINT_add(group, s, r, s, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1680
if (!EC_POINT_dbl(group, r, r, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
1706
ec_GFp_simple_mul_generator_ct(const EC_GROUP *group, EC_POINT *r,
crypto/libressl/crypto/ec/ecp_smpl.c
1709
return ec_GFp_simple_mul_ct(group, r, scalar, NULL, ctx);
crypto/libressl/crypto/ec/ecp_smpl.c
1713
ec_GFp_simple_mul_single_ct(const EC_GROUP *group, EC_POINT *r,
crypto/libressl/crypto/ec/ecp_smpl.c
1716
return ec_GFp_simple_mul_ct(group, r, scalar, point, ctx);
crypto/libressl/crypto/ec/ecp_smpl.c
1720
ec_GFp_simple_mul_double_nonct(const EC_GROUP *group, EC_POINT *r,
crypto/libressl/crypto/ec/ecp_smpl.c
1724
return ec_wNAF_mul(group, r, g_scalar, 1, &point, &p_scalar, ctx);
crypto/libressl/crypto/ec/ecp_smpl.c
179
ec_GFp_simple_group_set_curve(EC_GROUP * group,
crypto/libressl/crypto/ec/ecp_smpl.c
201
if (!BN_copy(&group->field, p))
crypto/libressl/crypto/ec/ecp_smpl.c
203
BN_set_negative(&group->field, 0);
crypto/libressl/crypto/ec/ecp_smpl.c
208
if (group->meth->field_encode) {
crypto/libressl/crypto/ec/ecp_smpl.c
209
if (!group->meth->field_encode(group, &group->a, tmp_a, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
211
} else if (!BN_copy(&group->a, tmp_a))
crypto/libressl/crypto/ec/ecp_smpl.c
215
if (!BN_nnmod(&group->b, b, p, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
217
if (group->meth->field_encode)
crypto/libressl/crypto/ec/ecp_smpl.c
218
if (!group->meth->field_encode(group, &group->b, &group->b, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
224
group->a_is_minus3 = (0 == BN_cmp(tmp_a, &group->field));
crypto/libressl/crypto/ec/ecp_smpl.c
236
ec_GFp_simple_group_get_curve(const EC_GROUP * group, BIGNUM * p, BIGNUM * a, BIGNUM * b, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
242
if (!BN_copy(p, &group->field))
crypto/libressl/crypto/ec/ecp_smpl.c
246
if (group->meth->field_decode) {
crypto/libressl/crypto/ec/ecp_smpl.c
253
if (!group->meth->field_decode(group, a, &group->a, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
257
if (!group->meth->field_decode(group, b, &group->b, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
262
if (!BN_copy(a, &group->a))
crypto/libressl/crypto/ec/ecp_smpl.c
266
if (!BN_copy(b, &group->b))
crypto/libressl/crypto/ec/ecp_smpl.c
280
ec_GFp_simple_group_get_degree(const EC_GROUP * group)
crypto/libressl/crypto/ec/ecp_smpl.c
282
return BN_num_bits(&group->field);
crypto/libressl/crypto/ec/ecp_smpl.c
287
ec_GFp_simple_group_check_discriminant(const EC_GROUP * group, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
291
const BIGNUM *p = &group->field;
crypto/libressl/crypto/ec/ecp_smpl.c
313
if (group->meth->field_decode) {
crypto/libressl/crypto/ec/ecp_smpl.c
314
if (!group->meth->field_decode(group, a, &group->a, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
316
if (!group->meth->field_decode(group, b, &group->b, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
319
if (!BN_copy(a, &group->a))
crypto/libressl/crypto/ec/ecp_smpl.c
321
if (!BN_copy(b, &group->b))
crypto/libressl/crypto/ec/ecp_smpl.c
409
ec_GFp_simple_point_set_to_infinity(const EC_GROUP * group, EC_POINT * point)
crypto/libressl/crypto/ec/ecp_smpl.c
418
ec_GFp_simple_set_Jprojective_coordinates(const EC_GROUP *group,
crypto/libressl/crypto/ec/ecp_smpl.c
431
if (!BN_nnmod(&point->X, x, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
433
if (group->meth->field_encode) {
crypto/libressl/crypto/ec/ecp_smpl.c
434
if (!group->meth->field_encode(group, &point->X, &point->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
439
if (!BN_nnmod(&point->Y, y, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
441
if (group->meth->field_encode) {
crypto/libressl/crypto/ec/ecp_smpl.c
442
if (!group->meth->field_encode(group, &point->Y, &point->Y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
449
if (!BN_nnmod(&point->Z, z, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
452
if (group->meth->field_encode) {
crypto/libressl/crypto/ec/ecp_smpl.c
453
if (Z_is_one && (group->meth->field_set_to_one != 0)) {
crypto/libressl/crypto/ec/ecp_smpl.c
454
if (!group->meth->field_set_to_one(group, &point->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
457
if (!group->meth->field_encode(group, &point->Z, &point->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
471
ec_GFp_simple_get_Jprojective_coordinates(const EC_GROUP *group,
crypto/libressl/crypto/ec/ecp_smpl.c
477
if (group->meth->field_decode != 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
484
if (!group->meth->field_decode(group, x, &point->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
488
if (!group->meth->field_decode(group, y, &point->Y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
492
if (!group->meth->field_decode(group, z, &point->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
518
ec_GFp_simple_point_set_affine_coordinates(const EC_GROUP * group, EC_POINT * point,
crypto/libressl/crypto/ec/ecp_smpl.c
526
return EC_POINT_set_Jprojective_coordinates(group, point, x, y,
crypto/libressl/crypto/ec/ecp_smpl.c
531
ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP * group, const EC_POINT * point,
crypto/libressl/crypto/ec/ecp_smpl.c
539
if (EC_POINT_is_at_infinity(group, point) > 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
560
if (group->meth->field_decode) {
crypto/libressl/crypto/ec/ecp_smpl.c
561
if (!group->meth->field_decode(group, Z, &point->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
569
if (group->meth->field_decode) {
crypto/libressl/crypto/ec/ecp_smpl.c
571
if (!group->meth->field_decode(group, x, &point->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
575
if (!group->meth->field_decode(group, y, &point->Y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
589
if (BN_mod_inverse_ct(Z_1, Z_, &group->field, ctx) == NULL) {
crypto/libressl/crypto/ec/ecp_smpl.c
593
if (group->meth->field_encode == 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
595
if (!group->meth->field_sqr(group, Z_2, Z_1, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
598
if (!BN_mod_sqr(Z_2, Z_1, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
607
if (!group->meth->field_mul(group, x, &point->X, Z_2, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
611
if (group->meth->field_encode == 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
613
if (!group->meth->field_mul(group, Z_3, Z_2, Z_1, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
616
if (!BN_mod_mul(Z_3, Z_2, Z_1, &group->field, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
624
if (!group->meth->field_mul(group, y, &point->Y, Z_3, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
638
ec_GFp_simple_add(const EC_GROUP * group, EC_POINT * r, const EC_POINT * a, const EC_POINT * b, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
648
return EC_POINT_dbl(group, r, a, ctx);
crypto/libressl/crypto/ec/ecp_smpl.c
649
if (EC_POINT_is_at_infinity(group, a) > 0)
crypto/libressl/crypto/ec/ecp_smpl.c
651
if (EC_POINT_is_at_infinity(group, b) > 0)
crypto/libressl/crypto/ec/ecp_smpl.c
654
field_mul = group->meth->field_mul;
crypto/libressl/crypto/ec/ecp_smpl.c
655
field_sqr = group->meth->field_sqr;
crypto/libressl/crypto/ec/ecp_smpl.c
656
p = &group->field;
crypto/libressl/crypto/ec/ecp_smpl.c
694
if (!field_sqr(group, n0, &b->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
696
if (!field_mul(group, n1, &a->X, n0, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
700
if (!field_mul(group, n0, n0, &b->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
702
if (!field_mul(group, n2, &a->Y, n0, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
716
if (!field_sqr(group, n0, &a->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
718
if (!field_mul(group, n3, &b->X, n0, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
722
if (!field_mul(group, n0, n0, &a->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
724
if (!field_mul(group, n4, &b->Y, n0, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
741
ret = EC_POINT_dbl(group, r, a, ctx);
crypto/libressl/crypto/ec/ecp_smpl.c
772
if (!field_mul(group, n0, &a->Z, &b->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
775
if (!field_mul(group, &r->Z, n0, n5, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
782
if (!field_sqr(group, n0, n6, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
784
if (!field_sqr(group, n4, n5, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
786
if (!field_mul(group, n3, n1, n4, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
800
if (!field_mul(group, n0, n0, n6, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
802
if (!field_mul(group, n5, n4, n5, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
804
if (!field_mul(group, n1, n2, n5, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
827
ec_GFp_simple_dbl(const EC_GROUP * group, EC_POINT * r, const EC_POINT * a, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
836
if (EC_POINT_is_at_infinity(group, a) > 0) {
crypto/libressl/crypto/ec/ecp_smpl.c
841
field_mul = group->meth->field_mul;
crypto/libressl/crypto/ec/ecp_smpl.c
842
field_sqr = group->meth->field_sqr;
crypto/libressl/crypto/ec/ecp_smpl.c
843
p = &group->field;
crypto/libressl/crypto/ec/ecp_smpl.c
868
if (!field_sqr(group, n0, &a->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
874
if (!BN_mod_add_quick(n1, n0, &group->a, p))
crypto/libressl/crypto/ec/ecp_smpl.c
877
} else if (group->a_is_minus3) {
crypto/libressl/crypto/ec/ecp_smpl.c
878
if (!field_sqr(group, n1, &a->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
884
if (!field_mul(group, n1, n0, n2, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
895
if (!field_sqr(group, n0, &a->X, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
901
if (!field_sqr(group, n1, &a->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
903
if (!field_sqr(group, n1, n1, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
905
if (!field_mul(group, n1, n1, &group->a, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
917
if (!field_mul(group, n0, &a->Y, &a->Z, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
926
if (!field_sqr(group, n3, &a->Y, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
928
if (!field_mul(group, n2, &a->X, n3, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
937
if (!field_sqr(group, &r->X, n1, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
944
if (!field_sqr(group, n0, n3, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
953
if (!field_mul(group, n0, n1, n0, ctx))
crypto/libressl/crypto/ec/ecp_smpl.c
969
ec_GFp_simple_invert(const EC_GROUP * group, EC_POINT * point, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
971
if (EC_POINT_is_at_infinity(group, point) > 0 || BN_is_zero(&point->Y))
crypto/libressl/crypto/ec/ecp_smpl.c
975
return BN_usub(&point->Y, &group->field, &point->Y);
crypto/libressl/crypto/ec/ecp_smpl.c
980
ec_GFp_simple_is_at_infinity(const EC_GROUP * group, const EC_POINT * point)
crypto/libressl/crypto/ec/ecp_smpl.c
987
ec_GFp_simple_is_on_curve(const EC_GROUP * group, const EC_POINT * point, BN_CTX * ctx)
crypto/libressl/crypto/ec/ecp_smpl.c
996
if (EC_POINT_is_at_infinity(group, point) > 0)
crypto/libressl/crypto/ec/ecp_smpl.c
999
field_mul = group->meth->field_mul;
crypto/libressl/crypto/ecdh/ech_key.c
104
const EC_GROUP* group;
crypto/libressl/crypto/ecdh/ech_key.c
129
group = EC_KEY_get0_group(ecdh);
crypto/libressl/crypto/ecdh/ech_key.c
131
if (!EC_POINT_is_on_curve(group, pub_key, ctx))
crypto/libressl/crypto/ecdh/ech_key.c
134
if ((tmp = EC_POINT_new(group)) == NULL) {
crypto/libressl/crypto/ecdh/ech_key.c
139
if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx)) {
crypto/libressl/crypto/ecdh/ech_key.c
144
if (!EC_POINT_get_affine_coordinates(group, tmp, x, y, ctx)) {
crypto/libressl/crypto/ecdsa/ecs_lib.c
201
const EC_GROUP *group;
crypto/libressl/crypto/ecdsa/ecs_lib.c
208
if ((group = EC_KEY_get0_group(r)) == NULL)
crypto/libressl/crypto/ecdsa/ecs_lib.c
214
if (!EC_GROUP_get_order(group, order, NULL))
crypto/libressl/crypto/ecdsa/ecs_ossl.c
137
const EC_GROUP *group;
crypto/libressl/crypto/ecdsa/ecs_ossl.c
140
if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
157
if ((point = EC_POINT_new(group)) == NULL) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
161
if (!EC_GROUP_get_order(group, order, ctx)) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
209
if (!EC_POINT_mul(group, point, k, NULL, NULL, ctx)) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
213
if (!EC_POINT_get_affine_coordinates(group, point, X, NULL,
crypto/libressl/crypto/ecdsa/ecs_ossl.c
266
const EC_GROUP *group;
crypto/libressl/crypto/ecdsa/ecs_ossl.c
272
group = EC_KEY_get0_group(eckey);
crypto/libressl/crypto/ecdsa/ecs_ossl.c
275
if (group == NULL || priv_key == NULL || ecdsa == NULL) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
294
if (!EC_GROUP_get_order(group, order, ctx)) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
452
const EC_GROUP *group;
crypto/libressl/crypto/ecdsa/ecs_ossl.c
456
if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL ||
crypto/libressl/crypto/ecdsa/ecs_ossl.c
477
if (!EC_GROUP_get_order(group, order, ctx)) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
509
if ((point = EC_POINT_new(group)) == NULL) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
513
if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx)) {
crypto/libressl/crypto/ecdsa/ecs_ossl.c
517
if (!EC_POINT_get_affine_coordinates(group, point, X, NULL, ctx)) {
crypto/libressl/crypto/gost/gostr341001.c
106
const EC_GROUP *group = GOST_KEY_get0_group(ec);
crypto/libressl/crypto/gost/gostr341001.c
112
if (group == NULL) {
crypto/libressl/crypto/gost/gostr341001.c
125
pub_key = EC_POINT_new(group);
crypto/libressl/crypto/gost/gostr341001.c
128
if (EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, ctx) == 0)
crypto/libressl/crypto/gost/gostr341001.c
151
const EC_GROUP *group;
crypto/libressl/crypto/gost/gostr341001.c
171
group = GOST_KEY_get0_group(eckey);
crypto/libressl/crypto/gost/gostr341001.c
174
if (EC_GROUP_get_order(group, order, ctx) == 0)
crypto/libressl/crypto/gost/gostr341001.c
187
if ((C = EC_POINT_new(group)) == NULL)
crypto/libressl/crypto/gost/gostr341001.c
206
if (EC_POINT_mul(group, C, k, NULL, NULL, ctx) == 0) {
crypto/libressl/crypto/gost/gostr341001.c
210
if (EC_POINT_get_affine_coordinates(group, C, X,
crypto/libressl/crypto/gost/gostr341001.c
253
const EC_GROUP *group = GOST_KEY_get0_group(ec);
crypto/libressl/crypto/gost/gostr341001.c
281
if (EC_GROUP_get_order(group, order, ctx) == 0)
crypto/libressl/crypto/gost/gostr341001.c
302
if ((C = EC_POINT_new(group)) == NULL)
crypto/libressl/crypto/gost/gostr341001.c
304
if (EC_POINT_mul(group, C, z1, pub_key, z2, ctx) == 0) {
crypto/libressl/crypto/gost/gostr341001.c
308
if (EC_POINT_get_affine_coordinates(group, C, X, NULL, ctx) == 0) {
crypto/libressl/crypto/gost/gostr341001.c
335
const EC_GROUP *group = GOST_KEY_get0_group(priv_key);
crypto/libressl/crypto/gost/gostr341001.c
341
pnt = EC_POINT_new(group);
crypto/libressl/crypto/gost/gostr341001.c
352
if (EC_GROUP_get_order(group, order, ctx) == 0)
crypto/libressl/crypto/gost/gostr341001.c
356
if (EC_POINT_mul(group, pnt, NULL, pub_key, p, ctx) == 0)
crypto/libressl/crypto/gost/gostr341001.c
358
if (EC_POINT_get_affine_coordinates(group, pnt, X, Y, ctx) == 0)
crypto/libressl/crypto/gost/gostr341001.c
375
const EC_GROUP *group = GOST_KEY_get0_group(ec);
crypto/libressl/crypto/gost/gostr341001.c
380
if (EC_GROUP_get_order(group, order, NULL) == 0)
crypto/libressl/crypto/gost/gostr341001_ameth.c
108
group = EC_GROUP_new_by_curve_name(param_nid);
crypto/libressl/crypto/gost/gostr341001_ameth.c
109
if (group == NULL) {
crypto/libressl/crypto/gost/gostr341001_ameth.c
113
EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE);
crypto/libressl/crypto/gost/gostr341001_ameth.c
114
if (GOST_KEY_set_group(ec, group) == 0) {
crypto/libressl/crypto/gost/gostr341001_ameth.c
115
EC_GROUP_free(group);
crypto/libressl/crypto/gost/gostr341001_ameth.c
118
EC_GROUP_free(group);
crypto/libressl/crypto/gost/gostr341001_ameth.c
343
const EC_GROUP *group;
crypto/libressl/crypto/gost/gostr341001_ameth.c
355
group = GOST_KEY_get0_group(pkey->pkey.gost);
crypto/libressl/crypto/gost/gostr341001_ameth.c
356
if (EC_POINT_get_affine_coordinates(group, pubkey, X, Y, ctx) == 0) {
crypto/libressl/crypto/gost/gostr341001_ameth.c
529
EC_GROUP *group;
crypto/libressl/crypto/gost/gostr341001_ameth.c
549
group = EC_GROUP_new_by_curve_name(nid);
crypto/libressl/crypto/gost/gostr341001_ameth.c
550
if (group == NULL) {
crypto/libressl/crypto/gost/gostr341001_ameth.c
556
EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE);
crypto/libressl/crypto/gost/gostr341001_ameth.c
557
if (GOST_KEY_set_group(ec, group) == 0) {
crypto/libressl/crypto/gost/gostr341001_ameth.c
559
EC_GROUP_free(group);
crypto/libressl/crypto/gost/gostr341001_ameth.c
563
EC_GROUP_free(group);
crypto/libressl/crypto/gost/gostr341001_ameth.c
85
EC_GROUP *group;
crypto/libressl/crypto/gost/gostr341001_key.c
104
EC_GROUP_free(r->group);
crypto/libressl/crypto/gost/gostr341001_key.c
119
if (key == NULL || key->group == NULL || key->pub_key == NULL) {
crypto/libressl/crypto/gost/gostr341001_key.c
123
if (EC_POINT_is_at_infinity(key->group, key->pub_key) != 0) {
crypto/libressl/crypto/gost/gostr341001_key.c
129
if ((point = EC_POINT_new(key->group)) == NULL)
crypto/libressl/crypto/gost/gostr341001_key.c
133
if (EC_POINT_is_on_curve(key->group, key->pub_key, ctx) == 0) {
crypto/libressl/crypto/gost/gostr341001_key.c
140
if (EC_GROUP_get_order(key->group, order, ctx) == 0) {
crypto/libressl/crypto/gost/gostr341001_key.c
144
if (EC_POINT_mul(key->group, point, NULL, key->pub_key, order,
crypto/libressl/crypto/gost/gostr341001_key.c
149
if (EC_POINT_is_at_infinity(key->group, point) == 0) {
crypto/libressl/crypto/gost/gostr341001_key.c
162
if (EC_POINT_mul(key->group, point, key->priv_key, NULL, NULL,
crypto/libressl/crypto/gost/gostr341001_key.c
167
if (EC_POINT_cmp(key->group, point, key->pub_key, ctx) != 0) {
crypto/libressl/crypto/gost/gostr341001_key.c
188
if (key == NULL || key->group == NULL || x == NULL || y == NULL) {
crypto/libressl/crypto/gost/gostr341001_key.c
196
point = EC_POINT_new(key->group);
crypto/libressl/crypto/gost/gostr341001_key.c
204
if (EC_POINT_set_affine_coordinates(key->group, point, x, y,
crypto/libressl/crypto/gost/gostr341001_key.c
207
if (EC_POINT_get_affine_coordinates(key->group, point, tx, ty,
crypto/libressl/crypto/gost/gostr341001_key.c
236
return key->group;
crypto/libressl/crypto/gost/gostr341001_key.c
240
GOST_KEY_set_group(GOST_KEY *key, const EC_GROUP *group)
crypto/libressl/crypto/gost/gostr341001_key.c
242
EC_GROUP_free(key->group);
crypto/libressl/crypto/gost/gostr341001_key.c
243
key->group = EC_GROUP_dup(group);
crypto/libressl/crypto/gost/gostr341001_key.c
244
return (key->group == NULL) ? 0 : 1;
crypto/libressl/crypto/gost/gostr341001_key.c
271
key->pub_key = EC_POINT_dup(pub_key, key->group);
crypto/libressl/crypto/gost/gostr341001_key.c
298
const EC_GROUP *group;
crypto/libressl/crypto/gost/gostr341001_key.c
302
group = GOST_KEY_get0_group(r);
crypto/libressl/crypto/gost/gostr341001_key.c
303
if (group == NULL)
crypto/libressl/crypto/gost/gostr341001_key.c
309
if (EC_GROUP_get_order(group, order, NULL) == 0) {
crypto/libressl/crypto/gost/gostr341001_key.c
64
EC_GROUP *group;
crypto/libressl/crypto/gost/gostr341001_key.c
84
ret->group = NULL;
crypto/libressl/crypto/gost/gostr341001_pmeth.c
191
EC_GROUP *group = NULL;
crypto/libressl/crypto/gost/gostr341001_pmeth.c
201
group = EC_GROUP_new_by_curve_name(data->sign_param_nid);
crypto/libressl/crypto/gost/gostr341001_pmeth.c
202
if (group == NULL)
crypto/libressl/crypto/gost/gostr341001_pmeth.c
205
EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE);
crypto/libressl/crypto/gost/gostr341001_pmeth.c
214
if (GOST_KEY_set_group(gost, group) != 0)
crypto/libressl/crypto/gost/gostr341001_pmeth.c
220
EC_GROUP_free(group);
crypto/libressl/include/openssl/conf.h
129
char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group,
crypto/libressl/include/openssl/conf.h
131
long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group,
crypto/libressl/include/openssl/conf.h
159
char *NCONF_get_string(const CONF *conf, const char *group, const char *name);
crypto/libressl/include/openssl/conf.h
160
int NCONF_get_number_e(const CONF *conf, const char *group, const char *name,
crypto/libressl/include/openssl/ec.h
196
void EC_GROUP_free(EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
201
void EC_GROUP_clear_free(EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
221
const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
237
int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
crypto/libressl/include/openssl/ec.h
243
const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
251
int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
253
int EC_GROUP_order_bits(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
261
int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
267
void EC_GROUP_set_curve_name(EC_GROUP *group, int nid);
crypto/libressl/include/openssl/ec.h
273
int EC_GROUP_get_curve_name(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
275
void EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag);
crypto/libressl/include/openssl/ec.h
276
int EC_GROUP_get_asn1_flag(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
278
void EC_GROUP_set_point_conversion_form(EC_GROUP *group, point_conversion_form_t form);
crypto/libressl/include/openssl/ec.h
285
int EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
crypto/libressl/include/openssl/ec.h
287
int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
crypto/libressl/include/openssl/ec.h
298
int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
308
int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
319
int EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
329
int EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
337
int EC_GROUP_get_degree(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
344
int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
351
int EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
418
EC_POINT *EC_POINT_new(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
443
EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
456
int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);
crypto/libressl/include/openssl/ec.h
458
int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
460
int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,
crypto/libressl/include/openssl/ec.h
462
int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
467
int EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
469
int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group,
crypto/libressl/include/openssl/ec.h
483
int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
495
int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,
crypto/libressl/include/openssl/ec.h
506
int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
517
int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,
crypto/libressl/include/openssl/ec.h
528
int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
540
int EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
551
int EC_POINT_get_affine_coordinates_GF2m(const EC_GROUP *group,
crypto/libressl/include/openssl/ec.h
562
int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
577
size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *p,
crypto/libressl/include/openssl/ec.h
589
int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p,
crypto/libressl/include/openssl/ec.h
615
int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
624
int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
632
int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
639
int EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *p);
crypto/libressl/include/openssl/ec.h
647
int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
656
int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
658
int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
659
int EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[], BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
671
int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, size_t num, const EC_POINT *p[], const BIGNUM *m[], BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
682
int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
689
int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
crypto/libressl/include/openssl/ec.h
695
int EC_GROUP_have_precompute_mult(const EC_GROUP *group);
crypto/libressl/include/openssl/ec.h
802
int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
crypto/libressl/include/openssl/gost.h
183
int GOST_KEY_set_group(GOST_KEY * key, const EC_GROUP * group);
crypto/libressl/ssl/s3_lib.c
1790
const EC_GROUP *group;
crypto/libressl/ssl/s3_lib.c
1795
if ((group = EC_KEY_get0_group(ecdh)) == NULL)
crypto/libressl/ssl/s3_lib.c
1798
nid = EC_GROUP_get_curve_name(group);
crypto/libressl/ssl/s3_lib.c
2230
const EC_GROUP *group;
crypto/libressl/ssl/s3_lib.c
2235
if ((group = EC_KEY_get0_group(ecdh)) == NULL)
crypto/libressl/ssl/s3_lib.c
2238
nid = EC_GROUP_get_curve_name(group);
crypto/libressl/ssl/ssl_kex.c
271
EC_GROUP *group = NULL;
crypto/libressl/ssl/ssl_kex.c
278
if ((group = EC_GROUP_new_by_curve_name(NID_X9_62_prime256v1)) == NULL)
crypto/libressl/ssl/ssl_kex.c
280
if ((point = EC_POINT_new(group)) == NULL)
crypto/libressl/ssl/ssl_kex.c
286
if (!EC_GROUP_set_generator(group, point, order, NULL))
crypto/libressl/ssl/ssl_kex.c
288
EC_GROUP_set_curve_name(group, NID_X25519);
crypto/libressl/ssl/ssl_kex.c
291
if (!EC_KEY_set_group(ec_key, group))
crypto/libressl/ssl/ssl_kex.c
299
EC_GROUP_free(group);
crypto/libressl/ssl/ssl_kex.c
310
EC_GROUP *group;
crypto/libressl/ssl/ssl_kex.c
313
if ((group = EC_GROUP_new_by_curve_name(nid)) == NULL)
crypto/libressl/ssl/ssl_kex.c
316
if (!EC_KEY_set_group(ecdh, group))
crypto/libressl/ssl/ssl_kex.c
324
EC_GROUP_free(group);
crypto/libressl/ssl/ssl_kex.c
332
const EC_GROUP *group;
crypto/libressl/ssl/ssl_kex.c
338
if ((group = EC_KEY_get0_group(ecdh)) == NULL)
crypto/libressl/ssl/ssl_kex.c
343
if ((ecp_len = EC_POINT_point2oct(group, point,
crypto/libressl/ssl/ssl_kex.c
348
if ((EC_POINT_point2oct(group, point, POINT_CONVERSION_UNCOMPRESSED,
crypto/libressl/ssl/ssl_kex.c
361
EC_GROUP *group = NULL;
crypto/libressl/ssl/ssl_kex.c
365
if ((group = EC_GROUP_new_by_curve_name(nid)) == NULL)
crypto/libressl/ssl/ssl_kex.c
368
if (!EC_KEY_set_group(ecdh, group))
crypto/libressl/ssl/ssl_kex.c
371
if ((point = EC_POINT_new(group)) == NULL)
crypto/libressl/ssl/ssl_kex.c
373
if (EC_POINT_oct2point(group, point, CBS_data(cbs), CBS_len(cbs),
crypto/libressl/ssl/ssl_kex.c
382
EC_GROUP_free(group);
crypto/libressl/ssl/ssl_seclevel.c
446
uint8_t group[2];
crypto/libressl/ssl/ssl_seclevel.c
453
if (!CBB_init_fixed(&cbb, group, sizeof(group)))
crypto/libressl/ssl/ssl_seclevel.c
460
return ssl_security(ssl, secop, bits, nid, group);
crypto/libressl/ssl/ssl_tlsext.c
1448
uint16_t group;
crypto/libressl/ssl/ssl_tlsext.c
1456
if (!CBS_get_u16(&client_shares, &group))
crypto/libressl/ssl/ssl_tlsext.c
1476
if (!tls1_check_group(s, group))
crypto/libressl/ssl/ssl_tlsext.c
1480
if ((s->s3->hs.key_share = tls_key_share_new(group)) == NULL) {
crypto/libressl/ssl/ssl_tlsext.c
1535
uint16_t group;
crypto/libressl/ssl/ssl_tlsext.c
1538
if (!CBS_get_u16(cbs, &group))
crypto/libressl/ssl/ssl_tlsext.c
1546
s->s3->hs.tls13.server_group = group;
crypto/libressl/ssl/ssl_tlsext.c
1557
if (tls_key_share_group(s->s3->hs.key_share) != group) {
crypto/openssh/groupaccess.c
54
struct group *gr;
crypto/openssh/kexecdh.c
112
group = EC_KEY_get0_group(server_key);
crypto/openssh/kexecdh.c
123
if ((r = sshbuf_put_ec(server_blob, pub_key, group)) != 0 ||
crypto/openssh/kexecdh.c
126
if ((r = kex_ecdh_dec_key_group(kex, client_blob, server_key, group,
crypto/openssh/kexecdh.c
139
EC_KEY *key, const EC_GROUP *group, struct sshbuf **shared_secretp)
crypto/openssh/kexecdh.c
156
if ((dh_pub = EC_POINT_new(group)) == NULL) {
crypto/openssh/kexecdh.c
160
if ((r = sshbuf_get_ec(buf, dh_pub, group)) != 0) {
crypto/openssh/kexecdh.c
167
sshkey_dump_ec_point(group, dh_pub);
crypto/openssh/kexecdh.c
169
if (sshkey_ec_validate_public(group, dh_pub) != 0) {
crypto/openssh/kexecdh.c
173
klen = (EC_GROUP_get_degree(group) + 7) / 8;
crypto/openssh/kexecdh.c
53
const EC_GROUP *group;
crypto/openssh/kexecdh.c
66
group = EC_KEY_get0_group(client_key);
crypto/openssh/kexecdh.c
73
if ((r = sshbuf_put_ec(buf, public_key, group)) != 0 ||
crypto/openssh/kexecdh.c
81
kex->ec_group = group;
crypto/openssh/kexecdh.c
95
const EC_GROUP *group;
crypto/openssh/sftp-common.c
218
const char *user, const char *group)
crypto/openssh/sftp-common.c
232
if (group == NULL) {
crypto/openssh/sftp-common.c
234
group = gbuf;
crypto/openssh/sftp-common.c
239
group = group_from_gid(st->st_gid, 0);
crypto/openssh/sftp-common.c
253
glen = MAXIMUM(strlen(group), 8);
crypto/openssh/sftp-common.c
257
mode, lc, ulen, user, glen, group,
crypto/openssh/sftp-common.c
261
mode, lc, ulen, user, glen, group,
crypto/openssh/sftp-server.c
1728
struct group *gr;
crypto/openssh/ssh-pkcs11.c
712
EC_GROUP *group = NULL;
crypto/openssh/ssh-pkcs11.c
763
group = d2i_ECPKParameters(NULL, &attrp, key_attr[2].ulValueLen);
crypto/openssh/ssh-pkcs11.c
764
if (group == NULL) {
crypto/openssh/ssh-pkcs11.c
769
if (EC_KEY_set_group(ec, group) == 0) {
crypto/openssh/ssh-pkcs11.c
817
if (group)
crypto/openssh/ssh-pkcs11.c
818
EC_GROUP_free(group);
crypto/openssh/sshkey.c
2589
sshkey_ec_validate_public(const EC_GROUP *group, const EC_POINT *public)
crypto/openssh/sshkey.c
2607
if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) !=
crypto/openssh/sshkey.c
2612
if (EC_POINT_is_at_infinity(group, public))
crypto/openssh/sshkey.c
2624
if (EC_GROUP_get_order(group, order, NULL) != 1 ||
crypto/openssh/sshkey.c
2625
EC_POINT_get_affine_coordinates_GFp(group, public,
crypto/openssh/sshkey.c
2635
if ((nq = EC_POINT_new(group)) == NULL) {
crypto/openssh/sshkey.c
2639
if (EC_POINT_mul(group, nq, NULL, public, order, NULL) != 1) {
crypto/openssh/sshkey.c
2643
if (EC_POINT_is_at_infinity(group, nq) != 1)
crypto/openssh/sshkey.c
2698
sshkey_dump_ec_point(const EC_GROUP *group, const EC_POINT *point)
crypto/openssh/sshkey.c
2710
if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) !=
crypto/openssh/sshkey.c
2715
if (EC_POINT_get_affine_coordinates_GFp(group, point,
crypto/openssh/sshpty.c
168
struct group *grp;
include/grp.h
66
struct group *getgrent(void);
include/grp.h
68
struct group *getgrgid(gid_t);
include/grp.h
69
struct group *getgrnam(const char *);
include/grp.h
74
struct group * (*)(const char *),
include/grp.h
75
struct group * (*)(gid_t));
include/grp.h
81
int getgrgid_r(gid_t, struct group *, char *, size_t,
include/grp.h
82
struct group **);
include/grp.h
83
int getgrnam_r(const char *, struct group *, char *, size_t,
include/grp.h
84
struct group **);
include/grp.h
87
int getgrent_r(struct group *, char *, size_t, struct group **);
include/printf.h
58
unsigned group;
lib/libc/gen/getgrent.c
1036
*(struct group **)retval = grp;
lib/libc/gen/getgrent.c
1078
struct group *grp;
lib/libc/gen/getgrent.c
1102
grp = va_arg(ap, struct group *);
lib/libc/gen/getgrent.c
1187
*(struct group **)retval = grp;
lib/libc/gen/getgrent.c
1298
struct group *grp;
lib/libc/gen/getgrent.c
1328
grp = va_arg(ap, struct group *);
lib/libc/gen/getgrent.c
1456
*(struct group **)retval = grp;
lib/libc/gen/getgrent.c
1512
__gr_parse_entry(char *line, size_t linesize __unused, struct group *grp,
lib/libc/gen/getgrent.c
212
struct group *grp;
lib/libc/gen/getgrent.c
216
struct group new_grp;
lib/libc/gen/getgrent.c
234
grp = va_arg(ap, struct group *);
lib/libc/gen/getgrent.c
238
desired_size = _ALIGNBYTES + sizeof(struct group) + sizeof(char *);
lib/libc/gen/getgrent.c
261
memcpy(&new_grp, grp, sizeof(struct group));
lib/libc/gen/getgrent.c
265
p = buffer + sizeof(struct group) + sizeof(char *);
lib/libc/gen/getgrent.c
266
memcpy(buffer + sizeof(struct group), &p, sizeof(char *));
lib/libc/gen/getgrent.c
297
memcpy(buffer, &new_grp, sizeof(struct group));
lib/libc/gen/getgrent.c
307
struct group *grp;
lib/libc/gen/getgrent.c
329
grp = va_arg(ap, struct group *);
lib/libc/gen/getgrent.c
335
buffer_size - sizeof(struct group) - sizeof(char *)) {
lib/libc/gen/getgrent.c
340
memcpy(grp, buffer, sizeof(struct group));
lib/libc/gen/getgrent.c
341
memcpy(&p, buffer + sizeof(struct group), sizeof(char *));
lib/libc/gen/getgrent.c
344
memcpy(orig_buf, buffer + sizeof(struct group) + sizeof(char *) +
lib/libc/gen/getgrent.c
346
buffer_size - sizeof(struct group) - sizeof(char *) -
lib/libc/gen/getgrent.c
360
*((struct group **)retval) = grp;
lib/libc/gen/getgrent.c
365
NSS_MP_CACHE_HANDLING(group);
lib/libc/gen/getgrent.c
370
group, (void *)nss_lt_all,
lib/libc/gen/getgrent.c
391
group, (void *)nss_lt_all,
lib/libc/gen/getgrent.c
412
group, (void *)nss_lt_all,
lib/libc/gen/getgrent.c
459
struct group grp;
lib/libc/gen/getgrent.c
460
struct group *grp_p;
lib/libc/gen/getgrent.c
559
getgrent_r(struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
560
struct group **result)
lib/libc/gen/getgrent.c
576
getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
577
struct group **result)
lib/libc/gen/getgrent.c
582
group, (void *)nss_lt_name,
lib/libc/gen/getgrent.c
614
getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
615
struct group **result)
lib/libc/gen/getgrent.c
620
group, (void *)nss_lt_id,
lib/libc/gen/getgrent.c
675
static struct group grp;
lib/libc/gen/getgrent.c
679
static struct group *
lib/libc/gen/getgrent.c
680
getgr(int (*fn)(union key, struct group *, char *, size_t, struct group **),
lib/libc/gen/getgrent.c
684
struct group *res;
lib/libc/gen/getgrent.c
714
wrap_getgrnam_r(union key key, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
715
struct group **res)
lib/libc/gen/getgrent.c
722
wrap_getgrgid_r(union key key, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
723
struct group **res)
lib/libc/gen/getgrent.c
730
wrap_getgrent_r(union key key __unused, struct group *grp, char *buffer,
lib/libc/gen/getgrent.c
731
size_t bufsize, struct group **res)
lib/libc/gen/getgrent.c
737
struct group *
lib/libc/gen/getgrent.c
747
struct group *
lib/libc/gen/getgrent.c
757
struct group *
lib/libc/gen/getgrent.c
80
int __gr_parse_entry(char *, size_t, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
832
struct group *grp;
lib/libc/gen/getgrent.c
854
grp = va_arg(ap, struct group *);
lib/libc/gen/getgrent.c
89
static struct group *getgr(int (*)(union key, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
90
struct group **), union key);
lib/libc/gen/getgrent.c
902
*(struct group **)retval = grp;
lib/libc/gen/getgrent.c
91
static int wrap_getgrnam_r(union key, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
92
struct group **);
lib/libc/gen/getgrent.c
93
static int wrap_getgrgid_r(union key, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
94
struct group **);
lib/libc/gen/getgrent.c
940
struct group *grp;
lib/libc/gen/getgrent.c
95
static int wrap_getgrent_r(union key, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
96
struct group **);
lib/libc/gen/getgrent.c
964
grp = va_arg(ap, struct group *);
lib/libc/gen/getnetgrent.c
146
setnetgrent(const char *group)
lib/libc/gen/getnetgrent.c
155
if (group == NULL || !strlen(group))
lib/libc/gen/getnetgrent.c
159
strcmp(group, grouphead.grname)) {
lib/libc/gen/getnetgrent.c
197
if (parse_netgrp(group))
lib/libc/gen/getnetgrent.c
201
malloc(strlen(group) + 1);
lib/libc/gen/getnetgrent.c
202
strcpy(grouphead.grname, group);
lib/libc/gen/getnetgrent.c
274
_listmatch(const char *list, const char *group, int len)
lib/libc/gen/getnetgrent.c
278
int glen = strlen(group);
lib/libc/gen/getnetgrent.c
288
if (strncmp(cptr, group, glen) == 0 && glen == (ptr - cptr))
lib/libc/gen/getnetgrent.c
299
const char *dom, const char *group)
lib/libc/gen/getnetgrent.c
324
rv = _listmatch(result, group, resultlen);
lib/libc/gen/getnetgrent.c
343
innetgr(const char *group, const char *host, const char *user, const char *dom)
lib/libc/gen/getnetgrent.c
348
if (group == NULL || !strlen(group))
lib/libc/gen/getnetgrent.c
354
setnetgrent(group);
lib/libc/gen/getnetgrent.c
386
host?host:user, dom, group);
lib/libc/gen/getnetgrent.c
393
setnetgrent(group);
lib/libc/gen/getnetgrent.c
411
parse_netgrp(const char *group)
lib/libc/gen/getnetgrent.c
426
if (!strcmp(group, lp->l_groupname))
lib/libc/gen/getnetgrent.c
431
(lp = read_for_group(group)) == NULL)
lib/libc/gen/getnetgrent.c
521
read_for_group(const char *group)
lib/libc/gen/getnetgrent.c
537
if (yp_match(_netgr_yp_domain, "netgroup", group,
lib/libc/gen/getnetgrent.c
538
strlen(group), &result, &resultlen)) {
lib/libc/gen/getnetgrent.c
547
snprintf(line, LINSIZ, "%s %s", group, result);
lib/libc/gen/getnetgrent.c
617
if (!strcmp(lp->l_groupname, group))
lib/libc/gen/pwcache.c
119
static struct group * (*_pwcache_getgrnam)(const char *) = getgrnam;
lib/libc/gen/pwcache.c
120
static struct group * (*_pwcache_getgrgid)(gid_t) = getgrgid;
lib/libc/gen/pwcache.c
328
struct group *gr;
lib/libc/gen/pwcache.c
459
struct group *gr;
lib/libc/gen/pwcache.c
556
struct group * (*a_getgrnam)(const char *),
lib/libc/gen/pwcache.c
557
struct group * (*a_getgrgid)(gid_t))
lib/libc/net/nss_compat.c
101
grp = va_arg(ap, struct group *);
lib/libc/net/nss_compat.c
108
*(struct group **)retval = grp;
lib/libc/net/nss_compat.c
116
int (*fn)(gid_t, struct group *, char *, size_t, int *);
lib/libc/net/nss_compat.c
118
struct group *grp;
lib/libc/net/nss_compat.c
126
grp = va_arg(ap, struct group *);
lib/libc/net/nss_compat.c
133
*(struct group **)retval = grp;
lib/libc/net/nss_compat.c
141
int (*fn)(struct group *, char *, size_t, int *);
lib/libc/net/nss_compat.c
142
struct group *grp;
lib/libc/net/nss_compat.c
148
if (CHECK_TERMINATOR(group))
lib/libc/net/nss_compat.c
151
grp = va_arg(ap, struct group *);
lib/libc/net/nss_compat.c
158
*(struct group **)retval = grp;
lib/libc/net/nss_compat.c
160
SET_TERMINATOR(group, &terminator);
lib/libc/net/nss_compat.c
169
SET_TERMINATOR(group, NULL);
lib/libc/net/nss_compat.c
179
SET_TERMINATOR(group, NULL);
lib/libc/net/nss_compat.c
47
struct group;
lib/libc/net/nss_compat.c
80
DECLARE_TERMINATOR(group);
lib/libc/net/nss_compat.c
91
int (*fn)(const char *, struct group *, char *, size_t, int *);
lib/libc/net/nss_compat.c
93
struct group *grp;
lib/libc/rpc/netnamer.c
154
struct group *grp;
lib/libc/stdio/xprintf.c
351
pi->group = 1;
lib/libc/stdio/xprintf_int.c
277
if (pi->group) {
lib/libipfw3/layer4/ipfw3_layer4.c
102
struct group *grp;
lib/libipfw3/layer4/ipfw3_layer4.c
187
struct group *grp = getgrgid(cmd32->d[0]);
lib/libpam/modules/pam_ftpusers/pam_ftpusers.c
59
struct group *grp;
lib/libpam/modules/pam_group/pam_group.c
61
const char *group, *user;
lib/libpam/modules/pam_group/pam_group.c
65
struct group *grp;
lib/libpam/modules/pam_group/pam_group.c
94
if ((group = openpam_get_option(pamh, "group")) == NULL)
lib/libpam/modules/pam_group/pam_group.c
95
group = "wheel";
lib/libpam/modules/pam_group/pam_group.c
96
if ((grp = getgrnam(group)) == NULL || grp->gr_mem == NULL)
lib/libpam/modules/pam_login_access/login_access.c
140
netgroup_match(const char *group, const char *machine, const char *user)
lib/libpam/modules/pam_login_access/login_access.c
159
if (innetgr(group, machine, user, domain) == 1)
lib/libpam/modules/pam_login_access/login_access.c
169
struct group *group;
lib/libpam/modules/pam_login_access/login_access.c
182
} else if ((group = getgrnam(tok)) != NULL) {/* try group membership */
lib/libpam/modules/pam_login_access/login_access.c
183
for (i = 0; group->gr_mem[i]; i++)
lib/libpam/modules/pam_login_access/login_access.c
184
if (strcasecmp(string, group->gr_mem[i]) == 0)
lib/libposix1e/acl_support.c
242
struct group *g;
lib/libposix1e/acl_support.c
291
struct group *g;
lib/libssh/openbsd-compat/bsd-misc.c
168
fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag)
lib/libssh/openbsd-compat/bsd-misc.c
177
return chown(path, owner, group);
lib/libssh/openbsd-compat/bsd-misc.c
185
ret = fchown(fd, owner, group);
lib/libutil/gr_util.c
164
gr_copy(int ffd, int tfd, const struct group *gr, struct group *old_gr)
lib/libutil/gr_util.c
167
struct group *fgr;
lib/libutil/gr_util.c
168
const struct group *sgr;
lib/libutil/gr_util.c
344
gr_equal(const struct group *gr1, const struct group *gr2)
lib/libutil/gr_util.c
395
gr_make(const struct group *gr)
lib/libutil/gr_util.c
434
struct group *
lib/libutil/gr_util.c
435
gr_dup(const struct group *gr)
lib/libutil/gr_util.c
442
struct group *
lib/libutil/gr_util.c
443
gr_add(const struct group *gr, const char *newmember)
lib/libutil/gr_util.c
482
static struct group *
lib/libutil/gr_util.c
483
grcopy(const struct group *gr, char *dst, const char *name, int ndx)
lib/libutil/gr_util.c
486
struct group *newgr;
lib/libutil/gr_util.c
488
newgr = (struct group *)(void *)dst; /* avoid alignment warning */
lib/libutil/gr_util.c
51
static size_t grmemlen(const struct group *, const char *, int *);
lib/libutil/gr_util.c
52
static struct group *grcopy(const struct group *gr, char *mem, const char *, int ndx);
lib/libutil/gr_util.c
530
grmemlen(const struct group *gr, const char *name, int *num_mem)
lib/libutil/gr_util.c
566
__gr_scan(char *line, struct group *gr)
lib/libutil/gr_util.c
58
gr_init(const char *dir, const char *group)
lib/libutil/gr_util.c
611
struct group *
lib/libutil/gr_util.c
614
struct group gr;
lib/libutil/gr_util.c
616
struct group *new_gr;
lib/libutil/gr_util.c
71
if (group == NULL) {
lib/libutil/gr_util.c
80
if (strlen(group) >= sizeof(group_file)) {
lib/libutil/gr_util.c
84
strcpy(group_file, group);
lib/libutil/libutil.h
130
int gr_copy(int __ffd, int _tfd, const struct group *_gr,
lib/libutil/libutil.h
131
struct group *_old_gr);
lib/libutil/libutil.h
132
struct group *
lib/libutil/libutil.h
133
gr_dup(const struct group *_gr);
lib/libutil/libutil.h
134
struct group *
lib/libutil/libutil.h
135
gr_add(const struct group *_gr, const char *_newmember);
lib/libutil/libutil.h
136
int gr_equal(const struct group *_gr1, const struct group *_gr2);
lib/libutil/libutil.h
140
char *gr_make(const struct group *_gr);
lib/libutil/libutil.h
142
struct group *
libexec/dma/dma-mbox-create.c
90
struct group *gr;
libexec/ftpd/ftpd.c
1086
struct group *grp;
libexec/mknetid/mknetid.c
104
struct group *gr;
libexec/mknetid/mknetid.c
83
extern struct group *_getgrent ( void );
libexec/mknetid/parse_group.c
45
struct group *_getgrent(void);
libexec/mknetid/parse_group.c
50
static struct group _gr_group;
libexec/mknetid/parse_group.c
59
struct group *
libexec/revnetgroup/parse_netgroup.c
100
strcmp(group, grouphead.grname)) {
libexec/revnetgroup/parse_netgroup.c
102
if (parse_netgrp(group))
libexec/revnetgroup/parse_netgroup.c
106
malloc(strlen(group) + 1);
libexec/revnetgroup/parse_netgroup.c
107
strcpy(grouphead.grname, group);
libexec/revnetgroup/parse_netgroup.c
170
parse_netgrp(char *group)
libexec/revnetgroup/parse_netgroup.c
185
if (!strcmp(group, lp->l_groupname))
libexec/revnetgroup/parse_netgroup.c
190
(lp = read_for_group(group)) == NULL)
libexec/revnetgroup/parse_netgroup.c
280
read_for_group(char *group)
libexec/revnetgroup/parse_netgroup.c
289
data = lookup (gtable, group);
libexec/revnetgroup/parse_netgroup.c
290
sprintf(line, "%s %s", group, data);
libexec/revnetgroup/parse_netgroup.c
352
if (!strcmp(lp->l_groupname, group))
libexec/revnetgroup/parse_netgroup.c
92
__setnetgrent(char *group)
libexec/revnetgroup/parse_netgroup.c
96
if (group == NULL || !strlen(group))
sbin/devfsctl/devfsctl.c
249
struct group *grp;
sbin/devfsctl/devfsctl.c
375
struct group *grp;
sbin/fsdb/fsdb.c
784
struct group *grp;
sbin/fsdb/fsdbutil.c
87
struct group *grp;
sbin/ipfw/ipfw2.c
1205
struct group *grp = getgrgid(cmd32->d[0]);
sbin/ipfw/ipfw2.c
3206
struct group *grp;
sbin/mount_cd9660/mount_cd9660.c
284
struct group *gr;
sbin/mount_hpfs/mount_hpfs.c
159
struct group *gr;
sbin/mount_msdos/mount_msdos.c
220
struct group *gr;
sbin/mount_ntfs/mount_ntfs.c
170
struct group *gr;
sbin/mount_tmpfs/mount_tmpfs.c
256
struct group *gr;
sbin/mountd/mountd.c
2301
struct group *gr;
sbin/quotacheck/quotacheck.c
121
struct group *gr;
sbin/quotacheck/quotacheck.c
407
struct group *gr;
sbin/svc/svc.c
69
struct group *grent;
sbin/svc/svc.h
97
struct group grent;
sbin/vquota/vquota.c
342
struct group *gr;
sbin/vquota/vquota.c
763
struct group *grp;
sys/bus/cam/scsi/scsi_sg.c
983
int group;
sys/bus/cam/scsi/scsi_sg.c
985
group = (cmd >> 5) & 0x7;
sys/bus/cam/scsi/scsi_sg.c
986
return (len[group]);
sys/bus/u4b/wlan/if_mtw.c
3620
mtw_select_chan_group(struct mtw_softc *sc, int group)
sys/bus/u4b/wlan/if_mtw.c
3629
tmp |= (group == 0) ? MTW_TX_BAND_SEL_2G : MTW_TX_BAND_SEL_5G;
sys/bus/u4b/wlan/if_mtw.c
3739
u_int chan, group;
sys/bus/u4b/wlan/if_mtw.c
3747
group = 0;
sys/bus/u4b/wlan/if_mtw.c
3749
group = 1;
sys/bus/u4b/wlan/if_mtw.c
3751
group = 2;
sys/bus/u4b/wlan/if_mtw.c
3753
group = 3;
sys/bus/u4b/wlan/if_mtw.c
3755
if (group != sc->sc_chan_group || !sc->sc_bw_calibrated)
sys/bus/u4b/wlan/if_mtw.c
3756
mtw_select_chan_group(sc, group);
sys/bus/u4b/wlan/if_mtw.c
3758
sc->sc_chan_group = group;
sys/bus/u4b/wlan/if_rum.c
3012
int group;
sys/bus/u4b/wlan/if_rum.c
3019
group = k >= &vap->iv_nw_keys[0] && k < &vap->iv_nw_keys[IEEE80211_WEP_NKID];
sys/bus/u4b/wlan/if_rum.c
3022
group ? rum_group_key_set_cb : rum_pair_key_set_cb);
sys/bus/u4b/wlan/if_rum.c
3029
int group;
sys/bus/u4b/wlan/if_rum.c
3036
group = k >= &vap->iv_nw_keys[0] && k < &vap->iv_nw_keys[IEEE80211_WEP_NKID];
sys/bus/u4b/wlan/if_rum.c
3039
group ? rum_group_key_del_cb : rum_pair_key_del_cb);
sys/bus/u4b/wlan/if_run.c
3902
run_select_chan_group(struct run_softc *sc, int group)
sys/bus/u4b/wlan/if_run.c
3907
run_bbp_write(sc, 62, 0x37 - sc->lna[group]);
sys/bus/u4b/wlan/if_run.c
3908
run_bbp_write(sc, 63, 0x37 - sc->lna[group]);
sys/bus/u4b/wlan/if_run.c
3909
run_bbp_write(sc, 64, 0x37 - sc->lna[group]);
sys/bus/u4b/wlan/if_run.c
3915
run_bbp_write(sc, 83, (group == 0) ? 0x8a : 0x9a);
sys/bus/u4b/wlan/if_run.c
3918
if (group == 0) {
sys/bus/u4b/wlan/if_run.c
3985
tmp |= (group == 0) ? RT2860_5G_BAND_SEL_N : RT2860_5G_BAND_SEL_P;
sys/bus/u4b/wlan/if_run.c
3994
if (group == 0) { /* 2GHz */
sys/bus/u4b/wlan/if_run.c
4022
if (group == 0)
sys/bus/u4b/wlan/if_run.c
4029
if (group == 0) { /* 2GHz band */
sys/bus/u4b/wlan/if_run.c
4036
agc = 0x24 + sc->lna[group] * 2;
sys/bus/u4b/wlan/if_run.c
4038
agc = 0x22 + (sc->lna[group] * 5) / 3;
sys/bus/u4b/wlan/if_run.c
4040
agc = 0x32 + (sc->lna[group] * 5) / 3;
sys/bus/u4b/wlan/if_run.c
4769
u_int chan, group;
sys/bus/u4b/wlan/if_run.c
4790
group = 0;
sys/bus/u4b/wlan/if_run.c
4792
group = 1;
sys/bus/u4b/wlan/if_run.c
4794
group = 2;
sys/bus/u4b/wlan/if_run.c
4796
group = 3;
sys/bus/u4b/wlan/if_run.c
4799
run_select_chan_group(sc, group);
sys/bus/u4b/wlan/if_urtwn.c
4535
int ridx, chan, group;
sys/bus/u4b/wlan/if_urtwn.c
4540
group = 0;
sys/bus/u4b/wlan/if_urtwn.c
4542
group = 1;
sys/bus/u4b/wlan/if_urtwn.c
4544
group = 2;
sys/bus/u4b/wlan/if_urtwn.c
4565
max = rom->ht40_max_pwr[group];
sys/bus/u4b/wlan/if_urtwn.c
4567
max = rom->ht20_max_pwr[group];
sys/bus/u4b/wlan/if_urtwn.c
4573
power[ridx] = base->pwr[group][ridx];
sys/bus/u4b/wlan/if_urtwn.c
4579
cckpow = rom->cck_tx_pwr[chain][group];
sys/bus/u4b/wlan/if_urtwn.c
4586
htpow = rom->ht40_1s_tx_pwr[chain][group];
sys/bus/u4b/wlan/if_urtwn.c
4589
diff = rom->ht40_2s_tx_pwr_diff[group];
sys/bus/u4b/wlan/if_urtwn.c
4595
diff = rom->ofdm_tx_pwr_diff[group];
sys/bus/u4b/wlan/if_urtwn.c
4606
diff = rom->ht20_tx_pwr_diff[group];
sys/bus/u4b/wlan/if_urtwn.c
4634
int ridx, chan, group;
sys/bus/u4b/wlan/if_urtwn.c
4639
group = 0;
sys/bus/u4b/wlan/if_urtwn.c
4641
group = 1;
sys/bus/u4b/wlan/if_urtwn.c
4643
group = 2;
sys/bus/u4b/wlan/if_urtwn.c
4645
group = 3;
sys/bus/u4b/wlan/if_urtwn.c
4647
group = 4;
sys/bus/u4b/wlan/if_urtwn.c
4649
group = 5;
sys/bus/u4b/wlan/if_urtwn.c
4664
power[ridx] = base->pwr[group][ridx];
sys/bus/u4b/wlan/if_urtwn.c
4670
cckpow = rom->cck_tx_pwr[group];
sys/bus/u4b/wlan/if_urtwn.c
4677
htpow = rom->ht40_tx_pwr[group];
sys/dev/disk/mpt/mpt.h
940
int group = cdb0 >> 5;
sys/dev/disk/mpt/mpt.h
941
switch (group) {
sys/dev/drm/amd/include/kgd_pp_interface.h
190
#define PP_CG_MSG_ID(group, block, support, state) \
sys/dev/drm/amd/include/kgd_pp_interface.h
191
((group) << PP_GROUP_SHIFT | (block) << PP_BLOCK_SHIFT | \
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
740
uint32_t rd, group;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
769
group = ((freq - 5170) / 10);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
771
if (group > 11) {
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
773
group--;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
777
group = group / 3;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
778
pRD = &ee->ee_tpc[group];
sys/dev/netif/iwm/if_iwmreg.h
2637
uint8_t group;
sys/dev/netif/iwn/if_iwnreg.h
1170
uint8_t group;
sys/dev/netif/iwn/if_iwnreg.h
1177
uint8_t group;
sys/dev/netif/iwn/if_iwnreg.h
1187
uint8_t group;
sys/dev/netif/iwn/if_iwnreg.h
1198
uint8_t group;
sys/dev/netif/iwn/if_iwnreg.h
1209
uint8_t group;
sys/dev/netif/ral/rt2860.c
2405
rt2860_select_chan_group(struct rt2860_softc *sc, int group)
sys/dev/netif/ral/rt2860.c
2410
rt2860_mcu_bbp_write(sc, 62, 0x37 - sc->lna[group]);
sys/dev/netif/ral/rt2860.c
2411
rt2860_mcu_bbp_write(sc, 63, 0x37 - sc->lna[group]);
sys/dev/netif/ral/rt2860.c
2412
rt2860_mcu_bbp_write(sc, 64, 0x37 - sc->lna[group]);
sys/dev/netif/ral/rt2860.c
2415
if (group == 0) {
sys/dev/netif/ral/rt2860.c
2435
tmp |= (group == 0) ? RT2860_5G_BAND_SEL_N : RT2860_5G_BAND_SEL_P;
sys/dev/netif/ral/rt2860.c
2444
if (group == 0) { /* 2GHz */
sys/dev/netif/ral/rt2860.c
2463
if (group == 0)
sys/dev/netif/ral/rt2860.c
2467
if (group == 0)
sys/dev/netif/ral/rt2860.c
2475
if (group == 0) { /* 2GHz band */
sys/dev/netif/ral/rt2860.c
2481
agc = 0x32 + (sc->lna[group] * 5) / 3;
sys/dev/netif/ral/rt2860.c
4303
u_int chan, group;
sys/dev/netif/ral/rt2860.c
4318
group = 0;
sys/dev/netif/ral/rt2860.c
4320
group = 1;
sys/dev/netif/ral/rt2860.c
4322
group = 2;
sys/dev/netif/ral/rt2860.c
4324
group = 3;
sys/dev/netif/ral/rt2860.c
4328
rt2860_select_chan_group(sc, group);
sys/dev/netif/wpi/if_wpi.c
1576
struct wpi_power_group *group = &sc->groups[n];
sys/dev/netif/wpi/if_wpi.c
1589
group->chan = rgroup.chan;
sys/dev/netif/wpi/if_wpi.c
1590
group->maxpwr = rgroup.maxpwr;
sys/dev/netif/wpi/if_wpi.c
1592
group->temp = (int16_t)le16toh(rgroup.temp);
sys/dev/netif/wpi/if_wpi.c
1595
"power group %d: chan=%d maxpwr=%d temp=%d\n", n, group->chan,
sys/dev/netif/wpi/if_wpi.c
1596
group->maxpwr, group->temp);
sys/dev/netif/wpi/if_wpi.c
1599
group->samples[i].index = rgroup.samples[i].index;
sys/dev/netif/wpi/if_wpi.c
1600
group->samples[i].power = rgroup.samples[i].power;
sys/dev/netif/wpi/if_wpi.c
1604
group->samples[i].index, group->samples[i].power);
sys/dev/netif/wpi/if_wpi.c
3726
struct wpi_power_group *group;
sys/dev/netif/wpi/if_wpi.c
3737
for (group = &sc->groups[1]; group < &sc->groups[4]; group++)
sys/dev/netif/wpi/if_wpi.c
3738
if (chan <= group->chan)
sys/dev/netif/wpi/if_wpi.c
3741
group = &sc->groups[0];
sys/dev/netif/wpi/if_wpi.c
3750
idx = wpi_get_power_index(sc, group, chan, is_chan_5ghz, i);
sys/dev/netif/wpi/if_wpi.c
3774
wpi_get_power_index(struct wpi_softc *sc, struct wpi_power_group *group,
sys/dev/netif/wpi/if_wpi.c
3789
pwr = group->maxpwr / 2;
sys/dev/netif/wpi/if_wpi.c
3808
for (sample = group->samples; sample < &group->samples[3]; sample++)
sys/dev/netif/wpi/if_wpi.c
3820
idx -= (sc->temp - group->temp) * 11 / 100;
sys/dev/raid/mly/mly.c
2719
mly_printf(sc, " group %d\n", io->param.getgroupconfinfo.group);
sys/dev/raid/mly/mlyreg.h
966
u_int16_t group;
sys/dev/sound/pcm/dsp.c
103
static int dsp_oss_syncgroup(struct pcm_channel *wrch, struct pcm_channel *rdch, oss_syncgroup *group);
sys/dev/sound/pcm/dsp.c
2833
dsp_oss_syncgroup(struct pcm_channel *wrch, struct pcm_channel *rdch, oss_syncgroup *group)
sys/dev/sound/pcm/dsp.c
2876
if (((wrch == NULL) && (group->mode & PCM_ENABLE_OUTPUT)) ||
sys/dev/sound/pcm/dsp.c
2877
((rdch == NULL) && (group->mode & PCM_ENABLE_INPUT))) {
sys/dev/sound/pcm/dsp.c
2886
if (group->id == 0) {
sys/dev/sound/pcm/dsp.c
2892
group->id = sg->id;
sys/dev/sound/pcm/dsp.c
2898
if (sg->id == group->id)
sys/dev/sound/pcm/dsp.c
2913
if (group->mode & PCM_ENABLE_INPUT) {
sys/dev/sound/pcm/dsp.c
2929
if (group->mode & PCM_ENABLE_OUTPUT) {
sys/dev/virtual/amazon/ena/ena-com/ena_admin_defs.h
864
uint16_t group;
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
1928
u16 group)
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
1932
if ((group < ENA_MAX_HANDLERS) && aenq_handlers->handlers[group])
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
1933
return aenq_handlers->handlers[group];
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
1963
aenq_common->group,
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
1969
aenq_common->group);
sys/dev/virtual/amazon/ena/ena-com/ena_defs/ena_admin_defs.h
936
uint16_t group;
sys/net/pf/pf_if.c
344
pfi_group_change(const char *group)
sys/net/pf/pf_if.c
350
if ((kif = pfi_kif_get(group)) == NULL)
sys/netproto/smb/smb_conn.c
151
if (vcspec->group != SMBM_ANY_GROUP) {
sys/netproto/smb/smb_conn.c
152
if (vcp->vc_grp != vcspec->group)
sys/netproto/smb/smb_conn.c
423
gid_t gid = vcspec->group;
sys/netproto/smb/smb_conn.c
619
if (dp->group != SMBM_ANY_GROUP) {
sys/netproto/smb/smb_conn.c
620
if (ssp->ss_grp != dp->group)
sys/netproto/smb/smb_conn.c
741
gid_t gid = shspec->group;
sys/netproto/smb/smb_conn.h
332
gid_t group;
sys/netproto/smb/smb_conn.h
349
gid_t group;
sys/netproto/smb/smb_usr.c
118
spec->group = dp->ioc_group;
sys/netproto/smb/smb_usr.c
91
spec->group = dp->ioc_group;
sys/sys/ioccom.h
54
#define _IOC(inout,group,num,len) ((unsigned long) \
sys/sys/ioccom.h
55
((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num)))
sys/vfs/isofs/cd9660/cd9660_node.c
287
inop->inode.iso_gid = isonum_723(ap->group); /* what about 0? */
sys/vfs/isofs/cd9660/iso.h
198
u_char group [ISODCL (5, 8)]; /* 723 */
test/interbench/hackbench.c
155
total_children += group(readyfds[1], wakefds[0]);
test/stress/fsstress/fsstress.c
862
lchown_path(pathname_t *name, uid_t owner, gid_t group)
test/stress/fsstress/fsstress.c
868
rval = lchown(name->path, owner, group);
test/stress/fsstress/fsstress.c
873
rval = lchown_path(&newname, owner, group);
usr.bin/chpass/field.c
122
struct group *gr;
usr.bin/find/function.c
936
struct group *g;
usr.bin/getent/getent.c
231
struct group *gr;
usr.bin/getent/getent.c
67
static int group(int, char *[]);
usr.bin/getent/getent.c
88
{ "group", group, },
usr.bin/id/id.c
144
group(pw, nflag);
usr.bin/id/id.c
168
struct group *gr;
usr.bin/id/id.c
175
group(pw, 1);
usr.bin/id/id.c
201
group(NULL, 1);
usr.bin/id/id.c
208
struct group *gr;
usr.bin/id/id.c
249
struct group *gr;
usr.bin/id/id.c
277
struct group *gr;
usr.bin/id/id.c
47
static void group(struct passwd *, int);
usr.bin/id/id.c
58
struct group *gr;
usr.bin/ipcs/ipcs.c
526
struct group *grp;
usr.bin/login/login.c
151
struct group *gr;
usr.bin/mail/cmd3.c
436
struct group *gp;
usr.bin/mail/cmdtab.c
48
{ "alias", group, M|RAWLIST, 0, 1000 },
usr.bin/mail/cmdtab.c
78
{ "group", group, M|RAWLIST, 0, 1000 },
usr.bin/mail/def.h
209
struct group *ge_link; /* Next person in this group */
usr.bin/mail/def.h
216
struct group *g_list; /* Users in group. */
usr.bin/mail/extern.h
134
int group(char **);
usr.bin/mail/names.c
486
struct group *gp;
usr.bin/mail/vars.c
150
struct group *gp;
usr.bin/newgrp/newgrp.c
154
struct group *grp;
usr.bin/pkill/pkill.c
673
struct group *gr;
usr.bin/quota/quota.c
226
struct group *grp = getgrgid(gid);
usr.bin/quota/quota.c
260
struct group *grp = getgrnam(name);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
285
struct group *gr = NULL;
usr.bin/stat/stat.c
628
struct group *gr;
usr.bin/tip/log.c
43
logent(char *group, char *num, char *acu, char *message)
usr.bin/tip/log.c
65
user, timestamp, group, "", acu, message);
usr.bin/wall/wall.c
78
struct group *grp;
usr.bin/xinstall/xinstall.c
117
group = NULL;
usr.bin/xinstall/xinstall.c
149
group = optarg;
usr.bin/xinstall/xinstall.c
245
if (group != NULL && !dounpriv) {
usr.bin/xinstall/xinstall.c
246
if (gid_from_group(group, &gid) == -1) {
usr.bin/xinstall/xinstall.c
248
if (!parseid(group, &id))
usr.bin/xinstall/xinstall.c
249
errx(1, "unknown group %s", group);
usr.bin/xinstall/xinstall.c
494
ogroup = group;
usr.bin/xinstall/xinstall.c
496
group = NULL;
usr.bin/xinstall/xinstall.c
502
group = ogroup;
usr.bin/xinstall/xinstall.c
84
static const char *group, *owner;
usr.sbin/chown/chown.c
225
struct group *gr;
usr.sbin/chroot/chroot.c
104
if ((gp = getgrnam(group)) != NULL)
usr.sbin/chroot/chroot.c
107
errx(1, "no such group `%s'", group);
usr.sbin/chroot/chroot.c
151
if (group && setgid(gid) == -1)
usr.sbin/chroot/chroot.c
53
struct group *gp;
usr.sbin/chroot/chroot.c
58
const char *group; /* group to switch to ... */
usr.sbin/chroot/chroot.c
65
group = NULL;
usr.sbin/chroot/chroot.c
78
group = optarg;
usr.sbin/chroot/chroot.c
79
if (*group == '\0')
usr.sbin/chroot/chroot.c
97
if (group != NULL) {
usr.sbin/chroot/chroot.c
98
if (isdigit(*group)) {
usr.sbin/chroot/chroot.c
99
gid = (gid_t)strtoul(group, &endp, 0);
usr.sbin/cron/lib/entry.c
262
struct group *grp;
usr.sbin/edquota/edquota.c
292
struct group *gr;
usr.sbin/inetd/inetd.c
1456
char *user, *group, *perm;
usr.sbin/inetd/inetd.c
1458
struct group *gr;
usr.sbin/inetd/inetd.c
1460
if ((group = strchr(user, ':')) == NULL) {
usr.sbin/inetd/inetd.c
1464
*group++ = '\0';
usr.sbin/inetd/inetd.c
1465
if ((perm = strchr(group, ':')) == NULL) {
usr.sbin/inetd/inetd.c
1466
syslog(LOG_ERR, "no mode after group '%s'", group);
usr.sbin/inetd/inetd.c
1475
if ((gr = getgrnam(group)) == NULL) {
usr.sbin/inetd/inetd.c
1476
syslog(LOG_ERR, "no such user '%s'", group);
usr.sbin/inetd/inetd.c
293
struct group *grp;
usr.sbin/installer/dfuibe_installer/fn_configure.c
102
const char *shell, *uid, *group, *groups;
usr.sbin/installer/dfuibe_installer/fn_configure.c
176
group = dfui_dataset_get_value(new_ds, "group");
usr.sbin/installer/dfuibe_installer/fn_configure.c
190
!assert_clean(a->c, _("Login Group"), group, USERNAME_NOT_ALLOWED) ||
usr.sbin/installer/dfuibe_installer/fn_configure.c
209
strlen(group) == 0 ? "" : "-g ", group,
usr.sbin/lpr/chkprintcap/chkprintcap.c
279
struct group *gr;
usr.sbin/lpr/lpc/lpc.c
342
static struct group *gptr=NULL;
usr.sbin/lpr/lpr/lpr.c
119
struct group *gptr;
usr.sbin/mtree/getid.c
144
static struct group *
usr.sbin/mtree/getid.c
157
static struct group *
usr.sbin/mtree/getid.c
76
static struct group * gi_getgrnam(const char *);
usr.sbin/mtree/getid.c
77
static struct group * gi_getgrgid(gid_t);
usr.sbin/mtree/getid.c
96
static struct group _gr_group;
usr.sbin/mtree/specspec.c
51
struct group *gr;
usr.sbin/newsyslog/newsyslog.c
1077
char *cp, *errline, *group;
usr.sbin/newsyslog/newsyslog.c
1080
struct group *grp;
usr.sbin/newsyslog/newsyslog.c
1179
if ((group = strchr(q, ':')) != NULL ||
usr.sbin/newsyslog/newsyslog.c
1180
(group = strrchr(q, '.')) != NULL) {
usr.sbin/newsyslog/newsyslog.c
1181
*group++ = '\0';
usr.sbin/newsyslog/newsyslog.c
1194
q = group;
usr.sbin/nscd/agents/group.c
112
memcpy(buffer, &new_grp, sizeof(struct group));
usr.sbin/nscd/agents/group.c
126
struct group *result;
usr.sbin/nscd/agents/group.c
197
struct group *result;
usr.sbin/nscd/agents/group.c
39
static int group_marshal_func(struct group *, char *, size_t *);
usr.sbin/nscd/agents/group.c
46
group_marshal_func(struct group *grp, char *buffer, size_t *buffer_size)
usr.sbin/nscd/agents/group.c
48
struct group new_grp;
usr.sbin/nscd/agents/group.c
53
desired_size = ALIGNBYTES + sizeof(struct group) + sizeof(char *);
usr.sbin/nscd/agents/group.c
76
memcpy(&new_grp, grp, sizeof(struct group));
usr.sbin/nscd/agents/group.c
80
p = buffer + sizeof(struct group) + sizeof(char *);
usr.sbin/nscd/agents/group.c
81
memcpy(buffer + sizeof(struct group), &p, sizeof(char *));
usr.sbin/pfctl/parse.y
3237
struct group *grp;
usr.sbin/pw/edgroup.c
120
struct group grp;
usr.sbin/pw/grupd.c
119
fmtgrent(char **buf, int * buflen, struct group * grp)
usr.sbin/pw/grupd.c
126
gr_update(struct group * grp, char const * group, int mode)
usr.sbin/pw/grupd.c
134
l = snprintf(pfx, sizeof pfx, "%s:", group);
usr.sbin/pw/grupd.c
153
addgrent(struct group * grp)
usr.sbin/pw/grupd.c
159
chggrent(char const * login, struct group * grp)
usr.sbin/pw/grupd.c
165
delgrent(struct group * grp)
usr.sbin/pw/grupd.c
77
fmtgrentry(char **buf, int * buflen, struct group * grp, int type)
usr.sbin/pw/pw.h
121
int addgrent(struct group * grp);
usr.sbin/pw/pw.h
122
int delgrent(struct group * grp);
usr.sbin/pw/pw.h
123
int chggrent(char const * login, struct group * grp);
usr.sbin/pw/pw_group.c
313
struct group *grp)
usr.sbin/pw/pw_group.c
351
struct group *grp;
usr.sbin/pw/pw_group.c
41
struct carg *arg, struct group *grp);
usr.sbin/pw/pw_group.c
412
print_group(struct group * grp, int pretty)
usr.sbin/pw/pw_group.c
42
static int print_group(struct group * grp, int pretty);
usr.sbin/pw/pw_group.c
64
struct group *grp = NULL;
usr.sbin/pw/pw_group.c
68
static struct group fakegroup =
usr.sbin/pw/pw_user.c
101
struct group *grp;
usr.sbin/pw/pw_user.c
1089
struct group *grp = GETGRGID(pwd->pw_gid);
usr.sbin/pw/pw_user.c
848
struct group *grp;
usr.sbin/pw/pw_vpw.c
194
static struct group *
usr.sbin/pw/pw_vpw.c
197
struct group * gr = NULL;
usr.sbin/pw/pw_vpw.c
210
static struct group grp;
usr.sbin/pw/pw_vpw.c
284
struct group *
usr.sbin/pw/pw_vpw.c
291
struct group *
usr.sbin/pw/pw_vpw.c
297
struct group *
usr.sbin/pw/pwupd.h
119
int addgrent(struct group * grp);
usr.sbin/pw/pwupd.h
120
int delgrent(struct group * grp);
usr.sbin/pw/pwupd.h
121
int chggrent(char const * name, struct group * grp);
usr.sbin/pw/pwupd.h
122
int fmtgrent(char **buf, int * buflen, struct group * grp);
usr.sbin/pw/pwupd.h
123
int fmtgrentry(char **buf, int * buflen, struct group * grp, int type);
usr.sbin/pw/pwupd.h
138
struct group * vgetgrent(void);
usr.sbin/pw/pwupd.h
139
struct group * vgetgrgid(gid_t gid);
usr.sbin/pw/pwupd.h
140
struct group * vgetgrnam(const char * nam);
usr.sbin/pw/pwupd.h
141
struct group * vgetgrent(void);
usr.sbin/pw/pwupd.h
68
struct group * (*_getgrent)(void);
usr.sbin/pw/pwupd.h
69
struct group * (*_getgrgid)(gid_t gid);
usr.sbin/pw/pwupd.h
70
struct group * (*_getgrnam)(const char * nam);
usr.sbin/repquota/repquota.c
96
struct group *gr;
usr.sbin/rwhod/rwhod.c
403
struct group *gr;
usr.sbin/sdpd/main.c
138
if ((user != NULL || group != NULL) && drop_root(user, group) < 0)
usr.sbin/sdpd/main.c
157
drop_root(char const *user, char const *group)
usr.sbin/sdpd/main.c
184
if (group != NULL) {
usr.sbin/sdpd/main.c
185
gid = strtol(group, &ep, 10);
usr.sbin/sdpd/main.c
187
struct group *grp = getgrnam(group);
usr.sbin/sdpd/main.c
191
"group %s", group);
usr.sbin/sdpd/main.c
201
group, strerror(errno), errno);
usr.sbin/sdpd/main.c
57
static int32_t drop_root (char const *user, char const *group);
usr.sbin/sdpd/main.c
72
char const *user = "_sdpd", *group = "_sdpd";
usr.sbin/sdpd/main.c
92
group = optarg;
usr.sbin/sdpd/server.c
646
struct group *grp;
usr.sbin/vknetd/vknetd.c
333
struct group *grp;
usr.sbin/zic/zic.c
2711
struct group *gr;