Home
last modified time | relevance | path

Searched refs:HashCalculator (Results 1 – 21 of 21) 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()
Dfilesystem_verifier_action.h107 std::unique_ptr<HashCalculator> hasher_;
Ddelta_performer.h372 HashCalculator payload_hash_calculator_;
377 HashCalculator signed_hash_calculator_;
Dfilesystem_verifier_action_unittest.cc127 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest()
133 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
364 EXPECT_TRUE(HashCalculator::RawHashOfData(part_data, &part.target_hash)); in TEST_F()
Dfile_descriptor_utils.cc53 HashCalculator source_hasher; in CommonHashExtents()
Ddelta_performer_integration_test.cc170 EXPECT_TRUE(HashCalculator::RawHashOfData(data, &hash)); in GetSignatureSize()
736 HashCalculator::RawHashOfFile( in ApplyDeltaFile()
738 EXPECT_TRUE(HashCalculator::RawHashOfData(state->old_kernel_data, in ApplyDeltaFile()
831 HashCalculator::RawHashOfData(state->delta, &expected_hash); in VerifyPayloadResult()
867 EXPECT_TRUE(HashCalculator::RawHashOfData(state->new_kernel_data, in VerifyPayloadResult()
874 HashCalculator::RawHashOfFile( in VerifyPayloadResult()
Ddelta_performer_unittest.cc255 EXPECT_TRUE(HashCalculator::RawHashOfData(copied_data, &src_hash)); in GenerateSourceCopyPayload()
580 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
608 EXPECT_TRUE(HashCalculator::RawHashOfData(src, &src_hash)); in TEST_F()
636 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
730 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
Dpayload_metadata.cc192 if (!HashCalculator::RawHashOfBytes( in ValidateMetadataSignature()
Dfilesystem_verifier_action.cc134 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.cc1756 if (!HashCalculator::RawHashOfBytes( in ValidateOperationHash()
/system/update_engine/payload_generator/
Dpayload_signer.cc187 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfBytes( in CalculateHashFromPayload()
193 HashCalculator calc; in CalculateHashFromPayload()
346 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData({'x'}, &hash_blob)); in SignatureBlobLength()
428 HashCalculator::RawHashOfBytes(metadata, metadata_size, &metadata_hash)); in GetMetadataSignature()
454 HashCalculator::RawHashOfFile(payload_path, file_size, &file_hash) == in ExtractPayloadProperties()
457 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in ExtractPayloadProperties()
Dpayload_signer_unittest.cc96 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in SignSampleData()
Dpayload_file.cc255 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in WritePayload()
339 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(buf, &hash)); in AddOperationHash()
Dab_generator.cc308 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in AddSourceHash()
Dgenerate_delta_main.cc216 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.cc1042 HashCalculator hasher; in InitializePartitionInfo()