Home
last modified time | relevance | path

Searched refs:SHA_DIGEST_LENGTH (Results 1 – 13 of 13) 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.cpp72 uint8_t expected_sha1[SHA_DIGEST_LENGTH]; 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()
234 for (int i = 0; i < SHA_DIGEST_LENGTH * 2; ++i, ++ps) { in ParseSha1()
308 uint8_t expected_sha1[SHA_DIGEST_LENGTH]; in FlashPartition()
314 if (memcmp(source_file.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in FlashPartition()
330 uint8_t expected_sha1[SHA_DIGEST_LENGTH]; in GenerateTarget()
387 if (memcmp(patched.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in GenerateTarget()
394 uint8_t patch_digest[SHA_DIGEST_LENGTH]; in GenerateTarget()
399 uint8_t bonus_digest[SHA_DIGEST_LENGTH]; in GenerateTarget()
Dbspatch.cpp79 uint8_t digest[SHA_DIGEST_LENGTH]; in ApplyBSDiffPatch()
/bootable/recovery/install/
Dverifier.cpp201 case SHA_DIGEST_LENGTH: in verify_file()
241 uint8_t sha1[SHA_DIGEST_LENGTH]; in verify_file()
265 case SHA_DIGEST_LENGTH: in verify_file()
303 LOG(INFO) << "SHA-1 digest: " << print_hex(sha1, SHA_DIGEST_LENGTH); in verify_file()
431 cert->hash_len = SHA_DIGEST_LENGTH; in LoadCertificateFromBuffer()
/bootable/recovery/tests/unit/
Dpackage_test.cpp86 std::vector<uint8_t> expected_sha(SHA_DIGEST_LENGTH); in TEST_F()
96 std::vector<uint8_t> calculated_sha(SHA_DIGEST_LENGTH); in TEST_F()
Dapplypatch_modes_test.cpp47 uint8_t digest[SHA_DIGEST_LENGTH]; in GetEmmcTargetString()
Dverifier_test.cpp110 ASSERT_EQ(SHA_DIGEST_LENGTH, cert.hash_len); in TEST()
121 ASSERT_EQ(SHA_DIGEST_LENGTH, cert.hash_len); in TEST()
Dcommands_test.cpp451 uint8_t digest[SHA_DIGEST_LENGTH]; in TEST()
473 uint8_t digest[SHA_DIGEST_LENGTH]; in TEST()
Dupdater_test.cpp110 uint8_t digest[SHA_DIGEST_LENGTH]; in GetSha1()
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h34 uint8_t sha1[SHA_DIGEST_LENGTH];
/bootable/recovery/updater/
Dblockimg.cpp610 uint8_t digest[SHA_DIGEST_LENGTH]; in PrintHashForCorruptedSourceBlocks()
628 uint8_t digest[SHA_DIGEST_LENGTH]; in PrintHashForCorruptedStashedBlocks()
655 uint8_t digest[SHA_DIGEST_LENGTH]; in VerifyBlocks()
1589 static bool Sha1DevicePath(const std::string& path, uint8_t digest[SHA_DIGEST_LENGTH]) { in Sha1DevicePath() argument
1711 uint8_t digest[SHA_DIGEST_LENGTH]; in PerformBlockImageUpdate()
2131 uint8_t digest[SHA_DIGEST_LENGTH]; in RangeSha1Fn()
Dcommands.cpp368 uint8_t digest[SHA_DIGEST_LENGTH]; in DumpBuffer()
/bootable/recovery/tests/unit/host/
Dupdate_simulator_test.cpp66 uint8_t digest[SHA_DIGEST_LENGTH]; in CalculateSha1()