Searched refs:hexstr2bin (Results 1 - 25 of 37) sorted by path

12

/freebsd-11-stable/contrib/ldns/drill/
H A Dwork.c22 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 Dmschapv2.c118 hexstr2bin((char *) (buf + 2), recv_response,
H A Deap_aka.c199 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 Deap_fast_pac.c245 if (hexstr2bin(value, buf, *len)) {
H A Deap_mschapv2.c436 if (hexstr2bin(pos, data->passwd_change_challenge,
H A Deap_sim.c211 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 Deap_teap_pac.c246 if (hexstr2bin(value, buf, *len)) {
H A Deap_wsc.c76 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 Deap_sim_db.c321 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 Dwps_module_tests.c282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) {
/freebsd-11-stable/contrib/wpa/hostapd/
H A Dconfig_file.c265 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 Dctrl_iface.c246 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 Dhlr_auc_gw.c174 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 Dosu_client.c232 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 Dap_config.c378 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0)
524 if (hexstr2bin(pos, wpabuf_put(attr->val, len), len) < 0) {
H A Dctrl_iface_ap.c916 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 Dieee802_11_auth.c479 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) {
H A Dwps_hostapd.c381 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 Ddpp.c4335 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 Dieee802_11_common.c1993 hexstr2bin(pos, nei_pos, len / 2) < 0) {
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Dcrypto_module_tests.c480 if (hexstr2bin(tv->key, key, sizeof(key)) ||
481 hexstr2bin(tv->plaintext, plain, sizeof(plain)) ||
482 hexstr2bin(tv->ciphertext, cipher, sizeof(cipher))) {
H A Dtls_openssl.c194 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 Dtls_wolfssl.c1169 if (hexstr2bin(pos, conn->srv_cert_hash, 32) < 0) {
/freebsd-11-stable/contrib/wpa/src/tls/
H A Dtlsv1_cred.c213 if (hexstr2bin(pos, cred->srv_cert_hash, 32) < 0) {
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dcommon.c163 * 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)) {

Completed in 316 milliseconds

12