Home
last modified time | relevance | path

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

12

/freebsd-12.1/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.c170 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin() function
687 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.h478 int hexstr2bin(const char *hex, u8 *buf, size_t len);
/freebsd-12.1/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()
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()
465 hexstr2bin(pos, m->sqn, 6)) { in read_milenage()
686 if (hexstr2bin(pos, _rand, 16) != 0) in gsm_auth_req()
[all …]
H A Dconfig_file.c265 if (hexstr2bin(*pos, user->password, len) < 0) { in hostapd_config_eap_user_salted()
538 if (hexstr2bin(pos, user->password, 16) < 0) { in hostapd_config_read_eap_user()
580 if (hexstr2bin(pos, user->password, in hostapd_config_read_eap_user()
840 if (hexstr2bin(val, wep->key[keyidx], len) < 0) in hostapd_config_read_wep()
1050 if (!hexstr2bin(pos, key, key_len)) in rkh_derive_key()
1054 if (hexstr2bin(pos, oldkey, sizeof(oldkey))) in rkh_derive_key()
1339 hexstr2bin(pos, oi, len / 2)) { in parse_roaming_consortium()
1816 if (hexstr2bin(pos, wan_metrics, 1) < 0) in hs20_parse_wan_metrics()
3004 hexstr2bin(pos, bss->mobility_domain,
3640 if (hexstr2bin(pos, bss->os_version, 4)) {
[all …]
H A 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()
2011 if (hexstr2bin(cmd, buf, len) < 0) in hostapd_ctrl_iface_data_test_frame()
2217 if (hexstr2bin(pos, seq, sizeof(seq)) < 0) in hostapd_ctrl_set_key()
2224 if (hexstr2bin(pos, key, key_len) < 0) in hostapd_ctrl_set_key()
[all …]
/freebsd-12.1/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-12.1/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-12.1/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-12.1/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 Deap_aka.c199 if (hexstr2bin(pos, data->auts, EAP_AKA_AUTS_LEN) < 0) in eap_aka_ext_sim_result()
216 if (hexstr2bin(pos, data->ik, EAP_AKA_IK_LEN) < 0) in eap_aka_ext_sim_result()
224 if (hexstr2bin(pos, data->ck, EAP_AKA_CK_LEN) < 0) in eap_aka_ext_sim_result()
237 if (hexstr2bin(pos, data->res, data->res_len) < 0) in eap_aka_ext_sim_result()
286 if (hexstr2bin(pos, k, 16)) in eap_aka_umts_auth()
293 if (hexstr2bin(pos, opc, 16)) in eap_aka_umts_auth()
300 if (hexstr2bin(pos, sqn, 6)) in eap_aka_umts_auth()
H A Dmschapv2.c118 hexstr2bin((char *) (buf + 2), recv_response, in mschapv2_verify_auth_response()
H A Deap_sim.c211 if (hexstr2bin(pos, data->kc[i], EAP_SIM_KC_LEN) < 0) in eap_sim_ext_sim_result()
220 if (hexstr2bin(pos, data->sres[i], EAP_SIM_SRES_LEN) < 0) in eap_sim_ext_sim_result()
289 if (hexstr2bin(pos, k, 16)) in eap_sim_gsm_auth()
296 if (hexstr2bin(pos, opc, 16)) in eap_sim_gsm_auth()
H A Deap_mschapv2.c436 if (hexstr2bin(pos, data->passwd_change_challenge, in eap_mschapv2_failure_txt()
/freebsd-12.1/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.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()
5846 if (hexstr2bin(pos, &version, 1) < 0) in p2p_ctrl_serv_disc_req()
6046 if (hexstr2bin(cmd, &version, 1) < 0) in p2p_ctrl_service_add_upnp()
6223 if (hexstr2bin(cmd, &version, 1) < 0) in p2p_ctrl_service_del_upnp()
7881 if (hexstr2bin(pos, data, data_len)) { in wpa_supplicant_vendor_cmd()
8589 if (hexstr2bin(param, buf, len) < 0) { in wpas_ctrl_iface_mgmt_tx()
8658 if (hexstr2bin(param, buf, len) < 0) { in wpas_ctrl_iface_mgmt_rx_process()
8867 if (hexstr2bin(pos, buf, len) < 0) { in wpas_ctrl_iface_eapol_rx()
9072 if (hexstr2bin(cmd, buf, len) < 0) in wpas_ctrl_iface_data_test_frame()
[all …]
H A Dctrl_iface_udp.c288 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
652 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
H A 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()
3241 hexstr2bin(pos, in wpa_config_set_cred_roaming_consortiums()
4397 if (hexstr2bin(pos, config->os_version, 4)) { in wpa_config_process_os_version()
4425 if (hexstr2bin(pos, p, len)) { in wpa_config_process_wps_vendor_ext_m1()
4604 if (hexstr2bin(pos, p, len)) { in wpa_config_process_ap_vendor_elements()
/freebsd-12.1/contrib/wpa/src/ap/
H A Dctrl_iface_ap.c916 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_add()
929 hexstr2bin(pos, pmk, pmk_len) < 0) in hostapd_ctrl_iface_pmksa_add()
973 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry()
981 if (hexstr2bin(pos, pmk, PMK_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry()
H A Dap_config.c378 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0) in hostapd_config_read_wpa_psk()
524 if (hexstr2bin(pos, wpabuf_put(attr->val, len), len) < 0) { in hostapd_parse_radius_attr()
H A Dieee802_11_auth.c479 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) { in decode_tunnel_passwords()
H A 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()
/freebsd-12.1/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()

12