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

Function hmac_sha256_hex

Source/Http/HttpServer.cpp:153–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static std::string hmac_sha256_hex(std::string_view key, std::string_view data) {
154 char hash[65];
155 return DoraXrtHmacSha256Hex(key.data(), key.size(), data.data(), data.size(), hash) ? std::string(hash) : std::string{};
156}
157
158static std::string canonicalize_query(std::vector<std::pair<std::string, std::string>> params) {
159 if (params.empty()) return {};

Callers 2

isAuthorizedMethod · 0.85
isWebSocketAuthorizedMethod · 0.85

Calls 4

DoraXrtHmacSha256HexFunction · 0.85
stringFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected