| 93 | } |
| 94 | |
| 95 | Status ParseHexValues(std::string_view hex_string, uint8_t* out) { |
| 96 | if (hex_string.size() % 2 != 0) { |
| 97 | return Status::Invalid("Expected base16 hex string"); |
| 98 | } |
| 99 | for (size_t j = 0; j < hex_string.size() / 2; ++j) { |
| 100 | RETURN_NOT_OK(ParseHexValue(hex_string.data() + j * 2, out + j)); |
| 101 | } |
| 102 | return Status::OK(); |
| 103 | } |
| 104 | |
| 105 | namespace internal { |
| 106 |