Lines Matching defs:hash
594 char hash[MAX_HASH_LEN]; /* hash data */
1390 static int write_file(int offset_block, const char *src_path, char hash[], int hash_size)
1421 sha1_csum((const unsigned char *)buf, file_size, (unsigned char *)hash);
1423 sha256_csum((const unsigned char *)buf, file_size, (unsigned char *)hash);
1464 char hash[20]; /* sha1 */
1476 if (write_file(offset, files[i], hash, sizeof(hash)) < 0) {
1480 memcpy(entry.hash, hash, sizeof(hash));
1481 entry.hash_size = sizeof(hash);