| /hostap-latest/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 | 171 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin() function 688 if (hexstr2bin(value, str, tlen)) { in wpa_config_parse_string()
|
| /hostap-latest/tests/ |
| D | test-aes.c | 245 if (hexstr2bin(tc->k, k, k_len)) { in test_gcm() 252 if (hexstr2bin(tc->p, p, p_len)) { in test_gcm() 259 if (hexstr2bin(tc->aad, aad, aad_len)) { in test_gcm() 266 if (hexstr2bin(tc->iv, iv, iv_len)) { in test_gcm() 272 if (hexstr2bin(tc->c, c, p_len)) { in test_gcm() 278 if (hexstr2bin(tc->t, t, sizeof(t))) { in test_gcm() 391 if (hexstr2bin(pos, bin, bin_len) < 0) { in test_nist_key_wrap_ae() 526 if (hexstr2bin(pos, bin, bin_len) < 0) { in test_nist_key_wrap_ad()
|
| D | test-rsa-sig-ver.c | 66 if (hexstr2bin(pos, msg, msg_len) < 0) { in cavp_rsa_sig_ver() 79 if (hexstr2bin(pos, n, n_len) < 0) { in cavp_rsa_sig_ver() 92 if (hexstr2bin(pos, e, e_len) < 0) { in cavp_rsa_sig_ver() 105 if (hexstr2bin(pos, s, s_len) < 0) { in cavp_rsa_sig_ver() 117 if (hexstr2bin(pos, em, em_len) < 0) { in cavp_rsa_sig_ver()
|
| D | test-sha1.c | 65 if (hexstr2bin(pos, msg, msg_len / 8) < 0) { in cavp_shavs() 82 if (hexstr2bin(pos, md, 20) < 0) { in cavp_shavs()
|
| D | test-sha256.c | 65 if (hexstr2bin(pos, msg, msg_len / 8) < 0) { in cavp_shavs() 82 if (hexstr2bin(pos, md, 32) < 0) { in cavp_shavs()
|
| /hostap-latest/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 | 221 if (hexstr2bin(*pos, user->password, len) < 0) { in hostapd_config_eap_user_salted() 239 if (hexstr2bin(*pos, user->salt, user->salt_len) < 0) { in hostapd_config_eap_user_salted() 494 if (hexstr2bin(pos, user->password, 16) < 0) { in hostapd_config_read_eap_user() 536 if (hexstr2bin(pos, user->password, in hostapd_config_read_eap_user() 807 if (hexstr2bin(val, wep->key[keyidx], len) < 0) in hostapd_config_read_wep() 920 if (!hexstr2bin(pos, key, key_len)) in rkh_derive_key() 924 if (hexstr2bin(pos, oldkey, sizeof(oldkey))) in rkh_derive_key() 1297 hexstr2bin(pos, oi, len / 2)) { in parse_roaming_consortium() 1654 if (hexstr2bin(delim, wpabuf_put(payload, len), len) < 0) { in parse_anqp_elem() 1774 if (hexstr2bin(pos, wan_metrics, 1) < 0) in hs20_parse_wan_metrics() [all …]
|
| D | ctrl_iface.c | 254 if (hexstr2bin(pos, wpabuf_put(buf, len), len) < 0) { in hostapd_ctrl_iface_wps_nfc_tag_read() 414 if (hexstr2bin(pos, wpabuf_put(req, len), len) < 0) { in hostapd_ctrl_iface_nfc_report_handover() 431 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) { in hostapd_ctrl_iface_nfc_report_handover() 1633 if (hexstr2bin(cmd, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_tx() 1684 if (!buf || hexstr2bin(param, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_tx_status_process() 1754 if (hexstr2bin(param, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_rx_process() 1801 if (hexstr2bin(pos, buf, len) < 0) { in hostapd_ctrl_iface_eapol_rx() 1844 if (!buf || hexstr2bin(pos, buf, len) < 0) { in hostapd_ctrl_iface_eapol_tx() 2069 if (hexstr2bin(cmd, buf, len) < 0) in hostapd_ctrl_iface_data_test_frame() 2239 if (hexstr2bin(pos, seq, sizeof(seq)) < 0) in hostapd_ctrl_set_key() [all …]
|
| /hostap-latest/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 …]
|
| /hostap-latest/wlantest/ |
| D | wlantest.c | 179 if (hexstr2bin(buf, pmk, pmk_len) < 0) in add_pmk_file() 190 if (hexstr2bin(&buf[2 * PMK_LEN], pmk, PMK_LEN) < 0) in add_pmk_file() 233 if (hexstr2bin(buf, ptk, ptk_len) < 0) in add_ptk_file() 272 if (hexstr2bin(key, w->key, len / 2) < 0) { in add_wep()
|
| /hostap-latest/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 | 230 if (hexstr2bin(pos, data->auts, EAP_AKA_AUTS_LEN) < 0) in eap_aka_ext_sim_result() 247 if (hexstr2bin(pos, data->ik, EAP_AKA_IK_LEN) < 0) in eap_aka_ext_sim_result() 255 if (hexstr2bin(pos, data->ck, EAP_AKA_CK_LEN) < 0) in eap_aka_ext_sim_result() 268 if (hexstr2bin(pos, data->res, data->res_len) < 0) in eap_aka_ext_sim_result() 317 if (hexstr2bin(pos, k, 16)) in eap_aka_umts_auth() 324 if (hexstr2bin(pos, opc, 16)) in eap_aka_umts_auth() 331 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 | 248 if (hexstr2bin(pos, data->kc[i], EAP_SIM_KC_LEN) < 0) in eap_sim_ext_sim_result() 257 if (hexstr2bin(pos, data->sres[i], EAP_SIM_SRES_LEN) < 0) in eap_sim_ext_sim_result() 326 if (hexstr2bin(pos, k, 16)) in eap_sim_gsm_auth() 333 if (hexstr2bin(pos, opc, 16)) in eap_sim_gsm_auth()
|
| /hostap-latest/src/wps/ |
| D | wps_module_tests.c | 282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) { in wps_attr_parse_tests()
|
| /hostap-latest/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 | 178 hexstr2bin(pos, ssid[ssid_count].ssid, in set_disallow_aps() 267 if (hexstr2bin(pos, blob->data, len / 2) < 0) { in wpas_ctrl_set_blob() 706 else if (hexstr2bin(value, dpp_pkex_ephemeral_key_override, in wpa_supplicant_ctrl_iface_set() 716 else if (hexstr2bin(value, dpp_protocol_key_override, in wpa_supplicant_ctrl_iface_set() 726 else if (hexstr2bin(value, dpp_nonce_override, hex_len / 2)) in wpa_supplicant_ctrl_iface_set() 1636 if (hexstr2bin(pos, wpabuf_put(buf, len), len) < 0) { in wpa_supplicant_ctrl_iface_wps_nfc_tag_read() 1879 if (hexstr2bin(pos, wpabuf_put(req, len), len) < 0) { in wpas_ctrl_nfc_report_handover() 1899 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) { in wpas_ctrl_nfc_report_handover() 3465 if (payload_len && hexstr2bin(pos, buf + ETH_HLEN, payload_len) < 0) in wpa_supplicant_ctrl_iface_mesh_link_probe() 6467 hexstr2bin(pos2, _group_ssid, group_ssid_len) < 0) in p2p_ctrl_connect() [all …]
|
| D | ctrl_iface_udp.c | 300 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) { 694 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
|
| D | config.c | 619 if (hexstr2bin(value, ssid->psk, PMK_LEN) || in wpa_config_parse_psk() 1768 if (hexstr2bin(value + 5, hash, 16)) { in wpa_config_parse_password() 1863 if (hexstr2bin(value + 5, hash, 16)) { in wpa_config_parse_machine_password() 2184 if (hexstr2bin(pos, p->psk, PMK_LEN) || pos[PMK_LEN * 2] != '\0') { in wpa_config_parse_psk_list() 2257 hexstr2bin(value, ssid->mka_cak, len / 2)) { in wpa_config_parse_mka_cak() 2286 if (hexstr2bin(value, ssid->mka_ckn, ssid->mka_ckn_len)) { in wpa_config_parse_mka_ckn() 3664 hexstr2bin(pos, in wpa_config_set_cred_ois() 5049 if (hexstr2bin(pos, config->os_version, 4)) { in wpa_config_process_os_version() 5077 if (hexstr2bin(pos, p, len)) { in wpa_config_process_wps_vendor_ext_m1()
|
| /hostap-latest/src/ap/ |
| D | ctrl_iface_ap.c | 1191 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_add() 1204 hexstr2bin(pos, pmk, pmk_len) < 0) in hostapd_ctrl_iface_pmksa_add() 1248 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry() 1256 if (hexstr2bin(pos, pmk, PMK_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry()
|
| /hostap-latest/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()
|
| /hostap-latest/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() 1385 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom() 1400 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom() 1414 if (hexstr2bin(spos, bin, bytes) < 0) { in wext_get_scan_custom()
|
| /hostap-latest/src/common/ |
| D | dpp.c | 1201 hexstr2bin(pos, conf->ssid, conf->ssid_len) < 0) in dpp_configuration_parse_helper() 1235 hexstr2bin(pos, (u8 *) conf->passphrase, pass_len) < 0) in dpp_configuration_parse_helper() 1242 if (hexstr2bin(pos, conf->psk, PMK_LEN) < 0) in dpp_configuration_parse_helper() 1302 hexstr2bin(pos, (u8 *) conf->extra_value, len) < 0) in dpp_configuration_parse_helper() 2575 hexstr2bin(psk_hex->string, conf->psk, PMK_LEN) < 0) { in dpp_parse_cred_legacy() 4472 hexstr2bin(key, privkey, privkey_len) < 0) in dpp_bootstrap_gen() 4821 hexstr2bin(key, privkey, privkey_len) < 0) in dpp_configurator_add() 4829 hexstr2bin(ppkey, pp_key, pp_key_len) < 0) in dpp_configurator_add()
|