Lines Matching defs:buffer
54 * hash : buffer to store output sha1 string
94 char buffer[HASH_BUFFER_SIZE] = {0};
97 while ((n = fread(buffer, 1, sizeof(buffer), fp))) {
98 SHA256_Update(&ctx, (unsigned char *)buffer, n);
110 * Description : calculate a buffer sha1 hash for given buffer
112 * buffer : buffer to store the content which needed to be calculated
113 * hash_str : buffer to store output sha1 string
118 int CalcFingerprint::CalcBufferSha(const string& buffer, size_t bufSize, char *hash, size_t len)
120 if (buffer.empty()) {
123 return CalcBufferSha((unsigned char *)buffer.c_str(), bufSize, hash, len);
128 * Description : calculate a buffer sha1 hash for given buffer
130 * source : buffer to store the content which needed to be calculated
131 * sourceLen : input buffer len
132 * hash : buffer to store output sha1 string