Home
last modified time | relevance | path

Searched refs:HashCalculator (Results 1 – 25 of 25) sorted by relevance

/system/update_engine/common/
Dhash_calculator.cc30 HashCalculator::HashCalculator() : valid_(false) { in HashCalculator() function in chromeos_update_engine::HashCalculator
37 bool HashCalculator::Update(const void* data, size_t length) { in Update()
46 off_t HashCalculator::UpdateFile(const string& name, off_t length) { in UpdateFile()
76 bool HashCalculator::Finalize() { in Finalize()
83 bool HashCalculator::RawHashOfBytes(const void* data, in RawHashOfBytes()
86 HashCalculator calc; in RawHashOfBytes()
93 bool HashCalculator::RawHashOfData(const brillo::Blob& data, in RawHashOfData()
98 off_t HashCalculator::RawHashOfFile(const string& name, in RawHashOfFile()
101 HashCalculator calc; in RawHashOfFile()
113 string HashCalculator::GetContext() const { in GetContext()
[all …]
Dhash_calculator_unittest.cc48 HashCalculator calc; in TEST_F()
57 HashCalculator calc; in TEST_F()
67 HashCalculator calc; in TEST_F()
71 HashCalculator calc_next; in TEST_F()
81 HashCalculator calc; in TEST_F()
111 HashCalculator calc; in TEST_F()
119 HashCalculator calc; in TEST_F()
137 2, HashCalculator::RawHashOfFile(data_file.path(), length, &raw_hash)); in TEST_F()
143 HashCalculator calc; in TEST_F()
149 { HashCalculator calc; } in TEST_F()
[all …]
Dhash_calculator.h38 class HashCalculator {
40 HashCalculator();
89 DISALLOW_COPY_AND_ASSIGN(HashCalculator);
/system/update_engine/payload_consumer/
Dfile_descriptor_utils_unittest.cc137 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F()
165 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F()
193 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F()
Dcertificate_parser_android_unittest.cc48 ASSERT_TRUE(HashCalculator::RawHashOfData({'x'}, &hash_blob)); in TEST()
Dfilesystem_verifier_action.h126 std::unique_ptr<HashCalculator> hasher_;
Ddelta_performer.h405 HashCalculator payload_hash_calculator_;
410 HashCalculator signed_hash_calculator_;
Dfile_descriptor_utils.cc53 HashCalculator source_hasher; in CommonHashExtents()
Dfilesystem_verifier_action_unittest.cc129 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest()
135 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
368 EXPECT_TRUE(HashCalculator::RawHashOfData(part_data, &part.target_hash)); in TEST_F()
Dpartition_update_generator_android_unittest.cc77 ASSERT_TRUE(HashCalculator::RawHashOfBytes( in CheckPartitionUpdate()
Dpayload_metadata.cc166 if (!HashCalculator::RawHashOfBytes( in ValidateMetadataSignature()
Ddelta_performer_integration_test.cc799 HashCalculator::RawHashOfFile( in ApplyDeltaFile()
801 EXPECT_TRUE(HashCalculator::RawHashOfData(state->old_kernel_data, in ApplyDeltaFile()
883 HashCalculator::RawHashOfData(state->delta, &expected_hash); in VerifyPayloadResult()
911 EXPECT_TRUE(HashCalculator::RawHashOfData(state->new_kernel_data, in VerifyPayloadResult()
918 HashCalculator::RawHashOfFile( in VerifyPayloadResult()
Ddelta_performer_unittest.cc262 EXPECT_TRUE(HashCalculator::RawHashOfData(copied_data, &src_hash)); in GenerateSourceCopyPayload()
589 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
617 EXPECT_TRUE(HashCalculator::RawHashOfData(src, &src_hash)); in TEST_F()
645 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
739 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
Dpartition_update_generator_android.cc215 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition()
Dfilesystem_verifier_action.cc157 hasher_ = std::make_unique<HashCalculator>(); in StartPartitionHashing()
Ddownload_action_unittest.cc148 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TestWithData()
476 HashCalculator::RawHashOfData({'x'}, &install_plan.payloads[0].hash)); in TEST()
Ddelta_performer.cc1693 if (!HashCalculator::RawHashOfBytes( in ValidateOperationHash()
/system/update_engine/payload_generator/
Dpayload_properties.cc101 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in LoadFromPayload()
107 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in LoadFromPayload()
Dpayload_signer.cc191 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfBytes( in CalculateHashFromPayload()
197 HashCalculator calc; in CalculateHashFromPayload()
406 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData({'x'}, &hash_blob)); in SignatureBlobLength()
490 HashCalculator::RawHashOfBytes(metadata, metadata_size, &metadata_hash)); in GetMetadataSignature()
Dpayload_file.cc220 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in WritePayload()
304 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(buf, &hash)); in AddOperationHash()
Dpayload_signer_unittest.cc99 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in SignSampleData()
Dab_generator.cc308 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in AddSourceHash()
Dgenerate_delta_main.cc219 HashCalculator::RawHashOfFile(payload_file, payload.size, &payload.hash); in ApplyPayload()
Dab_generator_unittest.cc574 EXPECT_TRUE(HashCalculator::RawHashOfData(src_data, &expected_hash)); in TEST_F()
Ddelta_diff_utils.cc888 HashCalculator hasher; in InitializePartitionInfo()