Home
last modified time | relevance | path

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

12

/freebsd/contrib/wpa/src/utils/
H A 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()
H A Dwpabuf.c334 if (hexstr2bin(buf, wpabuf_put(ret, len), len)) { in wpabuf_parse_bin()
H A Dcommon.c171 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin() function
688 if (hexstr2bin(value, str, tlen)) { in wpa_config_parse_string()
H A Djson.c128 hexstr2bin(pos + 1, bin, 2) < 0 || in json_parse_string()
H A Dcommon.h501 int hexstr2bin(const char *hex, u8 *buf, size_t len);
/freebsd/contrib/wpa/hostapd/
H A 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 …]
H A Dconfig_file.c221 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 …]
H A Dctrl_iface.c251 if (hexstr2bin(pos, wpabuf_put(buf, len), len) < 0) { in hostapd_ctrl_iface_wps_nfc_tag_read()
411 if (hexstr2bin(pos, wpabuf_put(req, len), len) < 0) { in hostapd_ctrl_iface_nfc_report_handover()
428 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) { in hostapd_ctrl_iface_nfc_report_handover()
1628 if (hexstr2bin(cmd, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_tx()
1679 if (!buf || hexstr2bin(param, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_tx_status_process()
1749 if (hexstr2bin(param, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_rx_process()
1796 if (hexstr2bin(pos, buf, len) < 0) { in hostapd_ctrl_iface_eapol_rx()
1839 if (!buf || hexstr2bin(pos, buf, len) < 0) { in hostapd_ctrl_iface_eapol_tx()
2064 if (hexstr2bin(cmd, buf, len) < 0) in hostapd_ctrl_iface_data_test_frame()
2234 if (hexstr2bin(pos, seq, sizeof(seq)) < 0) in hostapd_ctrl_set_key()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A 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 …]
/freebsd/contrib/ldns/drill/
H A Dwork.c22 hexstr2bin(char *hexstr, int len, uint8_t *buf, size_t offset, size_t buf_len) in hexstr2bin() function
153 wirelen = hexstr2bin((char *) hexbuf, in packetbuffromfile()
/freebsd/contrib/wpa/src/wps/
H A Dwps_module_tests.c282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) { in wps_attr_parse_tests()
/freebsd/contrib/wpa/src/eap_peer/
H A 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()
H A Dmschapv2.c118 hexstr2bin((char *) (buf + 2), recv_response, in mschapv2_verify_auth_response()
H A Deap_aka.c230 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()
H A Deap_sim.c248 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()
/freebsd/contrib/wpa/wpa_supplicant/
H A 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()
H A Dctrl_iface.c177 hexstr2bin(pos, ssid[ssid_count].ssid, in set_disallow_aps()
266 if (hexstr2bin(pos, blob->data, len / 2) < 0) { in wpas_ctrl_set_blob()
705 else if (hexstr2bin(value, dpp_pkex_ephemeral_key_override, in wpa_supplicant_ctrl_iface_set()
715 else if (hexstr2bin(value, dpp_protocol_key_override, in wpa_supplicant_ctrl_iface_set()
725 else if (hexstr2bin(value, dpp_nonce_override, hex_len / 2)) in wpa_supplicant_ctrl_iface_set()
1637 if (hexstr2bin(pos, wpabuf_put(buf, len), len) < 0) { in wpa_supplicant_ctrl_iface_wps_nfc_tag_read()
1880 if (hexstr2bin(pos, wpabuf_put(req, len), len) < 0) { in wpas_ctrl_nfc_report_handover()
1900 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) { in wpas_ctrl_nfc_report_handover()
3466 if (payload_len && hexstr2bin(pos, buf + ETH_HLEN, payload_len) < 0) in wpa_supplicant_ctrl_iface_mesh_link_probe()
6468 hexstr2bin(pos2, _group_ssid, group_ssid_len) < 0) in p2p_ctrl_connect()
[all …]
H A Dctrl_iface_udp.c301 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
695 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
H A Dconfig.c619 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()
3662 hexstr2bin(pos, in wpa_config_set_cred_ois()
5047 if (hexstr2bin(pos, config->os_version, 4)) { in wpa_config_process_os_version()
5075 if (hexstr2bin(pos, p, len)) { in wpa_config_process_wps_vendor_ext_m1()
/freebsd/contrib/wpa/src/ap/
H A Dctrl_iface_ap.c1191 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()
H A Dieee802_11_auth.c451 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) { in decode_tunnel_passwords()
H A Dwps_hostapd.c429 hexstr2bin((const char *) cred->key, in hapd_wps_reconfig_in_memory()
1931 hexstr2bin(ssid, cred.ssid, len / 2)) in hostapd_wps_config_ap()
1963 hexstr2bin(key, cred.key, len / 2)) in hostapd_wps_config_ap()
/freebsd/contrib/wpa/src/crypto/
H A 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()
/freebsd/contrib/wpa/src/drivers/
H A 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()
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()
/freebsd/contrib/wpa/src/common/
H A Ddpp.c1201 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()

12