Lines Matching refs:hash
31 * CalcFileSha: calculate a file sha1 hash for given file
34 * The caller can pass a char hash_str[41] to get the hash string
37 static int CalcFileSha(const std::string& filePath, char *hash, size_t len);
40 * CalcFileSha: calculate a file sha1 hash for given file
43 * The caller can pass a char hash[41] to get the hash
46 static int CalcFileShaOriginal(const std::string& filePath, unsigned char *hash, size_t len);
49 * CalcBufferSha: calculate a buffer sha1 hash for given buffer
52 * The caller can pass a char hash_str[41] to get the hash string
55 static int CalcBufferSha(const std::string& buffer, size_t bufSize, char *hash, size_t len);
58 * CalcBufferSha: calculate a source sha1 hash for given source
61 * The caller can pass a char hash[41] to get the hash string
64 static int CalcBufferSha(unsigned char* source, size_t sourceLen, char *hash, size_t hashLen);
67 static int ConvertToString(const unsigned char hash[SHA256_DIGEST_LENGTH], char *outstr, size_t len);