| /freebsd-13.1/usr.sbin/ctld/ |
| H A D | chap.c | 136 int i, hex_len, nibble; in chap_hex2bin() local 151 hex_len = strlen(hex); in chap_hex2bin() 152 if (hex_len < 1) { in chap_hex2bin() 158 bin_len = hex_len / 2 + hex_len % 2; in chap_hex2bin() 164 for (i = hex_len - 1; i >= 0; i--) { in chap_hex2bin() 212 size_t hex_len; in chap_bin2hex() local 215 hex_len = bin_len * 2 + 3; /* +2 for "0x", +1 for '\0'. */ in chap_bin2hex() 216 hex = malloc(hex_len); in chap_bin2hex()
|
| /freebsd-13.1/usr.sbin/iscsid/ |
| H A D | chap.c | 136 int i, hex_len, nibble; in chap_hex2bin() local 151 hex_len = strlen(hex); in chap_hex2bin() 152 if (hex_len < 1) { in chap_hex2bin() 158 bin_len = hex_len / 2 + hex_len % 2; in chap_hex2bin() 164 for (i = hex_len - 1; i >= 0; i--) { in chap_hex2bin() 212 size_t hex_len; in chap_bin2hex() local 215 hex_len = bin_len * 2 + 3; /* +2 for "0x", +1 for '\0'. */ in chap_bin2hex() 216 hex = malloc(hex_len); in chap_bin2hex()
|
| /freebsd-13.1/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-13.1/usr.sbin/uefisign/ |
| H A D | uefisign.c | 125 size_t hex_len; in bin2hex() local 128 hex_len = bin_len * 2 + 1; /* +1 for '\0'. */ in bin2hex() 129 hex = malloc(hex_len); in bin2hex()
|
| /freebsd-13.1/contrib/wpa/src/eap_peer/ |
| H A D | eap_mschapv2.c | 432 int hex_len; in eap_mschapv2_failure_txt() local 434 hex_len = os_strchr(pos, ' ') - (char *) pos; in eap_mschapv2_failure_txt() 435 if (hex_len == PASSWD_CHANGE_CHAL_LEN * 2) { in eap_mschapv2_failure_txt() 449 "challenge len %d", hex_len); in eap_mschapv2_failure_txt()
|
| /freebsd-13.1/sys/contrib/libsodium/src/libsodium/include/sodium/ |
| H A D | utils.h | 63 const char * const hex, const size_t hex_len,
|
| /freebsd-13.1/contrib/wpa/src/ap/ |
| H A D | wnm_ap.c | 597 size_t hex_len; in ieee802_11_rx_wnm_coloc_intf_report() local 622 hex_len = 2 * len + 1; in ieee802_11_rx_wnm_coloc_intf_report() 623 hex = os_malloc(hex_len); in ieee802_11_rx_wnm_coloc_intf_report() 626 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_11_rx_wnm_coloc_intf_report()
|
| H A D | wpa_auth_glue.c | 518 size_t hex_len = 2 * data_len + 1; in hostapd_wpa_auth_send_eapol() local 519 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_eapol() 523 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_eapol() 686 size_t hex_len = 2 * data_len + 1; in hostapd_wpa_auth_send_ether() local 687 char *hex = os_malloc(hex_len); in hostapd_wpa_auth_send_ether() 691 wpa_snprintf_hex(hex, hex_len, data, data_len); in hostapd_wpa_auth_send_ether()
|
| H A D | drv_callbacks.c | 1420 size_t hex_len = 2 * rx_mgmt->frame_len + 1; in hostapd_mgmt_rx() local 1421 char *hex = os_malloc(hex_len); in hostapd_mgmt_rx() 1424 wpa_snprintf_hex(hex, hex_len, rx_mgmt->frame, in hostapd_mgmt_rx()
|
| 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 | ieee802_11.c | 6180 int hex_len = len * 2 + 1; in notify_mgmt_frame() local 6181 char *hex = os_malloc(hex_len); in notify_mgmt_frame() 6184 wpa_snprintf_hex(hex, hex_len, buf, len); in notify_mgmt_frame() 6693 size_t hex_len = 2 * len + 1; in ieee802_11_mgmt_cb() local 6694 char *hex = os_malloc(hex_len); in ieee802_11_mgmt_cb() 6697 wpa_snprintf_hex(hex, hex_len, buf, len); in ieee802_11_mgmt_cb()
|
| /freebsd-13.1/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 | 695 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local 697 if (hex_len > in wpa_supplicant_ctrl_iface_set() 701 hex_len / 2)) in wpa_supplicant_ctrl_iface_set() 704 dpp_pkex_ephemeral_key_override_len = hex_len / 2; in wpa_supplicant_ctrl_iface_set() 706 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local 708 if (hex_len > 2 * sizeof(dpp_protocol_key_override)) in wpa_supplicant_ctrl_iface_set() 711 hex_len / 2)) in wpa_supplicant_ctrl_iface_set() 714 dpp_protocol_key_override_len = hex_len / 2; in wpa_supplicant_ctrl_iface_set() 716 size_t hex_len = os_strlen(value); in wpa_supplicant_ctrl_iface_set() local 718 if (hex_len > 2 * sizeof(dpp_nonce_override)) in wpa_supplicant_ctrl_iface_set() [all …]
|
| H A D | events.c | 5290 size_t hex_len = 2 * rx->frame_len + 1; in wpa_supplicant_event() local 5291 char *hex = os_malloc(hex_len); in wpa_supplicant_event() 5293 wpa_snprintf_hex(hex, hex_len, in wpa_supplicant_event()
|