/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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() 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 in dpp_auth_req_rx() 668 dpp_auth_req_rx(struct dpp_global *dpp, void *msg_ctx, u8 dpp_allowed_roles, int qr_mutual, struct dpp_bootstrap_info *peer_bi, struct dpp_bootstrap_info *own_bi, unsigned int freq, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_auth_req_rx() argument 1161 dpp_auth_init(struct dpp_global *dpp, void *msg_ctx, struct dpp_bootstrap_info *peer_bi, struct dpp_bootstrap_info *own_bi, u8 dpp_allowed_roles, unsigned int neg_freq, struct hostapd_hw_modes *own_modes, u16 num_modes) dpp_auth_init() argument [all...] |
H A D | dpp_pkex.c | 38 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_req() 192 pkex->own_bi = bi; in dpp_pkex_init() 219 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_resp() 421 pkex->own_bi = bi; in dpp_pkex_rx_exchange_req() 471 pkex->own_bi = bi; in dpp_pkex_rx_exchange_req() 581 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_commit_reveal_req() 698 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_rx_exchange_resp() 824 if (dpp_ecdh(pkex->own_bi->pubkey, pkex->y, Jx, &Jx_len) < 0) in dpp_pkex_rx_exchange_resp() 831 A_pub = crypto_ec_key_get_pubkey_point(pkex->own_bi->pubkey, 0); in dpp_pkex_rx_exchange_resp() 900 const struct dpp_curve_params *curve = pkex->own_bi in dpp_pkex_build_commit_reveal_resp() [all...] |
H A D | dpp.h | 180 struct dpp_bootstrap_info *own_bi; member 254 struct dpp_bootstrap_info *own_bi; member 521 int dpp_nfc_update_bi(struct dpp_bootstrap_info *own_bi, 528 struct dpp_bootstrap_info *own_bi, 536 struct dpp_bootstrap_info *own_bi, 662 struct dpp_bootstrap_info **own_bi,
|
H A D | dpp.c | 4025 struct dpp_bootstrap_info **own_bi, in dpp_bootstrap_find_pair() 4030 *own_bi = NULL; in dpp_bootstrap_find_pair() 4036 if (!*own_bi && bi->own && in dpp_bootstrap_find_pair() 4041 *own_bi = bi; in dpp_bootstrap_find_pair() 4052 if (*own_bi && *peer_bi) in dpp_bootstrap_find_pair() 4078 static int dpp_nfc_update_bi_channel(struct dpp_bootstrap_info *own_bi, in dpp_nfc_update_bi_channel() argument 4090 if ((own_bi->num_freq == 0 && !own_bi->channels_listed) || in dpp_nfc_update_bi_channel() 4091 freq_included(own_bi->freq, own_bi in dpp_nfc_update_bi_channel() 4023 dpp_bootstrap_find_pair(struct dpp_global *dpp, const u8 *i_bootstrap, const u8 *r_bootstrap, struct dpp_bootstrap_info **own_bi, struct dpp_bootstrap_info **peer_bi) dpp_bootstrap_find_pair() argument 4126 dpp_nfc_update_bi_key(struct dpp_bootstrap_info *own_bi, struct dpp_bootstrap_info *peer_bi) dpp_nfc_update_bi_key() argument 4150 dpp_nfc_update_bi(struct dpp_bootstrap_info *own_bi, struct dpp_bootstrap_info *peer_bi) dpp_nfc_update_bi() argument [all...] |
H A D | dpp_crypto.c | 449 if (auth->peer_bi && auth->own_bi) { in dpp_derive_bk_ke() 882 if (auth->own_bi) in dpp_gen_r_auth() 884 auth->own_bi->pubkey, 0); in dpp_gen_r_auth() 897 brx = crypto_ec_key_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_r_auth() 965 if (auth->own_bi) in dpp_gen_i_auth() 967 auth->own_bi->pubkey, 0); in dpp_gen_i_auth() 982 if (!auth->own_bi) in dpp_gen_i_auth() 984 brx = crypto_ec_key_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_i_auth() 1052 bR = crypto_ec_key_get_private_key(auth->own_bi->pubkey); in dpp_auth_derive_l_responder() 1094 bI = crypto_ec_key_get_private_key(auth->own_bi in dpp_auth_derive_l_initiator() [all...] |
H A D | dpp_tcp.c | 621 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; in dpp_controller_rx_auth_req() local 651 &own_bi, &peer_bi); in dpp_controller_rx_auth_req() 652 if (!own_bi) { in dpp_controller_rx_auth_req() 667 peer_bi, own_bi, -1, hdr, buf, len); in dpp_controller_rx_auth_req()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | dpp_hostapd.c | 100 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 in hostapd_dpp_auth_init() 720 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; hostapd_dpp_rx_auth_req() local 2136 struct dpp_bootstrap_info *own_bi; hostapd_dpp_pkex_add() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | dpp_hostapd.c | 400 struct dpp_bootstrap_info *peer_bi, *own_bi = NULL; in hostapd_dpp_auth_init() local 418 own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, in hostapd_dpp_auth_init() 420 if (!own_bi) { in hostapd_dpp_auth_init() 426 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_auth_init() 429 peer_bi->curve->name, own_bi->curve->name); in hostapd_dpp_auth_init() 462 hapd->dpp_auth = dpp_auth_init(hapd->msg_ctx, peer_bi, own_bi, in hostapd_dpp_auth_init() 529 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; in hostapd_dpp_rx_auth_req() local 560 r_bootstrap, &own_bi, &peer_bi); in hostapd_dpp_rx_auth_req() 562 if (!own_bi) { in hostapd_dpp_rx_auth_req() 569 if (!own_bi) { in hostapd_dpp_rx_auth_req() 1522 struct dpp_bootstrap_info *own_bi; hostapd_dpp_pkex_add() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | dpp_supplicant.c | 436 struct dpp_bootstrap_info *peer_bi, *own_bi = NULL; in wpas_dpp_auth_init() local 482 own_bi = dpp_bootstrap_get_id(wpa_s->dpp, atoi(pos)); in wpas_dpp_auth_init() 483 if (!own_bi) { in wpas_dpp_auth_init() 489 if (peer_bi->curve != own_bi->curve) { in wpas_dpp_auth_init() 492 peer_bi->curve->name, own_bi->curve->name); in wpas_dpp_auth_init() 531 auth = dpp_auth_init(wpa_s, peer_bi, own_bi, allowed_roles, neg_freq, in wpas_dpp_auth_init() 724 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; in wpas_dpp_rx_auth_req() local 755 &own_bi, &peer_bi); in wpas_dpp_rx_auth_req() 756 if (!own_bi) { in wpas_dpp_rx_auth_req() 772 peer_bi, own_bi, fre in wpas_dpp_rx_auth_req() 2123 struct dpp_bootstrap_info *own_bi; wpas_dpp_pkex_add() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | dpp_supplicant.c | 125 struct dpp_bootstrap_info *peer_bi, *own_bi; in wpas_dpp_nfc_handover_req() local 131 own_bi = dpp_bootstrap_get_id(wpa_s->dpp, atoi(pos)); in wpas_dpp_nfc_handover_req() 132 if (!own_bi) in wpas_dpp_nfc_handover_req() 134 own_bi->nfc_negotiated = 1; in wpas_dpp_nfc_handover_req() 147 if (dpp_nfc_update_bi(own_bi, peer_bi) < 0) in wpas_dpp_nfc_handover_req() 157 struct dpp_bootstrap_info *peer_bi, *own_bi; in wpas_dpp_nfc_handover_sel() local 163 own_bi = dpp_bootstrap_get_id(wpa_s->dpp, atoi(pos)); in wpas_dpp_nfc_handover_sel() 164 if (!own_bi) in wpas_dpp_nfc_handover_sel() 166 own_bi->nfc_negotiated = 1; in wpas_dpp_nfc_handover_sel() 179 if (peer_bi->curve != own_bi in wpas_dpp_nfc_handover_sel() 750 struct dpp_bootstrap_info *peer_bi, *own_bi = NULL; wpas_dpp_auth_init() local 1079 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; wpas_dpp_rx_auth_req() local 3279 struct dpp_bootstrap_info *own_bi; wpas_dpp_pkex_add() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
H A D | dpp.h | 131 struct dpp_bootstrap_info *own_bi; member 182 struct dpp_bootstrap_info *own_bi; member 400 struct dpp_bootstrap_info *own_bi, 408 struct dpp_bootstrap_info *own_bi, 512 struct dpp_bootstrap_info **own_bi,
|
H A D | dpp.c | 1606 if (auth->peer_bi && auth->own_bi) { in dpp_derive_ke() 2187 if (auth->own_bi) in dpp_autogen_bootstrap_key() 2208 auth->tmp_own_bi = auth->own_bi = bi; in dpp_autogen_bootstrap_key() 2222 struct dpp_bootstrap_info *own_bi, in dpp_auth_init() 2246 auth->own_bi = own_bi; in dpp_auth_init() 2312 i_pubkey_hash = auth->own_bi->pubkey_hash; in dpp_auth_init() 2548 if (auth->own_bi) in dpp_gen_r_auth() 2549 bix = dpp_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_r_auth() 2560 brx = dpp_get_pubkey_point(auth->own_bi in dpp_gen_r_auth() 2220 dpp_auth_init(void *msg_ctx, struct dpp_bootstrap_info *peer_bi, struct dpp_bootstrap_info *own_bi, u8 dpp_allowed_roles, unsigned int neg_freq, struct hostapd_hw_modes *own_modes, u16 num_modes) dpp_auth_init() argument 3072 dpp_auth_req_rx(void *msg_ctx, u8 dpp_allowed_roles, int qr_mutual, struct dpp_bootstrap_info *peer_bi, struct dpp_bootstrap_info *own_bi, unsigned int freq, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_auth_req_rx() argument 8581 dpp_bootstrap_find_pair(struct dpp_global *dpp, const u8 *i_bootstrap, const u8 *r_bootstrap, struct dpp_bootstrap_info **own_bi, struct dpp_bootstrap_info **peer_bi) dpp_bootstrap_find_pair() argument 9300 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; dpp_controller_rx_auth_req() local [all...] |