/freebsd/contrib/wpa/src/common/ |
H A D | dpp_auth.c | 434 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 716 auth->own_bi = own_bi; in dpp_auth_req_rx() 717 auth->curve = own_bi->curve; in dpp_auth_req_rx() 775 pi = dpp_set_pubkey_point(own_bi->pubkey, i_proto, i_proto_len); in dpp_auth_req_rx() 782 if (dpp_ecdh(own_bi->pubkey, pi, auth->Mx, &secret_len) < 0) in dpp_auth_req_rx() [all …]
|
H A D | dpp_pkex.c | 37 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_req() 194 pkex->own_bi = bi; in dpp_pkex_init() 222 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_resp() 423 pkex->own_bi = bi; in dpp_pkex_rx_exchange_req() 473 pkex->own_bi = bi; in dpp_pkex_rx_exchange_req() 588 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_commit_reveal_req() 705 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_rx_exchange_resp() 833 if (dpp_ecdh(pkex->own_bi->pubkey, pkex->y, Jx, &Jx_len) < 0) in dpp_pkex_rx_exchange_resp() 840 A_pub = crypto_ec_key_get_pubkey_point(pkex->own_bi->pubkey, 0); in dpp_pkex_rx_exchange_resp() 909 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_commit_reveal_resp() [all …]
|
H A D | dpp.h | 209 struct dpp_bootstrap_info *own_bi; member 288 struct dpp_bootstrap_info *own_bi; member 582 int dpp_nfc_update_bi(struct dpp_bootstrap_info *own_bi, 590 struct dpp_bootstrap_info *own_bi, 598 struct dpp_bootstrap_info *own_bi, 737 struct dpp_bootstrap_info **own_bi,
|
H A D | dpp.c | 4642 struct dpp_bootstrap_info **own_bi, in dpp_bootstrap_find_pair() argument 4647 *own_bi = NULL; in dpp_bootstrap_find_pair() 4653 if (!*own_bi && bi->own && in dpp_bootstrap_find_pair() 4658 *own_bi = bi; in dpp_bootstrap_find_pair() 4669 if (*own_bi && *peer_bi) in dpp_bootstrap_find_pair() 4695 static int dpp_nfc_update_bi_channel(struct dpp_bootstrap_info *own_bi, in dpp_nfc_update_bi_channel() argument 4707 if ((own_bi->num_freq == 0 && !own_bi->channels_listed) || in dpp_nfc_update_bi_channel() 4708 freq_included(own_bi->freq, own_bi->num_freq, in dpp_nfc_update_bi_channel() 4730 os_free(own_bi->chan); in dpp_nfc_update_bi_channel() 4731 own_bi->chan = os_strdup(chan); in dpp_nfc_update_bi_channel() [all …]
|
H A D | dpp_crypto.c | 470 if (auth->peer_bi && auth->own_bi) { in dpp_derive_bk_ke() 903 if (auth->own_bi) in dpp_gen_r_auth() 905 auth->own_bi->pubkey, 0); in dpp_gen_r_auth() 918 brx = crypto_ec_key_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_r_auth() 986 if (auth->own_bi) in dpp_gen_i_auth() 988 auth->own_bi->pubkey, 0); in dpp_gen_i_auth() 1003 if (!auth->own_bi) in dpp_gen_i_auth() 1005 brx = crypto_ec_key_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_i_auth() 1072 bR = crypto_ec_key_get_private_key(auth->own_bi->pubkey); in dpp_auth_derive_l_responder() 1115 bI = crypto_ec_key_get_private_key(auth->own_bi->pubkey); in dpp_auth_derive_l_initiator()
|
H A D | dpp_tcp.c | 744 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; in dpp_controller_rx_auth_req() local 774 &own_bi, &peer_bi); in dpp_controller_rx_auth_req() 775 if (!own_bi) { in dpp_controller_rx_auth_req() 790 peer_bi, own_bi, -1, hdr, buf, len); in dpp_controller_rx_auth_req()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | dpp_hostapd.c | 108 struct dpp_bootstrap_info *peer_bi, *own_bi; in hostapd_dpp_nfc_handover_req() local 114 own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, atoi(pos)); in hostapd_dpp_nfc_handover_req() 115 if (!own_bi) in hostapd_dpp_nfc_handover_req() 129 if (dpp_nfc_update_bi(own_bi, peer_bi) < 0) in hostapd_dpp_nfc_handover_req() 139 struct dpp_bootstrap_info *peer_bi, *own_bi; in hostapd_dpp_nfc_handover_sel() local 145 own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, atoi(pos)); in hostapd_dpp_nfc_handover_sel() 146 if (!own_bi) in hostapd_dpp_nfc_handover_sel() 160 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_nfc_handover_sel() 307 struct dpp_bootstrap_info *own_bi = NULL; in hostapd_dpp_pkex_done() local 320 own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, in hostapd_dpp_pkex_done() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | dpp_supplicant.c | 129 struct dpp_bootstrap_info *peer_bi, *own_bi; in wpas_dpp_nfc_handover_req() local 135 own_bi = dpp_bootstrap_get_id(wpa_s->dpp, atoi(pos)); in wpas_dpp_nfc_handover_req() 136 if (!own_bi) in wpas_dpp_nfc_handover_req() 138 own_bi->nfc_negotiated = 1; in wpas_dpp_nfc_handover_req() 151 if (dpp_nfc_update_bi(own_bi, peer_bi) < 0) in wpas_dpp_nfc_handover_req() 161 struct dpp_bootstrap_info *peer_bi, *own_bi; in wpas_dpp_nfc_handover_sel() local 167 own_bi = dpp_bootstrap_get_id(wpa_s->dpp, atoi(pos)); in wpas_dpp_nfc_handover_sel() 168 if (!own_bi) in wpas_dpp_nfc_handover_sel() 170 own_bi->nfc_negotiated = 1; in wpas_dpp_nfc_handover_sel() 183 if (peer_bi->curve != own_bi->curve) { in wpas_dpp_nfc_handover_sel() [all …]
|