Home
last modified time | relevance | path

Searched refs:hex (Results 1 – 25 of 37) sorted by relevance

12

/hostap-latest/wpa_supplicant/examples/p2p/
Dp2p_invite.py33 print("BSSID = ", hex(bssid[0]) , ":" , \
34 hex(bssid[1]) , ":" , hex(bssid[2]) , ":", \
35 hex(bssid[3]) , ":" , hex(bssid[4]) , ":" , \
36 hex(bssid[5]))
/hostap-latest/hostapd/
Dhostapd.sim_db4 # Kc: hex, 8 octets
5 # SRES: hex, 4 octets
6 # RAND: hex, 16 octets
Dhostapd.wpa_psk5 # characters or as a 256-bit hex PSK (64 hex digits).
Dctrl_iface.c1029 char hex[PMK_LEN * 2 + 1]; in hostapd_ctrl_iface_get_config() local
1030 wpa_snprintf_hex(hex, sizeof(hex), in hostapd_ctrl_iface_get_config()
1032 ret = os_snprintf(pos, end - pos, "psk=%s\n", hex); in hostapd_ctrl_iface_get_config()
1070 char hex[PMK_LEN * 2 + 1]; in hostapd_ctrl_iface_get_config() local
1072 wpa_snprintf_hex(hex, sizeof(hex), ssid->wpa_psk->psk, in hostapd_ctrl_iface_get_config()
1076 hex); in hostapd_ctrl_iface_get_config()
1077 forced_memzero(hex, sizeof(hex)); in hostapd_ctrl_iface_get_config()
Dhostapd.eap_user9 # Password hash is stored as hash:<16-octets of hex data> without quotation
/hostap-latest/tests/hwsim/auth_serv/
Dhlr_auc_gw.gsm8 # Kc: hex, 8 octets
9 # SRES: hex, 4 octets
10 # RAND: hex, 16 octets
/hostap-latest/src/ap/
Dwnm_ap.c436 char *hex = NULL; in ieee802_11_rx_bss_trans_mgmt_query() local
472 hex = os_malloc(hex_len); in ieee802_11_rx_bss_trans_mgmt_query()
473 if (hex) in ieee802_11_rx_bss_trans_mgmt_query()
474 wpa_snprintf_hex(hex, hex_len, pos, end - pos); in ieee802_11_rx_bss_trans_mgmt_query()
478 MAC2STR(addr), reason, hex ? " neighbor=" : "", hex); in ieee802_11_rx_bss_trans_mgmt_query()
479 os_free(hex); in ieee802_11_rx_bss_trans_mgmt_query()
633 char *hex; in ieee802_11_rx_wnm_coloc_intf_report() local
660 hex = os_malloc(hex_len); in ieee802_11_rx_wnm_coloc_intf_report()
661 if (!hex) in ieee802_11_rx_wnm_coloc_intf_report()
663 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_11_rx_wnm_coloc_intf_report()
[all …]
Ddpp_hostapd.c1159 char hex[64 * 2 + 1]; in hostapd_dpp_handle_config_obj() local
1161 wpa_snprintf_hex(hex, sizeof(hex), in hostapd_dpp_handle_config_obj()
1165 hex); in hostapd_dpp_handle_config_obj()
1167 char hex[PMK_LEN * 2 + 1]; in hostapd_dpp_handle_config_obj() local
1169 wpa_snprintf_hex(hex, sizeof(hex), conf->psk, PMK_LEN); in hostapd_dpp_handle_config_obj()
1171 hex); in hostapd_dpp_handle_config_obj()
1174 char *hex; in hostapd_dpp_handle_config_obj() local
1178 hex = os_malloc(hexlen); in hostapd_dpp_handle_config_obj()
1179 if (hex) { in hostapd_dpp_handle_config_obj()
1180 wpa_snprintf_hex(hex, hexlen, in hostapd_dpp_handle_config_obj()
[all …]
Dwpa_auth_glue.c599 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_eapol() local
601 if (hex == NULL) in hostapd_wpa_auth_send_eapol()
603 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_eapol()
605 MAC2STR(addr), hex); in hostapd_wpa_auth_send_eapol()
606 os_free(hex); in hostapd_wpa_auth_send_eapol()
781 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_ether() local
783 if (hex == NULL) in hostapd_wpa_auth_send_ether()
785 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_ether()
787 MAC2STR(dst), hex); in hostapd_wpa_auth_send_ether()
788 os_free(hex); in hostapd_wpa_auth_send_ether()
Ddrv_callbacks.c1858 char *hex = os_malloc(hex_len); in hostapd_mgmt_rx() local
1860 if (hex) { in hostapd_mgmt_rx()
1861 wpa_snprintf_hex(hex, hex_len, rx_mgmt->frame, in hostapd_mgmt_rx()
1863 wpa_msg(hapd->msg_ctx, MSG_INFO, "MGMT-RX %s", hex); in hostapd_mgmt_rx()
1864 os_free(hex); in hostapd_mgmt_rx()
Dieee802_1x.c84 char *hex = os_malloc(hex_len); in ieee802_1x_send() local
86 if (hex) { in ieee802_1x_send()
87 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_1x_send()
90 MAC2STR(sta->addr), hex); in ieee802_1x_send()
91 os_free(hex); in ieee802_1x_send()
/hostap-latest/wpa_supplicant/
Dwpas_glue.c104 char *hex = os_malloc(hex_len); in wpa_ether_send() local
106 if (hex == NULL) in wpa_ether_send()
108 wpa_snprintf_hex(hex, hex_len, buf, len); in wpa_ether_send()
110 MAC2STR(dest), hex); in wpa_ether_send()
111 os_free(hex); in wpa_ether_send()
1283 char *hex; in wpa_supplicant_fils_hlp_rx() local
1287 hex = os_malloc(hexlen); in wpa_supplicant_fils_hlp_rx()
1288 if (!hex) in wpa_supplicant_fils_hlp_rx()
1290 wpa_snprintf_hex(hex, hexlen, pkt, pkt_len); in wpa_supplicant_fils_hlp_rx()
1292 " frame=%s", MAC2STR(dst), MAC2STR(src), hex); in wpa_supplicant_fils_hlp_rx()
[all …]
DREADME-P2P324 auto accept - Mandatory ASCII hex-encoded boolean (0 == no auto-accept,
327 Advertisement ID - Mandatory non-zero ASCII hex-encoded u32
329 State - Mandatory ASCII hex-encoded u8 (0 -- Svc not available,
331 Config Methods - Mandatory ASCII hex-encoded u16 (bitmask of WSC config
356 auto accept - Mandatory ASCII hex-encoded boolean (1 == true, 0 == false)
357 Advertisement ID - Mandatory non-zero ASCII hex-encoded u32
359 State - Mandatory ASCII hex-encoded u8 (can be used to indicate svc
361 Config Methods - Mandatory ASCII hex-encoded u16 (bitmask of WSC config
412 p2p_serv_disc_req 00:00:00:00:00:00 upnp <version hex> <ST: from M-SEARCH>
463 Transaction ID - Mandatory non-zero ASCII hex-encoded u8 for GAS
[all …]
Ddpp_supplicant.c1685 char hex[64 * 2 + 1]; in wpas_dpp_handle_config_obj() local
1687 wpa_snprintf_hex(hex, sizeof(hex), in wpas_dpp_handle_config_obj()
1691 hex); in wpas_dpp_handle_config_obj()
1693 char hex[PMK_LEN * 2 + 1]; in wpas_dpp_handle_config_obj() local
1695 wpa_snprintf_hex(hex, sizeof(hex), conf->psk, PMK_LEN); in wpas_dpp_handle_config_obj()
1697 hex); in wpas_dpp_handle_config_obj()
1700 char *hex; in wpas_dpp_handle_config_obj() local
1704 hex = os_malloc(hexlen); in wpas_dpp_handle_config_obj()
1705 if (hex) { in wpas_dpp_handle_config_obj()
1706 wpa_snprintf_hex(hex, hexlen, in wpas_dpp_handle_config_obj()
[all …]
Dwin_example.reg23 "testblob"=hex:01,02,03,04,05
Dconfig_file.c623 char hex[32 * 2 + 1]; in write_psk_list() local
626 wpa_snprintf_hex(hex, sizeof(hex), psk->psk, sizeof(psk->psk)); in write_psk_list()
628 psk->p2p ? "P2P-" : "", MAC2STR(psk->addr), hex); in write_psk_list()
/hostap-latest/tests/hwsim/
Dtest_sigma_dut.py1462 hex = res.split(',')[3]
1463 uri = from_hex(hex)
1608 hex = res.split(',')[3]
1609 uri = from_hex(hex)
1683 hex = res.split(',')[3]
1684 uri = from_hex(hex)
1717 hex = res.split(',')[3]
1718 uri = from_hex(hex)
1786 hex = res.split(',')[3]
1787 uri = from_hex(hex)
[all …]
/hostap-latest/wpa_supplicant/wpa_gui-qt4/
Dnetworkconfig.cpp461 bool hex; in writeWepKey() local
479 hex = true; in writeWepKey()
484 hex = false; in writeWepKey()
489 if (hex && len != 10 && len != 26 && len != 32) in writeWepKey()
490 hex = false; in writeWepKey()
492 setNetworkParam(network_id, buf, txt, !hex); in writeWepKey()
/hostap-latest/src/utils/
Dcommon.c28 int hex2byte(const char *hex) in hex2byte() argument
31 a = hex2num(*hex++); in hex2byte()
34 b = hex2num(*hex++); in hex2byte()
171 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin() argument
175 const char *ipos = hex; in hexstr2bin()
Dcommon.h523 int hex2byte(const char *hex);
524 int hexstr2bin(const char *hex, u8 *buf, size_t len);
/hostap-latest/src/wps/
Dwps_registrar.c1623 char hex[65]; in wps_build_cred() local
1746 wpa_snprintf_hex(hex, sizeof(hex), pskfile_psk, PMK_LEN); in wps_build_cred()
1747 os_memcpy(wps->cred.key, hex, PMK_LEN * 2); in wps_build_cred()
1752 wpa_snprintf_hex(hex, sizeof(hex), wps->wps->psk, PMK_LEN); in wps_build_cred()
1753 os_memcpy(wps->cred.key, hex, PMK_LEN * 2); in wps_build_cred()
1779 wpa_snprintf_hex(hex, sizeof(hex), wps->new_psk, in wps_build_cred()
1781 os_memcpy(wps->cred.key, hex, wps->new_psk_len * 2); in wps_build_cred()
Dwps_enrollee.c305 char hex[65]; in wps_build_cred_network_key() local
318 wpa_snprintf_hex(hex, sizeof(hex), psk, sizeof(psk)); in wps_build_cred_network_key()
321 wpabuf_put_data(msg, hex, sizeof(psk) * 2); in wps_build_cred_network_key()
/hostap-latest/src/common/
Ddpp_auth.c885 char hex[SHA256_MAC_LEN * 2 + 1]; in dpp_auth_req_rx() local
899 wpa_snprintf_hex(hex, sizeof(hex), i_bootstrap, in dpp_auth_req_rx()
902 hex[0] = '\0'; in dpp_auth_req_rx()
906 "%s", hex); in dpp_auth_req_rx()
Ddpp.c5049 char hex[SHA256_MAC_LEN * 2 + 1]; in dpp_notify_auth_success() local
5053 wpa_snprintf_hex(hex, sizeof(hex), hash, sizeof(hash)); in dpp_notify_auth_success()
5055 hex[0] = '\0'; in dpp_notify_auth_success()
5059 initiator, hex, auth->own_bi ? (int) auth->own_bi->id : -1, in dpp_notify_auth_success()
5087 char hex[SHA256_MAC_LEN * 2 + 1]; in dpp_notify_chirp_received() local
5089 wpa_snprintf_hex(hex, sizeof(hex), hash, SHA256_MAC_LEN); in dpp_notify_chirp_received()
5092 id, MAC2STR(src), freq, hex); in dpp_notify_chirp_received()
/hostap-latest/hs20/client/
Dosu_client.c1403 char *pw, *hex, *pos, *end; in set_pps_cred_password() local
1411 hex = malloc(len * 2 + 1); in set_pps_cred_password()
1412 if (hex == NULL) { in set_pps_cred_password()
1416 end = hex + len * 2 + 1; in set_pps_cred_password()
1417 pos = hex; in set_pps_cred_password()
1424 if (set_cred(ctx->ifname, id, "password", hex) < 0) in set_pps_cred_password()
1426 free(hex); in set_pps_cred_password()

12