Home
last modified time | relevance | path

Searched refs:own_bi (Results 1 – 8 of 8) sorted by relevance

/external/wpa_supplicant_8/src/common/
Ddpp_auth.c434 if (!auth->own_bi) in dpp_auth_build_resp_ok()
495 if (auth->own_bi && auth->peer_bi) { in dpp_auth_build_resp_ok()
524 r_pubkey_hash = auth->own_bi->pubkey_hash; in dpp_auth_build_resp_ok()
611 if (!auth->own_bi) in dpp_auth_build_resp_status()
615 r_pubkey_hash = auth->own_bi->pubkey_hash; in dpp_auth_build_resp_status()
670 struct dpp_bootstrap_info *own_bi, in dpp_auth_req_rx() argument
717 auth->own_bi = own_bi; in dpp_auth_req_rx()
718 auth->curve = own_bi->curve; in dpp_auth_req_rx()
776 pi = dpp_set_pubkey_point(own_bi->pubkey, i_proto, i_proto_len); in dpp_auth_req_rx()
783 if (dpp_ecdh(own_bi->pubkey, pi, auth->Mx, &secret_len) < 0) in dpp_auth_req_rx()
[all …]
Ddpp_pkex.c56 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_req()
207 pkex->own_bi = bi; in dpp_pkex_init()
234 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_resp()
407 pkex->own_bi = bi; in dpp_pkex_rx_exchange_req()
461 pkex->own_bi = bi; in dpp_pkex_rx_exchange_req()
576 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_commit_reveal_req()
694 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_rx_exchange_resp()
808 if (dpp_ecdh(pkex->own_bi->pubkey, pkex->y, Jx, &Jx_len) < 0) in dpp_pkex_rx_exchange_resp()
815 A_pub = dpp_get_pubkey_point(pkex->own_bi->pubkey, 0); in dpp_pkex_rx_exchange_resp()
877 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_commit_reveal_resp()
[all …]
Ddpp.h178 struct dpp_bootstrap_info *own_bi; member
252 struct dpp_bootstrap_info *own_bi; member
518 int dpp_nfc_update_bi(struct dpp_bootstrap_info *own_bi,
525 struct dpp_bootstrap_info *own_bi,
533 struct dpp_bootstrap_info *own_bi,
659 struct dpp_bootstrap_info **own_bi,
Ddpp.c4027 struct dpp_bootstrap_info **own_bi, in dpp_bootstrap_find_pair() argument
4032 *own_bi = NULL; in dpp_bootstrap_find_pair()
4038 if (!*own_bi && bi->own && in dpp_bootstrap_find_pair()
4043 *own_bi = bi; in dpp_bootstrap_find_pair()
4054 if (*own_bi && *peer_bi) in dpp_bootstrap_find_pair()
4080 static int dpp_nfc_update_bi_channel(struct dpp_bootstrap_info *own_bi, in dpp_nfc_update_bi_channel() argument
4092 if ((own_bi->num_freq == 0 && !own_bi->channels_listed) || in dpp_nfc_update_bi_channel()
4093 freq_included(own_bi->freq, own_bi->num_freq, in dpp_nfc_update_bi_channel()
4115 os_free(own_bi->chan); in dpp_nfc_update_bi_channel()
4116 own_bi->chan = os_strdup(chan); in dpp_nfc_update_bi_channel()
[all …]
Ddpp_crypto.c854 if (auth->peer_bi && auth->own_bi) { in dpp_derive_bk_ke()
1438 if (auth->own_bi) in dpp_gen_r_auth()
1439 bix = dpp_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_r_auth()
1450 brx = dpp_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_r_auth()
1517 if (auth->own_bi) in dpp_gen_i_auth()
1518 bix = dpp_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_i_auth()
1531 if (!auth->own_bi) in dpp_gen_i_auth()
1533 brx = dpp_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_i_auth()
1611 bR = EVP_PKEY_get0_EC_KEY(auth->own_bi->pubkey); in dpp_auth_derive_l_responder()
1672 bI = EVP_PKEY_get0_EC_KEY(auth->own_bi->pubkey); in dpp_auth_derive_l_initiator()
Ddpp_tcp.c591 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; in dpp_controller_rx_auth_req() local
621 &own_bi, &peer_bi); in dpp_controller_rx_auth_req()
622 if (!own_bi) { in dpp_controller_rx_auth_req()
637 peer_bi, own_bi, -1, hdr, buf, len); in dpp_controller_rx_auth_req()
/external/wpa_supplicant_8/src/ap/
Ddpp_hostapd.c100 struct dpp_bootstrap_info *peer_bi, *own_bi; in hostapd_dpp_nfc_handover_req() local
106 own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, atoi(pos)); in hostapd_dpp_nfc_handover_req()
107 if (!own_bi) in hostapd_dpp_nfc_handover_req()
121 if (dpp_nfc_update_bi(own_bi, peer_bi) < 0) in hostapd_dpp_nfc_handover_req()
131 struct dpp_bootstrap_info *peer_bi, *own_bi; in hostapd_dpp_nfc_handover_sel() local
137 own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, atoi(pos)); in hostapd_dpp_nfc_handover_sel()
138 if (!own_bi) in hostapd_dpp_nfc_handover_sel()
152 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_nfc_handover_sel()
551 struct dpp_bootstrap_info *peer_bi, *own_bi = NULL; in hostapd_dpp_auth_init() local
595 own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, in hostapd_dpp_auth_init()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Ddpp_supplicant.c126 struct dpp_bootstrap_info *peer_bi, *own_bi; in wpas_dpp_nfc_handover_req() local
132 own_bi = dpp_bootstrap_get_id(wpa_s->dpp, atoi(pos)); in wpas_dpp_nfc_handover_req()
133 if (!own_bi) in wpas_dpp_nfc_handover_req()
135 own_bi->nfc_negotiated = 1; in wpas_dpp_nfc_handover_req()
148 if (dpp_nfc_update_bi(own_bi, peer_bi) < 0) in wpas_dpp_nfc_handover_req()
158 struct dpp_bootstrap_info *peer_bi, *own_bi; in wpas_dpp_nfc_handover_sel() local
164 own_bi = dpp_bootstrap_get_id(wpa_s->dpp, atoi(pos)); in wpas_dpp_nfc_handover_sel()
165 if (!own_bi) in wpas_dpp_nfc_handover_sel()
167 own_bi->nfc_negotiated = 1; in wpas_dpp_nfc_handover_sel()
180 if (peer_bi->curve != own_bi->curve) { in wpas_dpp_nfc_handover_sel()
[all …]