Home
last modified time | relevance | path

Searched refs:sha1 (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/otautil/include/otautil/
Dprint_sha1.h25 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 [[maybe_unused]] 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 [[maybe_unused]] static std::string short_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { in short_sha1()
40 return print_sha1(sha1, 4); in short_sha1()
/bootable/recovery/applypatch/
Dapplypatch.cpp65 SHA1(file->data.data(), file->data.size(), file->sha1); in LoadFileContents()
87 SHA1(buffer.data(), buffer.size(), out->sha1); in ReadPartitionToBuffer()
88 if (memcmp(out->sha1, expected_sha1, SHA_DIGEST_LENGTH) == 0) { in ReadPartitionToBuffer()
101 memcmp(out->sha1, expected_sha1, SHA_DIGEST_LENGTH) == 0) { in ReadPartitionToBuffer()
314 if (memcmp(source_file.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in FlashPartition()
318 << ", found: " << short_sha1(source_file.sha1); in FlashPartition()
386 SHA1_Final(patched.sha1, &ctx); in GenerateTarget()
387 if (memcmp(patched.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in GenerateTarget()
390 LOG(ERROR) << "target size " << patched.data.size() << " SHA-1 " << short_sha1(patched.sha1); in GenerateTarget()
392 << short_sha1(source_file.sha1); in GenerateTarget()
/bootable/recovery/install/
Dverifier.cpp241 uint8_t sha1[SHA_DIGEST_LENGTH]; in verify_file() local
242 SHA1_Final(sha1, &sha1_ctx); in verify_file()
266 hash = sha1; in verify_file()
303 LOG(INFO) << "SHA-1 digest: " << print_hex(sha1, SHA_DIGEST_LENGTH); in verify_file()
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h34 uint8_t sha1[SHA_DIGEST_LENGTH]; member
/bootable/recovery/tests/unit/
Dapplypatch_test.cpp53 source_sha1 = print_sha1(boot_fc.sha1); in SetUp()
59 target_sha1 = print_sha1(recovery_fc.sha1); in SetUp()