Home
last modified time | relevance | path

Searched refs:hex_len (Results 1 – 14 of 14) sorted by relevance

/freebsd/lib/libiscsiutil/
H A Dchap.c132 int i, hex_len, nibble; in chap_hex2bin() local
147 hex_len = strlen(hex); in chap_hex2bin()
148 if (hex_len < 1) { in chap_hex2bin()
154 bin_len = hex_len / 2 + hex_len % 2; in chap_hex2bin()
160 for (i = hex_len - 1; i >= 0; i--) { in chap_hex2bin()
208 size_t hex_len; in chap_bin2hex() local
211 hex_len = bin_len * 2 + 3; /* +2 for "0x", +1 for '\0'. */ in chap_bin2hex()
212 hex = malloc(hex_len); in chap_bin2hex()
/freebsd/contrib/wpa/src/ap/
H A Dwnm_ap.c437 size_t hex_len; in ieee802_11_rx_bss_trans_mgmt_query() local
470 hex_len = 2 * (end - pos) + 1; in ieee802_11_rx_bss_trans_mgmt_query()
471 if (hex_len > 1) { in ieee802_11_rx_bss_trans_mgmt_query()
472 hex = os_malloc(hex_len); in ieee802_11_rx_bss_trans_mgmt_query()
474 wpa_snprintf_hex(hex, hex_len, pos, end - pos); in ieee802_11_rx_bss_trans_mgmt_query()
634 size_t hex_len; in ieee802_11_rx_wnm_coloc_intf_report() local
659 hex_len = 2 * len + 1; in ieee802_11_rx_wnm_coloc_intf_report()
660 hex = os_malloc(hex_len); in ieee802_11_rx_wnm_coloc_intf_report()
663 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_11_rx_wnm_coloc_intf_report()
H A Dwpa_auth_glue.c701 size_t hex_len = 2 * data_len + 1; in hostapd_wpa_auth_send_eapol() local
702 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_eapol()
706 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_eapol()
906 size_t hex_len = 2 * data_len + 1; in hostapd_wpa_auth_send_ether() local
907 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_ether()
911 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_ether()
H A Dbeacon.c1732 size_t hex_len; in handle_probe_req() local
1734 hex_len = len * 2 + 1; in handle_probe_req()
1735 hex = os_malloc(hex_len); in handle_probe_req()
1737 wpa_snprintf_hex(hex, hex_len, (const u8 *) mgmt, len); in handle_probe_req()
H A Ddrv_callbacks.c1990 size_t hex_len = 2 * rx_mgmt->frame_len + 1; in hostapd_mgmt_rx() local
1991 char *hex = os_malloc(hex_len); in hostapd_mgmt_rx()
1994 wpa_snprintf_hex(hex, hex_len, rx_mgmt->frame, in hostapd_mgmt_rx()
H A Dieee802_1x.c83 size_t hex_len = 2 * len + 1; in ieee802_1x_send() local
84 char *hex = os_malloc(hex_len); in ieee802_1x_send()
87 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_1x_send()
H A Dieee802_11.c8131 int hex_len = len * 2 + 1; in notify_mgmt_frame() local
8132 char *hex = os_malloc(hex_len); in notify_mgmt_frame()
8135 wpa_snprintf_hex(hex, hex_len, buf, len); in notify_mgmt_frame()
8881 size_t hex_len = 2 * len + 1; in ieee802_11_mgmt_cb() local
8882 char *hex = os_malloc(hex_len); in ieee802_11_mgmt_cb()
8885 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_11_mgmt_cb()
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dcodecs.c42 const char *const hex, const size_t hex_len, in sodium_hex2bin() argument
56 while (hex_pos < hex_len) { in sodium_hex2bin()
93 } else if (hex_pos != hex_len) { in sodium_hex2bin()
/freebsd/usr.sbin/uefisign/
H A Duefisign.c123 size_t hex_len; in bin2hex() local
126 hex_len = bin_len * 2 + 1; /* +1 for '\0'. */ in bin2hex()
127 hex = malloc(hex_len); in bin2hex()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_mschapv2.c438 int hex_len; in eap_mschapv2_failure_txt() local
440 hex_len = os_strchr(pos, ' ') - (char *) pos; in eap_mschapv2_failure_txt()
441 if (hex_len == PASSWD_CHANGE_CHAL_LEN * 2) { in eap_mschapv2_failure_txt()
455 "challenge len %d", hex_len); in eap_mschapv2_failure_txt()
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Dutils.h63 const char * const hex, const size_t hex_len,
/freebsd/contrib/wpa/wpa_supplicant/
H A Dwpas_glue.c103 size_t hex_len = 2 * len + 1; in wpa_ether_send() local
104 char *hex = os_malloc(hex_len); in wpa_ether_send()
108 wpa_snprintf_hex(hex, hex_len, buf, len); in wpa_ether_send()
H A Dctrl_iface.c706 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local
708 if (hex_len > in wpa_supplicant_ctrl_iface_set()
712 hex_len / 2)) in wpa_supplicant_ctrl_iface_set()
715 dpp_pkex_ephemeral_key_override_len = hex_len / 2; in wpa_supplicant_ctrl_iface_set()
717 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local
719 if (hex_len > 2 * sizeof(dpp_protocol_key_override)) in wpa_supplicant_ctrl_iface_set()
722 hex_len / 2)) in wpa_supplicant_ctrl_iface_set()
725 dpp_protocol_key_override_len = hex_len / 2; in wpa_supplicant_ctrl_iface_set()
727 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local
729 if (hex_len > 2 * sizeof(dpp_nonce_override)) in wpa_supplicant_ctrl_iface_set()
[all …]
H A Devents.c7266 size_t hex_len = 2 * rx->frame_len + 1; in wpa_supplicant_event() local
7267 char *hex = os_malloc(hex_len); in wpa_supplicant_event()
7269 wpa_snprintf_hex(hex, hex_len, in wpa_supplicant_event()