Home
last modified time | relevance | path

Searched refs:SHA_DIGEST_LENGTH (Results 1 – 10 of 10) sorted by relevance

/bootable/recovery/
Dprint_sha1.h35 static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { in print_sha1() argument
36 return print_sha1(sha1, SHA_DIGEST_LENGTH); in print_sha1()
39 static std::string short_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { in short_sha1() argument
Dverifier.cpp204 case SHA_DIGEST_LENGTH: need_sha1 = true; break; in verify_file()
235 uint8_t sha1[SHA_DIGEST_LENGTH]; in verify_file()
259 case SHA_DIGEST_LENGTH: in verify_file()
297 LOG(INFO) << "SHA-1 digest: " << print_hex(sha1, SHA_DIGEST_LENGTH); in verify_file()
494 cert.hash_len = SHA_DIGEST_LENGTH; in load_keys()
502 cert.hash_len = SHA_DIGEST_LENGTH; in load_keys()
/bootable/recovery/applypatch/
Dapplypatch.cpp49 const uint8_t target_sha1[SHA_DIGEST_LENGTH], const Value* bonus_data);
154 uint8_t sha_so_far[SHA_DIGEST_LENGTH]; in LoadPartitionContents()
157 uint8_t parsed_sha[SHA_DIGEST_LENGTH]; in LoadPartitionContents()
163 if (memcmp(sha_so_far, parsed_sha, SHA_DIGEST_LENGTH) == 0) { in LoadPartitionContents()
364 for (int i = 0; i < SHA_DIGEST_LENGTH * 2; ++i, ++ps) { in ParseSha1()
391 uint8_t patch_sha1[SHA_DIGEST_LENGTH]; in FindMatchingPatch()
393 memcmp(patch_sha1, sha1, SHA_DIGEST_LENGTH) == 0) { in FindMatchingPatch()
506 uint8_t target_sha1[SHA_DIGEST_LENGTH]; in applypatch()
515 if (memcmp(source_file.sha1, target_sha1, SHA_DIGEST_LENGTH) == 0) { in applypatch()
567 uint8_t target_sha1[SHA_DIGEST_LENGTH]; in applypatch_flash()
[all …]
Dbspatch.cpp85 uint8_t digest[SHA_DIGEST_LENGTH]; in ApplyBSDiffPatch()
Dapplypatch_modes.cpp61 uint8_t digest[SHA_DIGEST_LENGTH]; in ParsePatchArgs()
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h33 uint8_t sha1[SHA_DIGEST_LENGTH];
/bootable/recovery/updater/
Dblockimg.cpp506 uint8_t digest[SHA_DIGEST_LENGTH]; in PrintHashForCorruptedSourceBlocks()
524 uint8_t digest[SHA_DIGEST_LENGTH]; in PrintHashForCorruptedStashedBlocks()
551 uint8_t digest[SHA_DIGEST_LENGTH]; in VerifyBlocks()
796 uint8_t digest[SHA_DIGEST_LENGTH]; in CreateStash()
1773 uint8_t digest[SHA_DIGEST_LENGTH]; in RangeSha1Fn()
Dinstall.cpp776 uint8_t digest[SHA_DIGEST_LENGTH]; in Sha1CheckFn()
784 uint8_t arg_digest[SHA_DIGEST_LENGTH]; in Sha1CheckFn()
790 } else if (memcmp(digest, arg_digest, SHA_DIGEST_LENGTH) == 0) { in Sha1CheckFn()
/bootable/recovery/tests/component/
Dapplypatch_test.cpp50 uint8_t digest[SHA_DIGEST_LENGTH]; in sha1sum()
Dupdater_test.cpp78 uint8_t digest[SHA_DIGEST_LENGTH]; in get_sha1()