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()
114 *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.cc131 auto raw_hash = CalculateHashForPartition(source_device, partition_size); in CreatePartitionUpdate() local
132 if (!raw_hash.has_value()) { in CreatePartitionUpdate()
137 old_partition_info->set_hash(raw_hash->data(), raw_hash->size()); in CreatePartitionUpdate()
140 new_partition_info->set_hash(raw_hash->data(), raw_hash->size()); in CreatePartitionUpdate()
163 brillo::Blob raw_hash; in CalculateHashForPartition() local
164 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition()
170 return raw_hash; in CalculateHashForPartition()
Dfilesystem_verifier_action.cc437 << Base64Encode(hasher_->raw_hash()); in FinishPartitionHashing()
441 if (partition.target_hash != hasher_->raw_hash()) { in FinishPartitionHashing()
459 if (partition.source_hash != hasher_->raw_hash()) { in FinishPartitionHashing()
472 << Base64Encode(hasher_->raw_hash()) in FinishPartitionHashing()
Dfile_descriptor_utils.cc70 *hash_out = source_hasher.raw_hash(); in CommonHashExtents()
Ddelta_performer.cc1278 !payload_hash_calculator_.raw_hash().empty()); in VerifyPayload()
1281 payload_hash_calculator_.raw_hash() == update_check_response_hash); in VerifyPayload()
1296 brillo::Blob hash_data = signed_hash_calculator_.raw_hash(); in VerifyPayload()
/system/update_engine/cros/
Domaha_response_handler_action.cc95 brillo::Blob raw_hash; in PerformAction() local
96 if (!base::HexStringToBytes(package.hash, &raw_hash)) { in PerformAction()
107 .hash = raw_hash, in PerformAction()
Domaha_request_action.cc1189 brillo::Blob raw_hash; in LookupPayloadViaP2P() local
1190 if (!base::HexStringToBytes(response.packages[0].hash, &raw_hash)) in LookupPayloadViaP2P()
1193 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.cc888 const brillo::Blob& hash = hasher.raw_hash(); in InitializePartitionInfo()