Home
last modified time | relevance | path

Searched refs:pkex (Results 1 – 4 of 4) sorted by relevance

/external/wpa_supplicant_8/src/common/
Ddpp_pkex.c45 static struct wpabuf * dpp_pkex_build_exchange_req(struct dpp_pkex *pkex) in dpp_pkex_build_exchange_req() argument
56 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_req()
64 Qi = dpp_pkex_derive_Qi(curve, pkex->own_mac, pkex->code, in dpp_pkex_build_exchange_req()
65 pkex->identifier, bnctx, &group); in dpp_pkex_build_exchange_req()
76 pkex->x = dpp_set_keypair(&tmp_curve, in dpp_pkex_build_exchange_req()
80 pkex->x = dpp_gen_keypair(curve); in dpp_pkex_build_exchange_req()
83 pkex->x = dpp_gen_keypair(curve); in dpp_pkex_build_exchange_req()
85 if (!pkex->x) in dpp_pkex_build_exchange_req()
89 X_ec = EVP_PKEY_get0_EC_KEY(pkex->x); in dpp_pkex_build_exchange_req()
107 if (pkex->identifier) in dpp_pkex_build_exchange_req()
[all …]
Ddpp.h612 struct wpabuf * dpp_pkex_rx_exchange_resp(struct dpp_pkex *pkex,
615 struct wpabuf * dpp_pkex_rx_commit_reveal_req(struct dpp_pkex *pkex,
618 int dpp_pkex_rx_commit_reveal_resp(struct dpp_pkex *pkex, const u8 *hdr,
620 void dpp_pkex_free(struct dpp_pkex *pkex);
651 dpp_pkex_finish(struct dpp_global *dpp, struct dpp_pkex *pkex, const u8 *peer,
/external/wpa_supplicant_8/wpa_supplicant/
Ddpp_supplicant.c2547 struct dpp_pkex *pkex) in wpas_dpp_pkex_next_channel() argument
2549 if (pkex->freq == 2437) in wpas_dpp_pkex_next_channel()
2550 pkex->freq = 5745; in wpas_dpp_pkex_next_channel()
2551 else if (pkex->freq == 5745) in wpas_dpp_pkex_next_channel()
2552 pkex->freq = 5220; in wpas_dpp_pkex_next_channel()
2553 else if (pkex->freq == 5220) in wpas_dpp_pkex_next_channel()
2554 pkex->freq = 60480; in wpas_dpp_pkex_next_channel()
2558 if (wpas_dpp_allow_ir(wpa_s, pkex->freq) == 1) { in wpas_dpp_pkex_next_channel()
2560 pkex->freq); in wpas_dpp_pkex_next_channel()
2565 return wpas_dpp_pkex_next_channel(wpa_s, pkex); in wpas_dpp_pkex_next_channel()
[all …]
/external/wpa_supplicant_8/src/ap/
Ddpp_hostapd.c1765 struct dpp_pkex *pkex = hapd->dpp_pkex; in hostapd_dpp_rx_pkex_commit_reveal_req() local
1771 if (!pkex || pkex->initiator || !pkex->exchange_done) { in hostapd_dpp_rx_pkex_commit_reveal_req()
1776 msg = dpp_pkex_rx_commit_reveal_req(pkex, hdr, buf, len); in hostapd_dpp_rx_pkex_commit_reveal_req()
1800 bi = dpp_pkex_finish(hapd->iface->interfaces->dpp, pkex, src, freq); in hostapd_dpp_rx_pkex_commit_reveal_req()
1814 struct dpp_pkex *pkex = hapd->dpp_pkex; in hostapd_dpp_rx_pkex_commit_reveal_resp() local
1820 if (!pkex || !pkex->initiator || !pkex->exchange_done) { in hostapd_dpp_rx_pkex_commit_reveal_resp()
1825 res = dpp_pkex_rx_commit_reveal_resp(pkex, hdr, buf, len); in hostapd_dpp_rx_pkex_commit_reveal_resp()
1831 bi = dpp_pkex_finish(hapd->iface->interfaces->dpp, pkex, src, freq); in hostapd_dpp_rx_pkex_commit_reveal_resp()