MCPcopy Create free account
hub / github.com/cisco/openh264 / ToHashStr

Function ToHashStr

test/utils/HashFunctions.h:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "crt_util_safe_x.h"
9
10static void ToHashStr (char* dst, const unsigned char* src, size_t src_len) {
11 for (size_t i = 0; i < src_len; ++i) {
12 WelsSnprintf (&dst[i * 2], 3, "%.2x", src[i]);
13 }
14 dst[src_len * 2] = '\0';
15}
16
17inline void CompareHash (const unsigned char* digest, const char* hashStr) {
18 char hashStrCmp[SHA_DIGEST_LENGTH * 2 + 1];

Callers 2

CompareHashFunction · 0.85
CompareHashAnyOfFunction · 0.85

Calls 1

WelsSnprintfFunction · 0.85

Tested by

no test coverage detected