Home
last modified time | relevance | path

Searched refs:wpabuf_head (Results 1 – 25 of 166) sorted by relevance

1234567

/hostap-latest/wpa_supplicant/
Dnfc_pw_token.c28 pos = wpabuf_head(buf); in print_bin()
61 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(buf), in main()
65 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(ndef), in main()
Doffchannel.c149 wpabuf_head(wpa_s->pending_action_tx), in wpas_send_action_cb()
161 wpabuf_head(wpa_s->pending_action_tx), in wpas_send_action_cb()
197 os_memcmp(data + 24, wpabuf_head(wpa_s->pending_action_tx), in offchannel_send_action_tx_status()
320 wpabuf_head(wpa_s->pending_action_tx), in offchannel_send_action()
Dtwt.c89 wpabuf_head(buf), wpabuf_len(buf), 0) < 0) { in wpas_twt_send_setup()
133 wpabuf_head(buf), wpabuf_len(buf), 0) < 0) { in wpas_twt_send_teardown()
Ddpp_supplicant.c95 wpabuf_head(auth->resp_msg), in wpas_dpp_qr_code()
209 wpabuf_head(auth->resp_msg), in wpas_dpp_auth_resp_retry_timeout()
429 wpabuf_head(msg), wpabuf_len(msg), in wpas_dpp_send_conn_status_result()
830 wpabuf_head(auth->req_msg), in wpas_dpp_auth_init_next()
1164 wpabuf_head(auth->resp_msg), in wpas_dpp_tx_auth_resp()
1443 os_memcpy(ssid->dpp_csign, wpabuf_head(conf->c_sign_key), in wpas_dpp_add_network()
1452 os_memcpy(ssid->dpp_pp_key, wpabuf_head(conf->pp_key), in wpas_dpp_add_network()
1463 wpabuf_head(auth->net_access_key), in wpas_dpp_add_network()
1531 os_memcpy(blob->data, wpabuf_head(conf->certs), in wpas_dpp_add_network()
1566 os_memcpy(blob->data, wpabuf_head(auth->priv_key), in wpas_dpp_add_network()
[all …]
/hostap-latest/src/eap_common/
Deap_common.c33 hdr = wpabuf_head(msg); in eap_hdr_len_valid()
76 hdr = wpabuf_head(msg); in eap_hdr_validate()
189 eap = wpabuf_head(msg); in eap_get_id()
204 return ((const u8 *) wpabuf_head(msg))[sizeof(struct eap_hdr)]; in eap_get_type()
/hostap-latest/src/crypto/
Dcrypto_module_tests.c2348 own_priv = crypto_ec_key_set_priv(test->sk_r_group, wpabuf_head(sk_r), in run_hpke_test()
2358 wpabuf_head(info), wpabuf_len(info), in run_hpke_test()
2359 wpabuf_head(aad), wpabuf_len(aad), in run_hpke_test()
2360 wpabuf_head(enc_ct), wpabuf_len(enc_ct)); in run_hpke_test()
2367 os_memcmp(wpabuf_head(res_pt), wpabuf_head(pt), in run_hpke_test()
2407 wpabuf_head(info), wpabuf_len(info), in run_hpke_test()
2408 wpabuf_head(aad), wpabuf_len(aad), in run_hpke_test()
2409 wpabuf_head(pt), wpabuf_len(pt)); in run_hpke_test()
2420 wpabuf_head(info), wpabuf_len(info), in run_hpke_test()
2421 wpabuf_head(aad), wpabuf_len(aad), in run_hpke_test()
[all …]
Dtls_internal.c490 in_data ? wpabuf_head(in_data) : NULL, in tls_connection_handshake2()
534 res = tlsv1_server_handshake(conn->server, wpabuf_head(in_data), in tls_connection_server_handshake()
564 res = tlsv1_client_encrypt(conn->client, wpabuf_head(in_data), in tls_connection_encrypt()
583 res = tlsv1_server_encrypt(conn->server, wpabuf_head(in_data), in tls_connection_encrypt()
617 return tlsv1_client_decrypt(conn->client, wpabuf_head(in_data), in tls_connection_decrypt2()
629 res = tlsv1_server_decrypt(conn->server, wpabuf_head(in_data), in tls_connection_decrypt2()
Ddh_groups.c1253 wpabuf_head(own_private), in dh_derive_shared()
1255 wpabuf_head(peer_public), in dh_derive_shared()
/hostap-latest/src/common/
Ddpp_crypto.c262 addr[0] = wpabuf_head(uncomp); in dpp_get_pubkey_hash()
325 res = dpp_bi_pubkey_hash(bi, wpabuf_head(der), wpabuf_len(der)); in dpp_bootstrap_key_hash()
361 if (dpp_bi_pubkey_hash(bi, wpabuf_head(der), wpabuf_len(der)) < 0) { in dpp_keygen()
366 base64 = hostap_base64_encode(wpabuf_head(der), wpabuf_len(der), &len); in dpp_keygen()
524 secret_buf = crypto_ecdh_set_peerkey(ecdh, 1, wpabuf_head(peer_pub), in dpp_ecdh()
537 os_memcpy(secret, wpabuf_head(secret_buf), wpabuf_len(secret_buf)); in dpp_ecdh()
700 addr[0] = wpabuf_head(uncomp); in dpp_check_pubkey_match()
708 if (os_memcmp(hash, wpabuf_head(r_hash), SHA256_MAC_LEN) != 0) { in dpp_check_pubkey_match()
931 addr[num_elem] = wpabuf_head(pix); in dpp_gen_r_auth()
935 addr[num_elem] = wpabuf_head(prx); in dpp_gen_r_auth()
[all …]
Ddpp_pkex.c672 wpabuf_head(clear), wpabuf_len(clear), in dpp_pkex_build_commit_reveal_req()
851 addr[num_elem] = wpabuf_head(A_pub); in dpp_pkex_rx_exchange_resp()
854 addr[num_elem] = wpabuf_head(Y_pub); in dpp_pkex_rx_exchange_resp()
857 addr[num_elem] = wpabuf_head(X_pub); in dpp_pkex_rx_exchange_resp()
993 wpabuf_head(clear), wpabuf_len(clear), in dpp_pkex_build_commit_reveal_resp()
1125 addr[num_elem] = wpabuf_head(A_pub); in dpp_pkex_rx_commit_reveal_req()
1128 addr[num_elem] = wpabuf_head(Y_pub); in dpp_pkex_rx_commit_reveal_req()
1131 addr[num_elem] = wpabuf_head(X_pub); in dpp_pkex_rx_commit_reveal_req()
1168 addr[num_elem] = wpabuf_head(B_pub); in dpp_pkex_rx_commit_reveal_req()
1171 addr[num_elem] = wpabuf_head(X_pub); in dpp_pkex_rx_commit_reveal_req()
[all …]
Ddpp.c892 wpabuf_head(clear), wpabuf_len(clear), in dpp_build_conf_req_attr()
1003 csr = base64_encode_no_lf(wpabuf_head(auth->csr), in dpp_build_conf_req_helper()
1044 buf = dpp_build_conf_req(auth, wpabuf_head(json)); in dpp_build_conf_req_helper()
1573 pos = wpabuf_head(pub); in dpp_build_jwk()
1792 (const char *) wpabuf_head(dppcon)); in dpp_build_conf_obj_dpp()
1835 json_add_base64(buf, "certBag", wpabuf_head(auth->certbag), in dpp_build_conf_obj_dpp()
1840 wpabuf_head(auth->cacert), in dpp_build_conf_obj_dpp()
1884 wpabuf_head(buf), wpabuf_len(buf)); in dpp_build_conf_obj_dpp()
1944 wpabuf_head(buf), wpabuf_len(buf)); in dpp_build_conf_obj_legacy()
2058 wpabuf_head(conf), wpabuf_len(conf)); in dpp_build_conf_resp()
[all …]
/hostap-latest/tests/
Dtest-https_server.c128 if (send(s, wpabuf_head(out), wpabuf_len(out), 0) < 0) { in https_server()
165 wpabuf_head(out), wpabuf_len(out)); in https_server()
179 wpabuf_head(in), wpabuf_len(in)); in https_server()
189 if (send(s, wpabuf_head(out), wpabuf_len(out), 0) < 0) { in https_server()
Dtest-https.c113 if (send(s, wpabuf_head(out), wpabuf_len(out), 0) < 0) { in https_client()
146 if (send(s, wpabuf_head(out), wpabuf_len(out), 0) < 0) { in https_client()
166 wpa_hexdump_ascii(MSG_INFO, "Response", wpabuf_head(out), in https_client()
/hostap-latest/src/utils/
Dwpabuf.h93 static inline const void * wpabuf_head(const struct wpabuf *buf) in wpabuf_head() function
100 return (const u8 *) wpabuf_head(buf); in wpabuf_head_u8()
182 wpabuf_put_data(dst, wpabuf_head(src), wpabuf_len(src)); in wpabuf_put_buf()
Dext_password.c93 if (mlock(wpabuf_head(buf), wpabuf_len(buf)) < 0) { in ext_password_alloc()
109 if (munlock(wpabuf_head(pw), wpabuf_len(pw)) < 0) { in ext_password_free()
Dwpa_debug.h93 wpa_hexdump(level, title, buf ? wpabuf_head(buf) : NULL, in wpa_hexdump_buf()
115 wpa_hexdump_key(level, title, buf ? wpabuf_head(buf) : NULL, in wpa_hexdump_buf_key()
/hostap-latest/src/ap/
Dhs20.c146 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification()
181 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification_deauth_req()
227 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification_t_c()
Ddpp_hostapd.c75 wpabuf_head(hapd->dpp_auth->resp_msg), in hostapd_dpp_qr_code()
186 wpabuf_head(auth->resp_msg), in hostapd_dpp_auth_resp_retry_timeout()
413 wpabuf_head(msg), wpabuf_len(msg)); in hostapd_dpp_pkex_init()
458 wpabuf_head(pkex->exchange_req), in hostapd_dpp_pkex_retry_timeout()
811 wpabuf_head(hapd->dpp_auth->req_msg), in hostapd_dpp_auth_init_next()
1134 src, wpabuf_head(hapd->dpp_auth->resp_msg), in hostapd_dpp_rx_auth_req()
1181 wpabuf_head(conf->c_sign_key), in hostapd_dpp_handle_config_obj()
1196 wpabuf_head(auth->net_access_key), in hostapd_dpp_handle_config_obj()
1281 !(pos = wpabuf_head(adv_proto)) || in hostapd_dpp_gas_resp_cb()
1337 addr, wpabuf_head(msg), in hostapd_dpp_gas_resp_cb()
[all …]
Drrm.c273 wpabuf_head(buf), wpabuf_len(buf)); in hostapd_send_nei_report_resp()
476 wpabuf_head(buf), wpabuf_len(buf)); in hostapd_send_lci_req()
595 wpabuf_head(buf), wpabuf_len(buf)); in hostapd_send_range_req()
638 pos = wpabuf_head(req); in hostapd_send_beacon_req()
707 wpabuf_head(buf), wpabuf_len(buf)); in hostapd_send_beacon_req()
783 wpabuf_head(buf), wpabuf_len(buf)); in hostapd_send_link_measurement_req()
Dwpa_auth_glue.c132 wpabuf_head(conf->own_ie_override), in hostapd_wpa_auth_conf()
139 wpabuf_head(conf->rsne_override), in hostapd_wpa_auth_conf()
147 wpabuf_head(conf->rsnoe_override), in hostapd_wpa_auth_conf()
155 wpabuf_head(conf->rsno2e_override), in hostapd_wpa_auth_conf()
163 wpabuf_head(conf->rsnxe_override), in hostapd_wpa_auth_conf()
171 wpabuf_head(conf->rsnxoe_override), in hostapd_wpa_auth_conf()
181 wpabuf_head(conf->rsne_override_eapol), in hostapd_wpa_auth_conf()
190 wpabuf_head(conf->rsnxe_override_eapol), in hostapd_wpa_auth_conf()
199 wpabuf_head(conf->rsne_override_ft), in hostapd_wpa_auth_conf()
208 wpabuf_head(conf->rsnxe_override_ft), in hostapd_wpa_auth_conf()
[all …]
Dneighbor_db.c61 wpabuf_head(nr->nr), in hostapd_neighbor_show()
67 wpabuf_head(nr->lci), in hostapd_neighbor_show()
73 wpabuf_head(nr->civic), in hostapd_neighbor_show()
/hostap-latest/src/wps/
Dwps_attr_process.c38 addr[0] = wpabuf_head(wps->last_msg); in wps_process_authenticator()
40 addr[1] = wpabuf_head(msg); in wps_process_authenticator()
66 head = wpabuf_head(msg); in wps_process_key_wrap_auth()
Dwps_attr_build.c174 addr[0] = wpabuf_head(wps->last_msg); in wps_build_authenticator()
176 addr[1] = wpabuf_head(msg); in wps_build_authenticator()
382 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, wpabuf_head(msg), in wps_build_key_wrap_auth()
433 addr[0] = wpabuf_head(pubkey); in wps_build_oob_dev_pw()
475 pos = wpabuf_head(data); in wps_ie_encapsulate()
/hostap-latest/src/p2p/
Dp2p_sd.c28 pos = wpabuf_head(wfd); in wfd_wsd_supported()
204 wpabuf_head(req), wpabuf_len(req), 200) < 0) in p2p_send_gas_comeback_req()
315 wpabuf_head(req), wpabuf_len(req), wait_time) < 0) { in p2p_start_sd()
473 wpabuf_head(resp), wpabuf_len(resp), wait_time) < 0) in p2p_sd_response()
694 wpabuf_head(resp), wpabuf_len(resp), wait_time) < 0) in p2p_rx_gas_comeback_req()
870 wpabuf_head(p2p->sd_rx_resp), in p2p_rx_gas_comeback_resp()
/hostap-latest/src/eap_peer/
Deap_pax.c218 wpabuf_head(resp), wpabuf_len(resp) - EAP_PAX_ICV_LEN, in eap_pax_process_std_1()
316 wpabuf_head(resp), wpabuf_len(resp) - EAP_PAX_ICV_LEN, in eap_pax_process_std_3()
421 wpabuf_head(reqData), mlen, NULL, 0, NULL, 0, in eap_pax_process()
425 wpabuf_head(reqData), mlen, NULL, 0, NULL, 0, in eap_pax_process()

1234567