Home
last modified time | relevance | path

Searched refs:hexstr2bin (Results 1 – 25 of 39) sorted by relevance

12

/external/wpa_supplicant_8/src/utils/
Duuid.c23 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()
Dwpabuf.c334 if (hexstr2bin(buf, wpabuf_put(ret, len), len)) { in wpabuf_parse_bin()
Dcommon.c170 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin() function
677 if (hexstr2bin(value, str, tlen)) { in wpa_config_parse_string()
Djson.c128 hexstr2bin(pos + 1, bin, 2) < 0 || in json_parse_string()
Dcommon.h478 int hexstr2bin(const char *hex, u8 *buf, size_t len);
/external/wpa_supplicant_8/hostapd/
Dhlr_auc_gw.c174 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 …]
Dconfig_file.c273 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 …]
Dctrl_iface.c246 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/
Deap_sim_db.c321 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/
Dwps_module_tests.c282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) { in wps_attr_parse_tests()
/external/wpa_supplicant_8/src/eap_peer/
Deap_wsc.c76 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()
Deap_aka.c208 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()
Dmschapv2.c118 hexstr2bin((char *) (buf + 2), recv_response, in mschapv2_verify_auth_response()
Deap_sim.c220 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()
Deap_mschapv2.c436 if (hexstr2bin(pos, data->passwd_change_challenge, in eap_mschapv2_failure_txt()
/external/wpa_supplicant_8/wpa_supplicant/
Dwifi_display.c261 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()
Dctrl_iface.c168 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 …]
Dctrl_iface_udp.c288 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
652 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
Dconfig.c550 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/
Dctrl_iface_ap.c914 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()
Dieee802_11_auth.c479 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) { in decode_tunnel_passwords()
Dwps_hostapd.c381 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/
Dcrypto_module_tests.c480 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/
Ddriver_wext.c262 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/
Dhidl_manager.cpp392 if (hexstr2bin(match.str().c_str(), rand.data(), rand.size())) { in parseGsmAuthNetworkRequest()
413 if (hexstr2bin( in parseUmtsAuthNetworkRequest()
419 if (hexstr2bin( in parseUmtsAuthNetworkRequest()

12