Searched refs:sha1 (Results 1 – 8 of 8) sorted by relevance
/bootable/recovery/ |
D | print_sha1.h | 25 static std::string print_sha1(const uint8_t* sha1, size_t len) { in print_sha1() argument 29 result.push_back(hex[(sha1[i]>>4) & 0xf]); in print_sha1() 30 result.push_back(hex[sha1[i] & 0xf]); in print_sha1() 35 static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { in print_sha1() 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() 40 return print_sha1(sha1, 4); in short_sha1()
|
D | verifier.cpp | 235 uint8_t sha1[SHA_DIGEST_LENGTH]; in verify_file() local 236 SHA1_Final(sha1, &sha1_ctx); in verify_file() 260 hash = sha1; in verify_file() 297 LOG(INFO) << "SHA-1 digest: " << print_hex(sha1, SHA_DIGEST_LENGTH); in verify_file()
|
/bootable/recovery/applypatch/ |
D | imgdiff_test.sh | 56 sha1() { function 94 /data/local/tmp/target $(sha1 $tmpdir/target) $(size $tmpdir/target) \ 95 $(sha1 $tmpdir/source):/data/local/tmp/patch \
|
D | applypatch.cpp | 76 SHA1(file->data.data(), file->data.size(), file->sha1); in LoadFileContents() 176 SHA1_Final(file->sha1, &sha_ctx); in LoadPartitionContents() 388 static int FindMatchingPatch(uint8_t* sha1, const std::vector<std::string>& patch_sha1_str) { in FindMatchingPatch() argument 392 memcmp(patch_sha1, sha1, SHA_DIGEST_LENGTH) == 0) { in FindMatchingPatch() 410 (!patch_sha1_str.empty() && FindMatchingPatch(file.sha1, patch_sha1_str) < 0)) { in applypatch_check() 423 if (FindMatchingPatch(file.sha1, patch_sha1_str) < 0) { in applypatch_check() 522 if (memcmp(source_file.sha1, target_sha1, SHA_DIGEST_LENGTH) == 0) { in applypatch() 539 int to_use = FindMatchingPatch(source_file.sha1, patch_sha1_str); in applypatch() 554 int to_use = FindMatchingPatch(copy_file.sha1, patch_sha1_str); in applypatch() 593 memcmp(source_file.sha1, target_sha1, SHA_DIGEST_LENGTH) == 0) { in applypatch_flash() [all …]
|
D | applypatch_modes.cpp | 39 std::vector<std::string> sha1; in CheckMode() local 41 sha1.push_back(argv[i]); in CheckMode() 44 return applypatch_check(argv[2], sha1); in CheckMode()
|
D | applypatch.sh | 70 sha1() { function 103 OLD_SHA1=$(sha1 $DATA_DIR/old.file) 104 NEW_SHA1=$(sha1 $DATA_DIR/new.file)
|
/bootable/recovery/applypatch/include/applypatch/ |
D | applypatch.h | 32 uint8_t sha1[SHA_DIGEST_LENGTH]; member
|
/bootable/recovery/tests/component/ |
D | applypatch_test.cpp | 40 static void sha1sum(const std::string& fname, std::string* sha1, size_t* fsize = nullptr) { in sha1sum() argument 41 ASSERT_NE(nullptr, sha1); in sha1sum() 52 *sha1 = print_sha1(digest); in sha1sum()
|