Lines Matching refs:group
24 int sae_set_group(struct sae_data *sae, int group) in sae_set_group() argument
34 tmp->ec = crypto_ec_init(group); in sae_set_group()
37 group); in sae_set_group()
38 sae->group = group; in sae_set_group()
47 tmp->dh = dh_groups_get(group); in sae_set_group()
50 group); in sae_set_group()
51 sae->group = group; in sae_set_group()
80 "SAE: Group %d not supported by the crypto library", group); in sae_set_group()
335 k = dragonfly_min_pwe_loop_iter(sae->group); in sae_derive_pwe_ecc()
478 k = dragonfly_min_pwe_loop_iter(sae->group); in sae_derive_pwe_ffc()
548 static int sswu_curve_param(int group, int *z) in sswu_curve_param() argument
550 switch (group) { in sswu_curve_param()
573 static struct crypto_ec_point * sswu(struct crypto_ec *ec, int group, in sswu() argument
590 if (sswu_curve_param(group, &z_int) < 0) in sswu()
818 sae_derive_pt_ecc(struct crypto_ec *ec, int group, in sae_derive_pt_ecc() argument
861 p1 = sswu(ec, group, bn); in sae_derive_pt_ecc()
884 p2 = sswu(ec, group, bn); in sae_derive_pt_ecc()
918 sae_derive_pt_ffc(const struct dh_group *dh, int group, in sae_derive_pt_ffc() argument
996 sae_derive_pt_group(int group, const u8 *ssid, size_t ssid_len, in sae_derive_pt_group() argument
1002 wpa_printf(MSG_DEBUG, "SAE: Derive PT - group %d", group); in sae_derive_pt_group()
1015 pt->group = group; in sae_derive_pt_group()
1016 pt->ec = crypto_ec_init(group); in sae_derive_pt_group()
1018 pt->ecc_pt = sae_derive_pt_ecc(pt->ec, group, ssid, ssid_len, in sae_derive_pt_group()
1029 pt->dh = dh_groups_get(group); in sae_derive_pt_group()
1031 wpa_printf(MSG_DEBUG, "SAE: Unsupported group %d", group); in sae_derive_pt_group()
1035 pt->ffc_pt = sae_derive_pt_ffc(pt->dh, group, ssid, ssid_len, in sae_derive_pt_group()
1325 if (pt->group == sae->group) in sae_prepare_commit_pt()
1331 sae->group); in sae_prepare_commit_pt()
1617 wpabuf_put_le16(buf, sae->group); /* Finite Cyclic Group */ in sae_write_commit()
1686 u16 sae_group_allowed(struct sae_data *sae, int *allowed_groups, u16 group) in sae_group_allowed() argument
1691 if (allowed_groups[i] == group) in sae_group_allowed()
1694 if (allowed_groups[i] != group) { in sae_group_allowed()
1697 group); in sae_group_allowed()
1702 if (sae->state == SAE_COMMITTED && group != sae->group) { in sae_group_allowed()
1707 if (group != sae->group && sae_set_group(sae, group) < 0) { in sae_group_allowed()
1709 group); in sae_group_allowed()
1720 "explicit configuration enabling it", group); in sae_group_allowed()