Home
last modified time | relevance | path

Searched refs:raw_hash (Results 1 – 11 of 11) sorted by relevance

/system/update_engine/common/
Dhash_calculator_unittest.cc51 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F() local
53 EXPECT_EQ(raw_hash, calc.raw_hash()); in TEST_F()
61 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F() local
63 EXPECT_EQ(raw_hash, calc.raw_hash()); in TEST_F()
75 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F() local
77 EXPECT_EQ(raw_hash, calc_next.raw_hash()); in TEST_F()
103 brillo::data_encoding::Base64Encode(calc.raw_hash())); in TEST_F()
114 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F() local
116 EXPECT_EQ(raw_hash, calc.raw_hash()); in TEST_F()
125 brillo::data_encoding::Base64Encode(calc.raw_hash())); in TEST_F()
[all …]
Dhash_calculator.cc89 *out_hash = calc.raw_hash(); in RawHashOfBytes()
109 *out_hash = calc.raw_hash(); in RawHashOfFile()
Dhash_calculator.h57 const brillo::Blob& raw_hash() const { in raw_hash() function
/system/update_engine/payload_consumer/
Dpartition_update_generator_android.cc184 auto raw_hash = CalculateHashForPartition(source_device, partition_size); in CreatePartitionUpdate() local
185 if (!raw_hash.has_value()) { in CreatePartitionUpdate()
188 old_partition_info->set_hash(raw_hash->data(), raw_hash->size()); in CreatePartitionUpdate()
191 new_partition_info->set_hash(raw_hash->data(), raw_hash->size()); in CreatePartitionUpdate()
214 brillo::Blob raw_hash; in CalculateHashForPartition() local
215 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition()
221 return raw_hash; in CalculateHashForPartition()
Dfilesystem_verifier_action.cc267 << Base64Encode(hasher_->raw_hash()); in FinishPartitionHashing()
271 if (partition.target_hash != hasher_->raw_hash()) { in FinishPartitionHashing()
289 if (partition.source_hash != hasher_->raw_hash()) { in FinishPartitionHashing()
302 << Base64Encode(hasher_->raw_hash()) in FinishPartitionHashing()
Dfile_descriptor_utils.cc70 *hash_out = source_hasher.raw_hash(); in CommonHashExtents()
Ddelta_performer.cc1736 !payload_hash_calculator_.raw_hash().empty()); in VerifyPayload()
1739 payload_hash_calculator_.raw_hash() == update_check_response_hash); in VerifyPayload()
1743 brillo::Blob hash_data = signed_hash_calculator_.raw_hash(); in VerifyPayload()
/system/update_engine/
Domaha_response_handler_action.cc96 brillo::Blob raw_hash; in PerformAction() local
97 if (!base::HexStringToBytes(package.hash, &raw_hash)) { in PerformAction()
108 .hash = raw_hash, in PerformAction()
Domaha_request_action.cc1157 brillo::Blob raw_hash; in LookupPayloadViaP2P() local
1158 if (!base::HexStringToBytes(response.packages[0].hash, &raw_hash)) in LookupPayloadViaP2P()
1161 utils::CalculateP2PFileId(raw_hash, response.packages[0].size); in LookupPayloadViaP2P()
/system/update_engine/payload_generator/
Dpayload_signer.cc205 *out_hash_data = calc.raw_hash(); in CalculateHashFromPayload()
Ddelta_diff_utils.cc892 const brillo::Blob& hash = hasher.raw_hash(); in InitializePartitionInfo()