| 209 | } |
| 210 | |
| 211 | std::string Sha1ToString(const uint8_t Sha1[kSHA1NumBytes]) { |
| 212 | std::stringstream SS; |
| 213 | for (int i = 0; i < kSHA1NumBytes; i++) |
| 214 | SS << std::hex << std::setfill('0') << std::setw(2) << (unsigned)Sha1[i]; |
| 215 | return SS.str(); |
| 216 | } |
| 217 | |
| 218 | std::string Hash(const Unit &U) { |
| 219 | uint8_t Hash[kSHA1NumBytes]; |
no test coverage detected