Lines Matching refs:peer_bi

919 	if (auth->peer_bi && auth->own_bi) {  in dpp_derive_ke()
1370 struct dpp_bootstrap_info *peer_bi = auth->peer_bi; in dpp_channel_intersect() local
1373 for (i = 0; i < peer_bi->num_freq; i++) { in dpp_channel_intersect()
1374 freq = peer_bi->freq[i]; in dpp_channel_intersect()
1442 if (auth->peer_bi->num_freq > 0) in dpp_prepare_channel_list()
1487 pk = dpp_keygen(bi, auth->peer_bi->curve->name, NULL, 0); in dpp_autogen_bootstrap_key()
1514 struct dpp_bootstrap_info *peer_bi, in dpp_auth_init() argument
1538 auth->peer_bi = peer_bi; in dpp_auth_init()
1540 auth->curve = peer_bi->curve; in dpp_auth_init()
1591 if (dpp_ecdh(auth->own_protocol_key, auth->peer_bi->pubkey, in dpp_auth_init()
1604 r_pubkey_hash = auth->peer_bi->pubkey_hash; in dpp_auth_init()
1905 brx = dpp_get_pubkey_point(auth->peer_bi->pubkey, 0); in dpp_gen_r_auth()
1909 if (auth->peer_bi) in dpp_gen_r_auth()
1910 bix = dpp_get_pubkey_point(auth->peer_bi->pubkey, 0); in dpp_gen_r_auth()
1983 if (!auth->peer_bi) in dpp_gen_i_auth()
1985 brx = dpp_get_pubkey_point(auth->peer_bi->pubkey, 0); in dpp_gen_i_auth()
1989 if (auth->peer_bi) in dpp_gen_i_auth()
1990 bix = dpp_get_pubkey_point(auth->peer_bi->pubkey, 0); in dpp_gen_i_auth()
2063 BI_point = crypto_ec_get_public_key(auth->peer_bi->pubkey); in dpp_auth_derive_l_responder()
2064 group = crypto_ec_get_group_from_key(auth->peer_bi->pubkey); in dpp_auth_derive_l_responder()
2110 BR_point = crypto_ec_get_public_key(auth->peer_bi->pubkey); in dpp_auth_derive_l_initiator()
2220 if (auth->own_bi && auth->peer_bi) { in dpp_auth_build_resp_ok()
2250 if (auth->peer_bi) in dpp_auth_build_resp_ok()
2251 i_pubkey_hash = auth->peer_bi->pubkey_hash; in dpp_auth_build_resp_ok()
2341 if (auth->peer_bi) in dpp_auth_build_resp_status()
2342 i_pubkey_hash = auth->peer_bi->pubkey_hash; in dpp_auth_build_resp_status()
2394 struct dpp_bootstrap_info *peer_bi, in dpp_auth_req_rx() argument
2440 auth->peer_bi = peer_bi; in dpp_auth_req_rx()
2596 if (qr_mutual && !peer_bi && own_bi->type == DPP_BOOTSTRAP_QR_CODE) { in dpp_auth_req_rx()
2649 struct dpp_bootstrap_info *peer_bi) in dpp_notify_new_qr_code() argument
2652 os_memcmp(auth->waiting_pubkey_hash, peer_bi->pubkey_hash, in dpp_notify_new_qr_code()
2659 auth->peer_bi = peer_bi; in dpp_notify_new_qr_code()
2703 r_pubkey_hash = auth->peer_bi->pubkey_hash; in dpp_auth_build_conf()
2970 if (!auth->initiator || !auth->peer_bi) { in dpp_auth_resp_rx()
2999 if (os_memcmp(r_bootstrap, auth->peer_bi->pubkey_hash, in dpp_auth_resp_rx()
3005 auth->peer_bi->pubkey_hash, SHA256_MAC_LEN); in dpp_auth_resp_rx()
3383 auth->peer_bi->pubkey_hash, SHA256_MAC_LEN); in dpp_auth_conf_rx()
3401 if (!auth->peer_bi || in dpp_auth_conf_rx()
3402 os_memcmp(i_bootstrap, auth->peer_bi->pubkey_hash, in dpp_auth_conf_rx()
3408 } else if (auth->peer_bi) { in dpp_auth_conf_rx()
6233 struct dpp_bootstrap_info **peer_bi) in dpp_bootstrap_find_pair() argument
6238 *peer_bi = NULL; in dpp_bootstrap_find_pair()
6251 if (!*peer_bi && !bi->own && in dpp_bootstrap_find_pair()
6256 *peer_bi = bi; in dpp_bootstrap_find_pair()
6259 if (*own_bi && *peer_bi) in dpp_bootstrap_find_pair()