/external/zlib/src/test/ |
H A D | infcover.c | 239 decodes liberally, in that hex digits can be adjacent, in which case two in 240 a row writes a byte. Or they can delimited by any non-hex character, where 241 the delimiters are ignored except when a single hex digit is followed by a 245 local unsigned char *h2b(const char *hex, unsigned *len) argument 250 in = malloc((strlen(hex) + 1) >> 1); 256 if (*hex >= '0' && *hex <= '9') 257 val = (val << 4) + *hex - '0'; 258 else if (*hex >= 'A' && *hex < 284 inf(char *hex, char *what, unsigned step, int win, unsigned len, int err) argument 507 try(char *hex, char *id, int err) argument [all...] |
/external/wpa_supplicant_8/hostapd/ |
H A D | ctrl_iface.c | 902 char hex[PMK_LEN * 2 + 1]; local 903 wpa_snprintf_hex(hex, sizeof(hex), 905 ret = os_snprintf(pos, end - pos, "psk=%s\n", hex); 1306 /* cmd: <vendor id> <subcommand id> [<hex formatted data>] */
|
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | drv_callbacks.c | 710 char *hex = os_malloc(hex_len); local 711 if (hex) { 712 wpa_snprintf_hex(hex, hex_len, rx_mgmt->frame, 714 wpa_msg(hapd->msg_ctx, MSG_INFO, "MGMT-RX %s", hex); 715 os_free(hex);
|
H A D | wps_hostapd.c | 139 char hex[PMK_LEN * 2 + 1]; local 148 wpa_snprintf_hex(hex, sizeof(hex), psk, psk_len); 149 fprintf(f, MACSTR " %s\n", MAC2STR(mac_addr), hex);
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | common.c | 26 int hex2byte(const char *hex) argument 29 a = hex2num(*hex++); 32 b = hex2num(*hex++); 122 * hexstr2bin - Convert ASCII hex string into binary data 123 * @hex: ASCII hex string (e.g., "01ab") 125 * @len: Length of the text to convert in bytes (of buf); hex will be double 127 * Returns: 0 on success, -1 on failure (invalid hex string) 129 int hexstr2bin(const char *hex, u8 *buf, size_t len) argument 133 const char *ipos = hex; [all...] |
/external/wpa_supplicant_8/hostapd/src/wps/ |
H A D | wps_enrollee.c | 274 char hex[65]; local 287 wpa_snprintf_hex(hex, sizeof(hex), psk, sizeof(psk)); 290 wpabuf_put_data(msg, hex, sizeof(psk) * 2);
|
H A D | wps_registrar.c | 1663 char hex[65]; local 1665 wpa_snprintf_hex(hex, sizeof(hex), wps->wps->psk, 32); 1666 os_memcpy(wps->cred.key, hex, 32 * 2); 1674 char hex[65]; local 1691 wpa_snprintf_hex(hex, sizeof(hex), wps->new_psk, 1693 os_memcpy(wps->cred.key, hex, wps->new_psk_len * 2);
|
/external/wpa_supplicant_8/hs20/client/ |
H A D | osu_client.c | 1353 char *pw, *hex, *pos, *end; local 1361 hex = malloc(len * 2 + 1); 1362 if (hex == NULL) { 1366 end = hex + len * 2 + 1; 1367 pos = hex; 1374 if (set_cred(ctx->ifname, id, "password", hex) < 0) 1376 free(hex);
|
/external/wpa_supplicant_8/src/ap/ |
H A D | drv_callbacks.c | 710 char *hex = os_malloc(hex_len); local 711 if (hex) { 712 wpa_snprintf_hex(hex, hex_len, rx_mgmt->frame, 714 wpa_msg(hapd->msg_ctx, MSG_INFO, "MGMT-RX %s", hex); 715 os_free(hex);
|
H A D | wps_hostapd.c | 139 char hex[PMK_LEN * 2 + 1]; local 148 wpa_snprintf_hex(hex, sizeof(hex), psk, psk_len); 149 fprintf(f, MACSTR " %s\n", MAC2STR(mac_addr), hex);
|
/external/wpa_supplicant_8/src/utils/ |
H A D | common.c | 26 int hex2byte(const char *hex) argument 29 a = hex2num(*hex++); 32 b = hex2num(*hex++); 122 * hexstr2bin - Convert ASCII hex string into binary data 123 * @hex: ASCII hex string (e.g., "01ab") 125 * @len: Length of the text to convert in bytes (of buf); hex will be double 127 * Returns: 0 on success, -1 on failure (invalid hex string) 129 int hexstr2bin(const char *hex, u8 *buf, size_t len) argument 133 const char *ipos = hex; [all...] |
/external/wpa_supplicant_8/src/wps/ |
H A D | wps_enrollee.c | 274 char hex[65]; local 287 wpa_snprintf_hex(hex, sizeof(hex), psk, sizeof(psk)); 290 wpabuf_put_data(msg, hex, sizeof(psk) * 2);
|
H A D | wps_registrar.c | 1663 char hex[65]; local 1665 wpa_snprintf_hex(hex, sizeof(hex), wps->wps->psk, 32); 1666 os_memcpy(wps->cred.key, hex, 32 * 2); 1674 char hex[65]; local 1691 wpa_snprintf_hex(hex, sizeof(hex), wps->new_psk, 1693 os_memcpy(wps->cred.key, hex, wps->new_psk_len * 2);
|
/external/wpa_supplicant_8/wpa_supplicant/ |
H A D | config_file.c | 639 char hex[32 * 2 + 1]; local 642 wpa_snprintf_hex(hex, sizeof(hex), psk->psk, sizeof(psk->psk)); 644 psk->p2p ? "P2P-" : "", MAC2STR(psk->addr), hex);
|
H A D | events.c | 3194 char *hex = os_malloc(hex_len); local 3195 if (hex) { 3196 wpa_snprintf_hex(hex, hex_len, 3200 hex); 3201 os_free(hex);
|
H A D | p2p_supplicant.c | 3846 char hex[100]; local 3858 wpa_snprintf_hex(hex, sizeof(hex), noa, noa_len); 3860 " status=%u noa=%s", MAC2STR(src), status, hex);
|
/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A D | drv_callbacks.c | 710 char *hex = os_malloc(hex_len); local 711 if (hex) { 712 wpa_snprintf_hex(hex, hex_len, rx_mgmt->frame, 714 wpa_msg(hapd->msg_ctx, MSG_INFO, "MGMT-RX %s", hex); 715 os_free(hex);
|
H A D | wps_hostapd.c | 139 char hex[PMK_LEN * 2 + 1]; local 148 wpa_snprintf_hex(hex, sizeof(hex), psk, psk_len); 149 fprintf(f, MACSTR " %s\n", MAC2STR(mac_addr), hex);
|
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | common.c | 26 int hex2byte(const char *hex) argument 29 a = hex2num(*hex++); 32 b = hex2num(*hex++); 122 * hexstr2bin - Convert ASCII hex string into binary data 123 * @hex: ASCII hex string (e.g., "01ab") 125 * @len: Length of the text to convert in bytes (of buf); hex will be double 127 * Returns: 0 on success, -1 on failure (invalid hex string) 129 int hexstr2bin(const char *hex, u8 *buf, size_t len) argument 133 const char *ipos = hex; [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/wps/ |
H A D | wps_enrollee.c | 274 char hex[65]; local 287 wpa_snprintf_hex(hex, sizeof(hex), psk, sizeof(psk)); 290 wpabuf_put_data(msg, hex, sizeof(psk) * 2);
|
H A D | wps_registrar.c | 1663 char hex[65]; local 1665 wpa_snprintf_hex(hex, sizeof(hex), wps->wps->psk, 32); 1666 os_memcpy(wps->cred.key, hex, 32 * 2); 1674 char hex[65]; local 1691 wpa_snprintf_hex(hex, sizeof(hex), wps->new_psk, 1693 os_memcpy(wps->cred.key, hex, wps->new_psk_len * 2);
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
H A D | networkconfig.cpp | 199 "or 64 hex digit PSK")); 460 bool hex; local 468 * Assume hex key if only hex characters are present and length matches 478 hex = true; 483 hex = false; 488 if (hex && len != 10 && len != 26 && len != 32) 489 hex = false; 491 setNetworkParam(network_id, buf, txt, !hex);
|
/external/valgrind/main/coregrind/m_gdbserver/ |
H A D | remote-utils.c | 559 /* Convert hex digit A to a number. */ 569 error ("Reply contains invalid hex digit 0x%x\n", a); 573 int unhexify (char *bin, const char *hex, int count) argument 578 if (hex[0] == 0 || hex[1] == 0) { 583 *bin++ = fromhex (hex[0]) * 16 + fromhex (hex[1]); 584 hex += 2; 604 /* Convert number NIB to a hex digit. */ 615 int hexify (char *hex, cons argument [all...] |
/external/valgrind/main/coregrind/ |
H A D | vgdb.c | 542 /* Convert hex digit A to a number. */ 552 XERROR(0, "Reply contains invalid hex digit %c\n", a); 941 char hex[3]; local 974 sprintf(hex, "%02x", (unsigned char) commands[nc][i]); 976 strcat (hexcommand, hex); 983 sprintf(hex, "%02x", cksum); 984 strcat(hexcommand, hex); 986 "writing hex command to pid", /* notify */ True); 1022 /* must be here an O packet with hex encoded string reply
|
/external/tcpdump/ |
H A D | addrtoname.c | 320 static const char hex[] = "0123456789abcdef"; variable 502 *cp++ = hex[*ep >> 4 ]; 503 *cp++ = hex[*ep++ & 0xf]; 506 *cp++ = hex[*ep >> 4 ]; 507 *cp++ = hex[*ep++ & 0xf]; 534 *cp++ = hex[*(ep + i - 1) >> 4]; 535 *cp++ = hex[*(ep + i - 1) & 0xf]; 570 *cp++ = hex[*ep >> 4]; 571 *cp++ = hex[*ep++ & 0xf]; 574 *cp++ = hex[*e [all...] |