Lines Matching refs:sha1
88 SHA_hash(file->data, file->size, file->sha1); in LoadFileContents()
292 file->sha1[i] = sha_final[i]; in LoadPartitionContents()
565 int FindMatchingPatch(uint8_t* sha1, char* const * const patch_sha1_str, in FindMatchingPatch() argument
571 memcmp(patch_sha1, sha1, SHA_DIGEST_SIZE) == 0) { in FindMatchingPatch()
592 FindMatchingPatch(file.sha1, patch_sha1_str, num_patches) < 0)) { in applypatch_check()
610 if (FindMatchingPatch(file.sha1, patch_sha1_str, num_patches) < 0) { in applypatch_check()
677 static void print_short_sha1(const uint8_t sha1[SHA_DIGEST_SIZE]) { in print_short_sha1()
681 putchar(hex[(sha1[i]>>4) & 0xf]); in print_short_sha1()
682 putchar(hex[sha1[i] & 0xf]); in print_short_sha1()
742 if (memcmp(source_file.sha1, target_sha1, SHA_DIGEST_SIZE) == 0) { in applypatch()
764 int to_use = FindMatchingPatch(source_file.sha1, in applypatch()
782 int to_use = FindMatchingPatch(copy_file.sha1, in applypatch()