| 259 | } |
| 260 | |
| 261 | void encode_hex(char *str, const uint8_t *buf, int len) |
| 262 | { |
| 263 | int i; |
| 264 | for(i = 0; i < len; i++) |
| 265 | sprintf(str + 2 * i, "%02x", buf[i]); |
| 266 | } |
| 267 | |
| 268 | int decode_hex(uint8_t *buf, const char *str, int len) |
| 269 | { |
nothing calls this directly
no outgoing calls
no test coverage detected