Home
last modified time | relevance | path

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

/bootable/recovery/otautil/include/otautil/
Dprint_sha1.h35 [[maybe_unused]] 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 [[maybe_unused]] static std::string short_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { in short_sha1() argument
/bootable/recovery/applypatch/
Dapplypatch.cpp50 const uint8_t target_sha1[SHA_DIGEST_LENGTH], const Value* bonus_data);
156 uint8_t sha_so_far[SHA_DIGEST_LENGTH]; in LoadPartitionContents()
159 uint8_t parsed_sha[SHA_DIGEST_LENGTH]; in LoadPartitionContents()
165 if (memcmp(sha_so_far, parsed_sha, SHA_DIGEST_LENGTH) == 0) { in LoadPartitionContents()
353 for (int i = 0; i < SHA_DIGEST_LENGTH * 2; ++i, ++ps) { in ParseSha1()
380 uint8_t patch_sha1[SHA_DIGEST_LENGTH]; in FindMatchingPatch()
382 memcmp(patch_sha1, sha1, SHA_DIGEST_LENGTH) == 0) { in FindMatchingPatch()
492 uint8_t target_sha1[SHA_DIGEST_LENGTH]; in applypatch()
501 if (memcmp(source_file.sha1, target_sha1, SHA_DIGEST_LENGTH) == 0) { in applypatch()
553 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/
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/include/applypatch/
Dapplypatch.h33 uint8_t sha1[SHA_DIGEST_LENGTH];
/bootable/recovery/updater/
Dinstall.cpp311 uint8_t digest[SHA_DIGEST_LENGTH]; in Sha1CheckFn()
319 uint8_t arg_digest[SHA_DIGEST_LENGTH]; in Sha1CheckFn()
325 } else if (memcmp(digest, arg_digest, SHA_DIGEST_LENGTH) == 0) { in Sha1CheckFn()
/bootable/recovery/tests/component/
Dapplypatch_test.cpp54 uint8_t digest[SHA_DIGEST_LENGTH]; in sha1sum()
Dupdater_test.cpp97 uint8_t digest[SHA_DIGEST_LENGTH]; in get_sha1()