Searched refs:hash (Results 1 – 7 of 7) sorted by relevance
/bootable/recovery/applypatch/include/applypatch/ |
D | applypatch.h | 51 Partition(const std::string& name, size_t size, const std::string& hash) in Partition() 52 : name(name), size(size), hash(hash) {} in Partition() 67 std::string hash; member
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 73 if (ParseSha1(partition.hash, expected_sha1) != 0) { in ReadPartitionToBuffer() 74 LOG(ERROR) << "Failed to parse target hash \"" << partition.hash << "\""; in ReadPartitionToBuffer() 277 LOG(INFO) << " already " << target.hash.substr(0, 8); in PatchPartition() 298 LOG(INFO) << " already " << partition.hash.substr(0, 8); in FlashPartition() 309 if (ParseSha1(partition.hash, expected_sha1) != 0) { in FlashPartition() 310 LOG(ERROR) << "Failed to parse source hash \"" << partition.hash << "\""; in FlashPartition() 317 LOG(ERROR) << "expected: " << partition.hash.substr(0, 8) in FlashPartition() 331 if (ParseSha1(target.hash, expected_sha1) != 0) { in GenerateTarget() 332 LOG(ERROR) << "Failed to parse target hash \"" << target.hash << "\""; in GenerateTarget() 449 return "EMMC:"s + name + ":" + std::to_string(size) + ":" + hash; in ToString()
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 36 TargetInfo(std::string hash, RangeSet ranges) in TargetInfo() argument 37 : hash_(std::move(hash)), ranges_(std::move(ranges)) {} in TargetInfo() 39 const std::string& hash() const { in hash() function 106 SourceInfo(std::string hash, RangeSet ranges, RangeSet location, std::vector<StashInfo> stashes) in SourceInfo() argument 107 : hash_(std::move(hash)), in SourceInfo() 134 const std::string& hash() const { in hash() function
|
/bootable/recovery/install/ |
D | verifier.cpp | 262 const uint8_t* hash; in verify_file() local 266 hash = sha1; in verify_file() 270 hash = sha256; in verify_file() 280 if (!RSA_verify(hash_nid, hash, key.hash_len, sig_der.data(), sig_der.size(), in verify_file() 289 if (!ECDSA_verify(0, hash, key.hash_len, sig_der.data(), sig_der.size(), key.ec.get())) { in verify_file()
|
/bootable/recovery/fuse_sideload/ |
D | fuse_sideload.cpp | 260 SHA256Digest hash; in fetch_block() local 261 SHA256(fd->block_data, fd->block_size, hash.data()); in fetch_block() 264 if (hash == blockhash) { in fetch_block() 275 fd->hashes[block] = hash; in fetch_block()
|
/bootable/recovery/updater/ |
D | commands.cpp | 234 std::string hash = tokens[pos++]; in Parse() local 236 std::vector<std::string>(tokens.cbegin() + pos, tokens.cend()), hash, &target_info, in Parse() 237 hash, &source_info, err)) { in Parse()
|
/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 453 ASSERT_EQ(source.hash(), print_sha1(digest)); in TEST() 475 ASSERT_EQ(source.hash(), print_sha1(digest)); in TEST()
|