Lines Matching refs:group
26 int sae_set_group(struct sae_data *sae, int group) in sae_set_group() argument
33 if (!dragonfly_suitable_group(group, 0)) { in sae_set_group()
34 wpa_printf(MSG_DEBUG, "SAE: Reject unsuitable group %d", group); in sae_set_group()
45 tmp->ec = crypto_ec_init(group); in sae_set_group()
48 group); in sae_set_group()
49 sae->group = group; in sae_set_group()
58 tmp->dh = dh_groups_get(group); in sae_set_group()
61 group); in sae_set_group()
62 sae->group = group; in sae_set_group()
91 "SAE: Group %d not supported by the crypto library", group); in sae_set_group()
349 k = dragonfly_min_pwe_loop_iter(sae->group); in sae_derive_pwe_ecc()
496 k = dragonfly_min_pwe_loop_iter(sae->group); in sae_derive_pwe_ffc()
588 static int sswu_curve_param(int group, int *z) in sswu_curve_param() argument
590 switch (group) { in sswu_curve_param()
633 static struct crypto_ec_point * sswu(struct crypto_ec *ec, int group, in sswu() argument
649 if (sswu_curve_param(group, &z_int) < 0) in sswu()
872 sae_derive_pt_ecc(struct crypto_ec *ec, int group, in sae_derive_pt_ecc() argument
915 p1 = sswu(ec, group, bn); in sae_derive_pt_ecc()
938 p2 = sswu(ec, group, bn); in sae_derive_pt_ecc()
972 sae_derive_pt_ffc(const struct dh_group *dh, int group, in sae_derive_pt_ffc() argument
1050 sae_derive_pt_group(int group, const u8 *ssid, size_t ssid_len, in sae_derive_pt_group() argument
1056 wpa_printf(MSG_DEBUG, "SAE: Derive PT - group %d", group); in sae_derive_pt_group()
1069 pt->group = group; in sae_derive_pt_group()
1070 pt->ec = crypto_ec_init(group); in sae_derive_pt_group()
1072 pt->ecc_pt = sae_derive_pt_ecc(pt->ec, group, ssid, ssid_len, in sae_derive_pt_group()
1083 pt->dh = dh_groups_get(group); in sae_derive_pt_group()
1085 wpa_printf(MSG_DEBUG, "SAE: Unsupported group %d", group); in sae_derive_pt_group()
1089 pt->ffc_pt = sae_derive_pt_ffc(pt->dh, group, ssid, ssid_len, in sae_derive_pt_group()
1379 if (pt->group == sae->group) in sae_prepare_commit_pt()
1385 sae->group); in sae_prepare_commit_pt()
1688 wpabuf_put_le16(buf, sae->group); /* Finite Cyclic Group */ in sae_write_commit()
1765 u16 sae_group_allowed(struct sae_data *sae, int *allowed_groups, u16 group) in sae_group_allowed() argument
1770 if (allowed_groups[i] == group) in sae_group_allowed()
1773 if (allowed_groups[i] != group) { in sae_group_allowed()
1776 group); in sae_group_allowed()
1781 if (sae->state == SAE_COMMITTED && group != sae->group) { in sae_group_allowed()
1786 if (group != sae->group && sae_set_group(sae, group) < 0) { in sae_group_allowed()
1788 group); in sae_group_allowed()
1799 "explicit configuration enabling it", group); in sae_group_allowed()