MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / sha256_hex

Function sha256_hex

Source/Http/HttpServer.cpp:145–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static std::string sha256_hex(std::string_view data) {
146 if (data.empty()) {
147 return {};
148 }
149 char hash[65];
150 return DoraXrtSha256Hex(data.data(), data.size(), hash) ? std::string(hash) : std::string{};
151}
152
153static std::string hmac_sha256_hex(std::string_view key, std::string_view data) {
154 char hash[65];

Callers 1

isAuthorizedMethod · 0.85

Calls 5

DoraXrtSha256HexFunction · 0.85
stringFunction · 0.85
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected