Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/common/
Ddpp.c4990 static struct wpabuf * dpp_pkex_build_exchange_req(struct dpp_pkex *pkex) in dpp_pkex_build_exchange_req() argument
5001 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_req()
5010 Qi = dpp_pkex_derive_Qi(curve, pkex->own_mac, pkex->code, in dpp_pkex_build_exchange_req()
5011 pkex->identifier, bnctx, &group); in dpp_pkex_build_exchange_req()
5016 pkex->x = dpp_gen_keypair(curve); in dpp_pkex_build_exchange_req()
5017 if (!pkex->x) in dpp_pkex_build_exchange_req()
5021 X_ec = EVP_PKEY_get1_EC_KEY(pkex->x); in dpp_pkex_build_exchange_req()
5037 if (pkex->identifier) in dpp_pkex_build_exchange_req()
5038 attr_len += 4 + os_strlen(pkex->identifier); in dpp_pkex_build_exchange_req()
5050 if (pkex->identifier) { in dpp_pkex_build_exchange_req()
[all …]
Ddpp.h268 struct wpabuf * dpp_pkex_rx_exchange_resp(struct dpp_pkex *pkex,
270 struct wpabuf * dpp_pkex_rx_commit_reveal_req(struct dpp_pkex *pkex,
273 int dpp_pkex_rx_commit_reveal_resp(struct dpp_pkex *pkex, const u8 *hdr,
275 void dpp_pkex_free(struct dpp_pkex *pkex);
/external/wpa_supplicant_8/src/ap/
Ddpp_hostapd.c1071 struct dpp_pkex *pkex = hapd->dpp_pkex; in hostapd_dpp_rx_pkex_commit_reveal_req() local
1077 if (!pkex || pkex->initiator || !pkex->exchange_done) { in hostapd_dpp_rx_pkex_commit_reveal_req()
1082 msg = dpp_pkex_rx_commit_reveal_req(pkex, hdr, buf, len); in hostapd_dpp_rx_pkex_commit_reveal_req()
1103 bi->curve = pkex->own_bi->curve; in hostapd_dpp_rx_pkex_commit_reveal_req()
1104 bi->pubkey = pkex->peer_bootstrap_key; in hostapd_dpp_rx_pkex_commit_reveal_req()
1105 pkex->peer_bootstrap_key = NULL; in hostapd_dpp_rx_pkex_commit_reveal_req()
1106 dpp_pkex_free(pkex); in hostapd_dpp_rx_pkex_commit_reveal_req()
1123 struct dpp_pkex *pkex = hapd->dpp_pkex; in hostapd_dpp_rx_pkex_commit_reveal_resp() local
1129 if (!pkex || !pkex->initiator || !pkex->exchange_done) { in hostapd_dpp_rx_pkex_commit_reveal_resp()
1134 res = dpp_pkex_rx_commit_reveal_resp(pkex, hdr, buf, len); in hostapd_dpp_rx_pkex_commit_reveal_resp()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Ddpp_supplicant.c1449 struct dpp_pkex *pkex = wpa_s->dpp_pkex; in wpas_dpp_rx_pkex_commit_reveal_req() local
1455 if (!pkex || pkex->initiator || !pkex->exchange_done) { in wpas_dpp_rx_pkex_commit_reveal_req()
1460 msg = dpp_pkex_rx_commit_reveal_req(pkex, hdr, buf, len); in wpas_dpp_rx_pkex_commit_reveal_req()
1486 bi->curve = pkex->own_bi->curve; in wpas_dpp_rx_pkex_commit_reveal_req()
1487 bi->pubkey = pkex->peer_bootstrap_key; in wpas_dpp_rx_pkex_commit_reveal_req()
1488 pkex->peer_bootstrap_key = NULL; in wpas_dpp_rx_pkex_commit_reveal_req()
1489 dpp_pkex_free(pkex); in wpas_dpp_rx_pkex_commit_reveal_req()
1506 struct dpp_pkex *pkex = wpa_s->dpp_pkex; in wpas_dpp_rx_pkex_commit_reveal_resp() local
1512 if (!pkex || !pkex->initiator || !pkex->exchange_done) { in wpas_dpp_rx_pkex_commit_reveal_resp()
1517 res = dpp_pkex_rx_commit_reveal_resp(pkex, hdr, buf, len); in wpas_dpp_rx_pkex_commit_reveal_resp()
[all …]