Lines Matching defs:hex
32 static int hex2byte(const char *hex)
35 a = hex2num(*hex++);
38 b = hex2num(*hex++);
74 * hexstr2bin - Convert ASCII hex string into binary data
75 * @hex: ASCII hex string (e.g., "01ab")
77 * @len: Length of the text to convert in bytes (of buf); hex will be double
79 * Returns: 0 on success, -1 on failure (invalid hex string)
81 int hexstr2bin(const char *hex, u8 *buf, size_t len)
85 const char *ipos = hex;
161 * wpa_snprintf_hex - Print data as a hex string into a buffer
175 * wpa_snprintf_hex_uppercase - Print data as a upper case hex string into buf