/freebsd/lib/libiscsiutil/ |
H A D | chap.c | 132 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 D | wnm_ap.c | 437 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 D | wpa_auth_glue.c | 550 size_t hex_len = 2 * data_len + 1; in hostapd_wpa_auth_send_eapol() local 551 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_eapol() 555 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_eapol() 732 size_t hex_len = 2 * data_len + 1; in hostapd_wpa_auth_send_ether() local 733 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_ether() 737 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_ether()
|
H A D | ieee802_1x.c | 83 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 D | drv_callbacks.c | 1855 size_t hex_len = 2 * rx_mgmt->frame_len + 1; in hostapd_mgmt_rx() local 1856 char *hex = os_malloc(hex_len); in hostapd_mgmt_rx() 1859 wpa_snprintf_hex(hex, hex_len, rx_mgmt->frame, in hostapd_mgmt_rx()
|
H A D | ieee802_11.c | 6202 int hex_len = len * 2 + 1; in notify_mgmt_frame() local 6203 char *hex = os_malloc(hex_len); in notify_mgmt_frame() 6206 wpa_snprintf_hex(hex, hex_len, buf, len); in notify_mgmt_frame() 6849 size_t hex_len = 2 * len + 1; in ieee802_11_mgmt_cb() local 6850 char *hex = os_malloc(hex_len); in ieee802_11_mgmt_cb() 6853 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_11_mgmt_cb()
|
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/ |
H A D | codecs.c | 42 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 D | uefisign.c | 123 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 D | eap_mschapv2.c | 438 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 D | utils.h | 63 const char * const hex, const size_t hex_len,
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wpas_glue.c | 103 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 D | ctrl_iface.c | 700 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local 702 if (hex_len > in wpa_supplicant_ctrl_iface_set() 706 hex_len / 2)) in wpa_supplicant_ctrl_iface_set() 709 dpp_pkex_ephemeral_key_override_len = hex_len / 2; in wpa_supplicant_ctrl_iface_set() 711 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local 713 if (hex_len > 2 * sizeof(dpp_protocol_key_override)) in wpa_supplicant_ctrl_iface_set() 716 hex_len / 2)) in wpa_supplicant_ctrl_iface_set() 719 dpp_protocol_key_override_len = hex_len / 2; in wpa_supplicant_ctrl_iface_set() 721 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local 723 if (hex_len > 2 * sizeof(dpp_nonce_override)) in wpa_supplicant_ctrl_iface_set() [all …]
|
H A D | events.c | 6423 size_t hex_len = 2 * rx->frame_len + 1; in wpa_supplicant_event() local 6424 char *hex = os_malloc(hex_len); in wpa_supplicant_event() 6426 wpa_snprintf_hex(hex, hex_len, in wpa_supplicant_event()
|