/external/wpa_supplicant_8/src/utils/ |
D | uuid.c | 23 if (hexstr2bin(pos, opos, 4)) in uuid_str2bin() 28 if (*pos++ != '-' || hexstr2bin(pos, opos, 2)) in uuid_str2bin() 33 if (*pos++ != '-' || hexstr2bin(pos, opos, 2)) in uuid_str2bin() 38 if (*pos++ != '-' || hexstr2bin(pos, opos, 2)) in uuid_str2bin() 43 if (*pos++ != '-' || hexstr2bin(pos, opos, 6)) in uuid_str2bin()
|
D | wpabuf.c | 334 if (hexstr2bin(buf, wpabuf_put(ret, len), len)) { in wpabuf_parse_bin()
|
D | common.c | 170 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin() function 677 if (hexstr2bin(value, str, tlen)) { in wpa_config_parse_string()
|
D | json.c | 128 hexstr2bin(pos + 1, bin, 2) < 0 || in json_parse_string()
|
D | common.h | 478 int hexstr2bin(const char *hex, u8 *buf, size_t len);
|
/external/wpa_supplicant_8/hostapd/ |
D | hlr_auc_gw.c | 174 hexstr2bin(argv[i], m->ki, sizeof(m->ki))) { in get_milenage_cb() 180 hexstr2bin(argv[i], m->opc, sizeof(m->opc))) { in get_milenage_cb() 186 hexstr2bin(argv[i], m->amf, sizeof(m->amf))) { in get_milenage_cb() 192 hexstr2bin(argv[i], m->sqn, sizeof(m->sqn))) { in get_milenage_cb() 326 if (!pos || os_strlen(pos) != 16 || hexstr2bin(pos, g->kc, 8)) { in read_gsm_triplets() 335 hexstr2bin(pos, g->sres, 4)) { in read_gsm_triplets() 344 hexstr2bin(pos, g->_rand, 16)) { in read_gsm_triplets() 439 hexstr2bin(pos, m->ki, 16)) { in read_milenage() 448 hexstr2bin(pos, m->opc, 16)) { in read_milenage() 456 if (!pos || os_strlen(pos) != 4 || hexstr2bin(pos, m->amf, 2)) { in read_milenage() [all …]
|
D | config_file.c | 273 if (hexstr2bin(*pos, user->password, len) < 0) { in hostapd_config_eap_user_salted() 291 if (hexstr2bin(*pos, user->salt, user->salt_len) < 0) { in hostapd_config_eap_user_salted() 546 if (hexstr2bin(pos, user->password, 16) < 0) { in hostapd_config_read_eap_user() 588 if (hexstr2bin(pos, user->password, in hostapd_config_read_eap_user() 708 if (hexstr2bin(pos, wpabuf_put(attr->val, len), len) < 0) { in hostapd_parse_radius_attr() 917 if (hexstr2bin(val, wep->key[keyidx], len) < 0) in hostapd_config_read_wep() 1127 if (!hexstr2bin(pos, key, key_len)) in rkh_derive_key() 1131 if (hexstr2bin(pos, oldkey, sizeof(oldkey))) in rkh_derive_key() 1416 hexstr2bin(pos, oi, len / 2)) { in parse_roaming_consortium() 1773 if (hexstr2bin(delim, wpabuf_put(payload, len), len) < 0) { in parse_anqp_elem() [all …]
|
D | ctrl_iface.c | 246 if (hexstr2bin(pos, wpabuf_put(buf, len), len) < 0) { in hostapd_ctrl_iface_wps_nfc_tag_read() 406 if (hexstr2bin(pos, wpabuf_put(req, len), len) < 0) { in hostapd_ctrl_iface_nfc_report_handover() 423 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) { in hostapd_ctrl_iface_nfc_report_handover() 1626 if (hexstr2bin(cmd, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_tx() 1677 if (!buf || hexstr2bin(param, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_tx_status_process() 1747 if (hexstr2bin(param, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_rx_process() 1794 if (hexstr2bin(pos, buf, len) < 0) { in hostapd_ctrl_iface_eapol_rx() 1988 if (hexstr2bin(cmd, buf, len) < 0) in hostapd_ctrl_iface_data_test_frame() 2194 if (hexstr2bin(pos, seq, sizeof(seq)) < 0) in hostapd_ctrl_set_key() 2201 if (hexstr2bin(pos, key, key_len) < 0) in hostapd_ctrl_set_key() [all …]
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_sim_db.c | 321 hexstr2bin(argv[i], reauth->mk, sizeof(reauth->mk)); in get_reauth_cb() 323 hexstr2bin(argv[i], reauth->k_encr, in get_reauth_cb() 326 hexstr2bin(argv[i], reauth->k_aut, in get_reauth_cb() 329 hexstr2bin(argv[i], reauth->k_re, in get_reauth_cb() 496 if (hexstr2bin(start, entry->u.sim.kc[num_chal], in eap_sim_db_sim_resp_auth() 505 if (hexstr2bin(start, entry->u.sim.sres[num_chal], in eap_sim_db_sim_resp_auth() 510 if (hexstr2bin(start, entry->u.sim.rand[num_chal], in eap_sim_db_sim_resp_auth() 568 if (hexstr2bin(start, entry->u.aka.rand, EAP_AKA_RAND_LEN)) in eap_sim_db_aka_resp_auth() 576 if (hexstr2bin(start, entry->u.aka.autn, EAP_AKA_AUTN_LEN)) in eap_sim_db_aka_resp_auth() 584 if (hexstr2bin(start, entry->u.aka.ik, EAP_AKA_IK_LEN)) in eap_sim_db_aka_resp_auth() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_module_tests.c | 282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) { in wps_attr_parse_tests()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_wsc.c | 76 hexstr2bin(pos, cred->ssid, len / 2)) { in eap_wsc_new_ap_settings() 128 hexstr2bin(pos, cred->key, len / 2)) { in eap_wsc_new_ap_settings() 237 hexstr2bin(pos, pkhash, WPS_OOB_PUBKEY_HASH_LEN)) { in eap_wsc_init()
|
D | eap_aka.c | 208 if (hexstr2bin(pos, data->auts, EAP_AKA_AUTS_LEN) < 0) in eap_aka_ext_sim_result() 225 if (hexstr2bin(pos, data->ik, EAP_AKA_IK_LEN) < 0) in eap_aka_ext_sim_result() 233 if (hexstr2bin(pos, data->ck, EAP_AKA_CK_LEN) < 0) in eap_aka_ext_sim_result() 246 if (hexstr2bin(pos, data->res, data->res_len) < 0) in eap_aka_ext_sim_result() 295 if (hexstr2bin(pos, k, 16)) in eap_aka_umts_auth() 302 if (hexstr2bin(pos, opc, 16)) in eap_aka_umts_auth() 309 if (hexstr2bin(pos, sqn, 6)) in eap_aka_umts_auth()
|
D | mschapv2.c | 118 hexstr2bin((char *) (buf + 2), recv_response, in mschapv2_verify_auth_response()
|
D | eap_sim.c | 220 if (hexstr2bin(pos, data->kc[i], EAP_SIM_KC_LEN) < 0) in eap_sim_ext_sim_result() 229 if (hexstr2bin(pos, data->sres[i], EAP_SIM_SRES_LEN) < 0) in eap_sim_ext_sim_result() 298 if (hexstr2bin(pos, k, 16)) in eap_sim_gsm_auth() 305 if (hexstr2bin(pos, opc, 16)) in eap_sim_gsm_auth()
|
D | eap_mschapv2.c | 436 if (hexstr2bin(pos, data->passwd_change_challenge, in eap_mschapv2_failure_txt()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wifi_display.c | 261 if (hexstr2bin(pos, wpabuf_put(e, len), len) < 0) { in wifi_display_subelem_set() 283 if (hexstr2bin(pos, wpabuf_put(e, len), len) < 0) { in wifi_display_subelem_set()
|
D | ctrl_iface.c | 168 hexstr2bin(pos, ssid[ssid_count].ssid, in set_disallow_aps() 257 if (hexstr2bin(pos, blob->data, len / 2) < 0) { in wpas_ctrl_set_blob() 612 else if (hexstr2bin(value, dpp_pkex_ephemeral_key_override, in wpa_supplicant_ctrl_iface_set() 622 else if (hexstr2bin(value, dpp_protocol_key_override, in wpa_supplicant_ctrl_iface_set() 632 else if (hexstr2bin(value, dpp_nonce_override, hex_len / 2)) in wpa_supplicant_ctrl_iface_set() 1427 if (hexstr2bin(pos, wpabuf_put(buf, len), len) < 0) { in wpa_supplicant_ctrl_iface_wps_nfc_tag_read() 1670 if (hexstr2bin(pos, wpabuf_put(req, len), len) < 0) { in wpas_ctrl_nfc_report_handover() 1690 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) { in wpas_ctrl_nfc_report_handover() 5674 hexstr2bin(pos2, _group_ssid, group_ssid_len) < 0) in p2p_ctrl_connect() 5803 if (hexstr2bin(pos, &version, 1) < 0) in p2p_ctrl_serv_disc_req() [all …]
|
D | ctrl_iface_udp.c | 288 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) { 652 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
|
D | config.c | 550 if (hexstr2bin(value, ssid->psk, PMK_LEN) || in wpa_config_parse_psk() 1662 if (hexstr2bin(value + 5, hash, 16)) { in wpa_config_parse_password() 1937 if (hexstr2bin(pos, p->psk, PMK_LEN) || pos[PMK_LEN * 2] != '\0') { in wpa_config_parse_psk_list() 2010 hexstr2bin(value, ssid->mka_cak, len / 2)) { in wpa_config_parse_mka_cak() 2039 if (hexstr2bin(value, ssid->mka_ckn, ssid->mka_ckn_len)) { in wpa_config_parse_mka_ckn() 3240 hexstr2bin(pos, in wpa_config_set_cred_roaming_consortiums() 4396 if (hexstr2bin(pos, config->os_version, 4)) { in wpa_config_process_os_version() 4424 if (hexstr2bin(pos, p, len)) { in wpa_config_process_wps_vendor_ext_m1() 4602 if (hexstr2bin(pos, p, len)) { in wpa_config_process_ap_vendor_elements()
|
/external/wpa_supplicant_8/src/ap/ |
D | ctrl_iface_ap.c | 914 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_add() 927 hexstr2bin(pos, pmk, pmk_len) < 0) in hostapd_ctrl_iface_pmksa_add() 971 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry() 979 if (hexstr2bin(pos, pmk, PMK_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry()
|
D | ieee802_11_auth.c | 479 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) { in decode_tunnel_passwords()
|
D | wps_hostapd.c | 381 hexstr2bin((const char *) cred->key, in hapd_wps_reconfig_in_memory() 1745 hexstr2bin(ssid, cred.ssid, len / 2)) in hostapd_wps_config_ap() 1773 hexstr2bin(key, cred.key, len / 2)) in hostapd_wps_config_ap()
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_module_tests.c | 480 if (hexstr2bin(tv->key, key, sizeof(key)) || in test_ecb() 481 hexstr2bin(tv->plaintext, plain, sizeof(plain)) || in test_ecb() 482 hexstr2bin(tv->ciphertext, cipher, sizeof(cipher))) { in test_ecb()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_wext.c | 262 hexstr2bin(spos, req_ies, bytes) < 0) in wpa_driver_wext_event_wireless_custom() 282 hexstr2bin(spos, resp_ies, bytes) < 0) in wpa_driver_wext_event_wireless_custom() 1379 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom() 1394 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom() 1408 if (hexstr2bin(spos, bin, bytes) < 0) { in wext_get_scan_custom()
|
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.2/ |
D | hidl_manager.cpp | 392 if (hexstr2bin(match.str().c_str(), rand.data(), rand.size())) { in parseGsmAuthNetworkRequest() 413 if (hexstr2bin( in parseUmtsAuthNetworkRequest() 419 if (hexstr2bin( in parseUmtsAuthNetworkRequest()
|