/freebsd-11-stable/contrib/ldns/drill/ |
H A D | work.c | 22 hexstr2bin(char *hexstr, int len, uint8_t *buf, size_t offset, size_t buf_len) function 59 error("Buffer too small in hexstr2bin"); 153 wirelen = hexstr2bin((char *) hexbuf,
|
/freebsd-11-stable/contrib/wpa/src/eap_peer/ |
H A D | mschapv2.c | 118 hexstr2bin((char *) (buf + 2), recv_response,
|
H A D | eap_aka.c | 199 if (hexstr2bin(pos, data->auts, EAP_AKA_AUTS_LEN) < 0) 216 if (hexstr2bin(pos, data->ik, EAP_AKA_IK_LEN) < 0) 224 if (hexstr2bin(pos, data->ck, EAP_AKA_CK_LEN) < 0) 237 if (hexstr2bin(pos, data->res, data->res_len) < 0) 286 if (hexstr2bin(pos, k, 16)) 293 if (hexstr2bin(pos, opc, 16)) 300 if (hexstr2bin(pos, sqn, 6))
|
H A D | eap_fast_pac.c | 245 if (hexstr2bin(value, buf, *len)) {
|
H A D | eap_mschapv2.c | 436 if (hexstr2bin(pos, data->passwd_change_challenge,
|
H A D | eap_sim.c | 211 if (hexstr2bin(pos, data->kc[i], EAP_SIM_KC_LEN) < 0) 220 if (hexstr2bin(pos, data->sres[i], EAP_SIM_SRES_LEN) < 0) 289 if (hexstr2bin(pos, k, 16)) 296 if (hexstr2bin(pos, opc, 16))
|
H A D | eap_teap_pac.c | 246 if (hexstr2bin(value, buf, *len)) {
|
H A D | eap_wsc.c | 76 hexstr2bin(pos, cred->ssid, len / 2)) { 128 hexstr2bin(pos, cred->key, len / 2)) { 237 hexstr2bin(pos, pkhash, WPS_OOB_PUBKEY_HASH_LEN)) {
|
/freebsd-11-stable/contrib/wpa/src/eap_server/ |
H A D | eap_sim_db.c | 321 hexstr2bin(argv[i], reauth->mk, sizeof(reauth->mk)); 323 hexstr2bin(argv[i], reauth->k_encr, 326 hexstr2bin(argv[i], reauth->k_aut, 329 hexstr2bin(argv[i], reauth->k_re, 496 if (hexstr2bin(start, entry->u.sim.kc[num_chal], 505 if (hexstr2bin(start, entry->u.sim.sres[num_chal], 510 if (hexstr2bin(start, entry->u.sim.rand[num_chal], 568 if (hexstr2bin(start, entry->u.aka.rand, EAP_AKA_RAND_LEN)) 576 if (hexstr2bin(start, entry->u.aka.autn, EAP_AKA_AUTN_LEN)) 584 if (hexstr2bin(star [all...] |
/freebsd-11-stable/contrib/wpa/src/wps/ |
H A D | wps_module_tests.c | 282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) {
|
/freebsd-11-stable/contrib/wpa/hostapd/ |
H A D | config_file.c | 265 if (hexstr2bin(*pos, user->password, len) < 0) { 283 if (hexstr2bin(*pos, user->salt, user->salt_len) < 0) { 538 if (hexstr2bin(pos, user->password, 16) < 0) { 580 if (hexstr2bin(pos, user->password, 840 if (hexstr2bin(val, wep->key[keyidx], len) < 0) 1050 if (!hexstr2bin(pos, key, key_len)) 1054 if (hexstr2bin(pos, oldkey, sizeof(oldkey))) 1339 hexstr2bin(pos, oi, len / 2)) { 1696 if (hexstr2bin(delim, wpabuf_put(payload, len), len) < 0) { 1816 if (hexstr2bin(po [all...] |
H A D | ctrl_iface.c | 246 if (hexstr2bin(pos, wpabuf_put(buf, len), len) < 0) { 406 if (hexstr2bin(pos, wpabuf_put(req, len), len) < 0) { 423 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) { 1626 if (hexstr2bin(cmd, buf, len) < 0) { 1677 if (!buf || hexstr2bin(param, buf, len) < 0) { 1747 if (hexstr2bin(param, buf, len) < 0) { 1794 if (hexstr2bin(pos, buf, len) < 0) { 2011 if (hexstr2bin(cmd, buf, len) < 0) 2217 if (hexstr2bin(pos, seq, sizeof(seq)) < 0) 2224 if (hexstr2bin(po [all...] |
H A D | hlr_auc_gw.c | 174 hexstr2bin(argv[i], m->ki, sizeof(m->ki))) { 180 hexstr2bin(argv[i], m->opc, sizeof(m->opc))) { 186 hexstr2bin(argv[i], m->amf, sizeof(m->amf))) { 192 hexstr2bin(argv[i], m->sqn, sizeof(m->sqn))) { 326 if (!pos || os_strlen(pos) != 16 || hexstr2bin(pos, g->kc, 8)) { 335 hexstr2bin(pos, g->sres, 4)) { 344 hexstr2bin(pos, g->_rand, 16)) { 439 hexstr2bin(pos, m->ki, 16)) { 448 hexstr2bin(pos, m->opc, 16)) { 456 if (!pos || os_strlen(pos) != 4 || hexstr2bin(po [all...] |
/freebsd-11-stable/contrib/wpa/hs20/client/ |
H A D | osu_client.c | 232 if (hexstr2bin(fingerprint, digest1, SHA256_MAC_LEN) < 0) { 331 if (hexstr2bin(hash, digest1, SHA256_MAC_LEN) < 0) {
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | ap_config.c | 378 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0) 524 if (hexstr2bin(pos, wpabuf_put(attr->val, len), len) < 0) {
|
H A D | ctrl_iface_ap.c | 916 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) 929 hexstr2bin(pos, pmk, pmk_len) < 0) 973 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) 981 if (hexstr2bin(pos, pmk, PMK_LEN) < 0)
|
H A D | ieee802_11_auth.c | 479 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) {
|
H A D | wps_hostapd.c | 381 hexstr2bin((const char *) cred->key, 1745 hexstr2bin(ssid, cred.ssid, len / 2)) 1773 hexstr2bin(key, cred.key, len / 2))
|
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | dpp.c | 4335 hexstr2bin(pos, conf->ssid, conf->ssid_len) < 0) 4359 hexstr2bin(pos, (u8 *) conf->passphrase, pass_len) < 0) 4366 if (hexstr2bin(pos, conf->psk, PMK_LEN) < 0) 5206 hexstr2bin(psk_hex->string, auth->psk, PMK_LEN) < 0) { 8435 hexstr2bin(key, privkey, privkey_len) < 0) 8647 hexstr2bin(key, privkey, privkey_len) < 0)
|
H A D | ieee802_11_common.c | 1993 hexstr2bin(pos, nei_pos, len / 2) < 0) {
|
/freebsd-11-stable/contrib/wpa/src/crypto/ |
H A D | crypto_module_tests.c | 480 if (hexstr2bin(tv->key, key, sizeof(key)) || 481 hexstr2bin(tv->plaintext, plain, sizeof(plain)) || 482 hexstr2bin(tv->ciphertext, cipher, sizeof(cipher))) {
|
H A D | tls_openssl.c | 194 if (!hexstr2bin(encoded_key_alias, decoded_alias, len / 2)) { 535 if (buf && hexstr2bin(hash, buf, len) == 0) { 2627 if (hexstr2bin(pos, conn->srv_cert_hash, 32) < 0) {
|
H A D | tls_wolfssl.c | 1169 if (hexstr2bin(pos, conn->srv_cert_hash, 32) < 0) {
|
/freebsd-11-stable/contrib/wpa/src/tls/ |
H A D | tlsv1_cred.c | 213 if (hexstr2bin(pos, cred->srv_cert_hash, 32) < 0) {
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | common.c | 163 * hexstr2bin - Convert ASCII hex string into binary data 170 int hexstr2bin(const char *hex, u8 *buf, size_t len) function 687 if (hexstr2bin(value, str, tlen)) {
|