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