Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:len

85  * @len: Length of the text to convert in bytes (of buf); hex will be double
89 int hexstr2bin(const char *hex, u8 *buf, size_t len)
96 for (i = 0; i < len; i++) {
110 * @len: Length of the counter in bytes
116 void inc_byte_array(u8 *counter, size_t len)
118 int pos = len - 1;
223 size_t len, int show)
231 fprintf(out_file, "%s - hexdump(len=%lu):",
232 title, (unsigned long) len);
236 for (i = 0; i < len; i++)
244 printf("%s - hexdump(len=%lu):", title, (unsigned long) len);
248 for (i = 0; i < len; i++)
259 void wpa_hexdump(int level, const char *title, const u8 *buf, size_t len)
261 _wpa_hexdump(level, title, buf, len, 1);
265 void wpa_hexdump_key(int level, const char *title, const u8 *buf, size_t len)
267 _wpa_hexdump(level, title, buf, len, wpa_debug_show_keys);
272 size_t len, int show)
285 "%s - hexdump_ascii(len=%lu): [REMOVED]\n",
286 title, (unsigned long) len);
291 "%s - hexdump_ascii(len=%lu): [NULL]\n",
292 title, (unsigned long) len);
295 fprintf(out_file, "%s - hexdump_ascii(len=%lu):\n",
296 title, (unsigned long) len);
297 while (len) {
298 llen = len > line_len ? line_len : len;
315 len -= llen;
320 printf("%s - hexdump_ascii(len=%lu): [REMOVED]\n",
321 title, (unsigned long) len);
325 printf("%s - hexdump_ascii(len=%lu): [NULL]\n",
326 title, (unsigned long) len);
329 printf("%s - hexdump_ascii(len=%lu):\n", title, (unsigned long) len);
330 while (len) {
331 llen = len > line_len ? line_len : len;
348 len -= llen;
356 void wpa_hexdump_ascii(int level, const char *title, const u8 *buf, size_t len)
358 _wpa_hexdump_ascii(level, title, buf, len, 1);
363 size_t len)
365 _wpa_hexdump_ascii(level, title, buf, len, wpa_debug_show_keys);
416 int len;
425 len = vsnprintf(buf, buflen, fmt, ap);
429 wpa_msg_cb(ctx, level, buf, len);
436 size_t len, int uppercase)
443 for (i = 0; i < len; i++) {
459 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
461 * @len: Length of data in bytes
464 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len)
466 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
473 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
475 * @len: Length of data in bytes
479 size_t len)
481 return _wpa_snprintf_hex(buf, buf_size, data, len, 1);