MCPcopy Create free account
hub / github.com/HexHive/NASS / Sha1ToString

Function Sha1ToString

fans/fuzzer-engine/fuzzer/src/FuzzerSHA1.cpp:209–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209std::string Sha1ToString(const uint8_t Sha1[kSHA1NumBytes]) {
210 std::stringstream SS;
211 for (int i = 0; i < kSHA1NumBytes; i++)
212 SS << std::hex << std::setfill('0') << std::setw(2) << (unsigned)Sha1[i];
213 return SS.str();
214}
215
216std::string Hash(const uint8_t *Data, size_t Len) {
217 uint8_t Hash[kSHA1NumBytes];

Callers 1

HashFunction · 0.70

Calls 1

strMethod · 0.45

Tested by

no test coverage detected