| 33 | } |
| 34 | |
| 35 | std::string bytesToHexString(const Byte* input, size_t inputLength) { |
| 36 | std::stringstream stream; |
| 37 | stream << std::hex << std::setfill('0'); |
| 38 | |
| 39 | for (size_t i = 0; i < inputLength; i++) { |
| 40 | auto b = input[i]; |
| 41 | stream << std::setw(2) << static_cast<int>(b); |
| 42 | } |
| 43 | |
| 44 | return stream.str(); |
| 45 | } |
| 46 | |
| 47 | } // namespace Valdi |
no outgoing calls