Home
last modified time | relevance | path

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

/bootable/recovery/applypatch/
Dbspatch.cpp79 uint8_t digest[SHA_DIGEST_LENGTH]; in ApplyBSDiffPatch() local
81 patch.data.size() - patch_offset, digest); in ApplyBSDiffPatch()
82 std::string patch_sha1 = print_sha1(digest); in ApplyBSDiffPatch()
Dapplypatch.cpp231 int ParseSha1(const std::string& str, uint8_t* digest) { in ParseSha1() argument
233 uint8_t* pd = digest; in ParseSha1()
/bootable/recovery/tests/unit/
Dapplypatch_modes_test.cpp47 uint8_t digest[SHA_DIGEST_LENGTH]; in GetEmmcTargetString() local
48 SHA1(reinterpret_cast<const uint8_t*>(data.c_str()), data.size(), digest); in GetEmmcTargetString()
51 std::to_string(data.size()) + ":" + print_sha1(digest); in GetEmmcTargetString()
Dcommands_test.cpp451 uint8_t digest[SHA_DIGEST_LENGTH]; in TEST() local
452 SHA1(buffer.data(), buffer.size(), digest); in TEST()
453 ASSERT_EQ(source.hash(), print_sha1(digest)); in TEST()
473 uint8_t digest[SHA_DIGEST_LENGTH]; in TEST() local
474 SHA1(buffer.data(), buffer.size(), digest); in TEST()
475 ASSERT_EQ(source.hash(), print_sha1(digest)); in TEST()
Dupdater_test.cpp110 uint8_t digest[SHA_DIGEST_LENGTH]; in GetSha1() local
111 SHA1(reinterpret_cast<const uint8_t*>(content.data()), content.size(), digest); in GetSha1()
112 return print_sha1(digest); in GetSha1()
456 std::vector<unsigned char> digest(SHA256_DIGEST_LENGTH); in TEST_F() local
457 SHA256(hash_tree.data(), hash_tree.size(), digest.data()); in TEST_F()
458 ASSERT_EQ(expected_root_hash, HashTreeBuilder::BytesArrayToString(digest)); in TEST_F()
/bootable/recovery/updater/
Dblockimg.cpp610 uint8_t digest[SHA_DIGEST_LENGTH]; in PrintHashForCorruptedSourceBlocks() local
611 SHA1(buffer.data() + buffer_index * BLOCKSIZE, BLOCKSIZE, digest); in PrintHashForCorruptedSourceBlocks()
612 std::string hexdigest = print_sha1(digest); in PrintHashForCorruptedSourceBlocks()
628 uint8_t digest[SHA_DIGEST_LENGTH]; in PrintHashForCorruptedStashedBlocks() local
629 SHA1(buffer.data() + i * BLOCKSIZE, BLOCKSIZE, digest); in PrintHashForCorruptedStashedBlocks()
630 std::string hexdigest = print_sha1(digest); in PrintHashForCorruptedStashedBlocks()
655 uint8_t digest[SHA_DIGEST_LENGTH]; in VerifyBlocks() local
658 SHA1(data, blocks * BLOCKSIZE, digest); in VerifyBlocks()
660 std::string hexdigest = print_sha1(digest); in VerifyBlocks()
1589 static bool Sha1DevicePath(const std::string& path, uint8_t digest[SHA_DIGEST_LENGTH]) { in Sha1DevicePath()
[all …]
Dcommands.cpp368 uint8_t digest[SHA_DIGEST_LENGTH]; in DumpBuffer() local
369 SHA1(buffer.data() + buffer_index * block_size, block_size, digest); in DumpBuffer()
370 std::string hexdigest = print_sha1(digest); in DumpBuffer()
/bootable/recovery/tests/unit/host/
Dupdate_simulator_test.cpp66 uint8_t digest[SHA_DIGEST_LENGTH]; in CalculateSha1() local
67 SHA1(reinterpret_cast<const uint8_t*>(data.c_str()), data.size(), digest); in CalculateSha1()
68 return print_sha1(digest); in CalculateSha1()
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h46 int ParseSha1(const std::string& str, uint8_t* digest);