| 8 | #include "crt_util_safe_x.h" |
| 9 | |
| 10 | static 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 | |
| 17 | inline void CompareHash (const unsigned char* digest, const char* hashStr) { |
| 18 | char hashStrCmp[SHA_DIGEST_LENGTH * 2 + 1]; |
no test coverage detected