| 89 | } |
| 90 | |
| 91 | static bool is_hex_char(const char c) { |
| 92 | return (c >= 'A' && c <= 'F') || |
| 93 | (c >= 'a' && c <= 'f') || |
| 94 | (c >= '0' && c <= '9'); |
| 95 | } |
| 96 | |
| 97 | static bool is_hex_string(const std::string & s, size_t expected_len) { |
| 98 | if (s.length() != expected_len) { |