Home
last modified time | relevance | path

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

/system/update_engine/common/
Dhash_calculator.cc31 HashCalculator::HashCalculator() : valid_(false) { in HashCalculator() function in chromeos_update_engine::HashCalculator
38 bool HashCalculator::Update(const void* data, size_t length) { in Update()
47 off_t HashCalculator::UpdateFile(const string& name, off_t length) { in UpdateFile()
77 bool HashCalculator::Finalize() { in Finalize()
89 bool HashCalculator::RawHashOfBytes(const void* data, in RawHashOfBytes()
92 HashCalculator calc; in RawHashOfBytes()
99 bool HashCalculator::RawHashOfData(const brillo::Blob& data, in RawHashOfData()
104 off_t HashCalculator::RawHashOfFile(const string& name, off_t length, in RawHashOfFile()
106 HashCalculator calc; in RawHashOfFile()
118 string HashCalculator::HashOfBytes(const void* data, size_t length) { in HashOfBytes()
[all …]
Dhash_calculator_unittest.cc53 HashCalculator calc; in TEST_F()
63 HashCalculator calc; in TEST_F()
74 HashCalculator calc; in TEST_F()
78 HashCalculator calc_next; in TEST_F()
89 HashCalculator calc; in TEST_F()
122 HashCalculator calc; in TEST_F()
131 HashCalculator calc; in TEST_F()
151 EXPECT_EQ(2, HashCalculator::RawHashOfFile(data_path, in TEST_F()
159 HashCalculator calc; in TEST_F()
166 HashCalculator calc; in TEST_F()
[all …]
Dhash_calculator.h38 class HashCalculator {
40 HashCalculator();
102 DISALLOW_COPY_AND_ASSIGN(HashCalculator);
/system/update_engine/payload_generator/
Dpayload_signer.cc193 HashCalculator::RawHashOfBytes(payload.data(), metadata_size, in CalculateHashFromPayload()
199 HashCalculator calc; in CalculateHashFromPayload()
422 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfBytes(x_blob.data(), in SignatureBlobLength()
507 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfBytes(metadata, in GetMetadataSignature()
542 HashCalculator::RawHashOfFile(payload_path, file_size, &file_hash) == in ExtractPayloadProperties()
544 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfBytes( in ExtractPayloadProperties()
Dpayload_file.cc228 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile(payload_file, in WritePayload()
312 HashCalculator hasher; in AddOperationHash()
Dpayload_signer_unittest.cc108 EXPECT_TRUE(HashCalculator::RawHashOfBytes(data_blob.data(), in SignSampleData()
Dab_generator.cc315 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in AddSourceHash()
Ddelta_diff_utils.cc740 HashCalculator hasher; in InitializePartitionInfo()
Dab_generator_unittest.cc593 EXPECT_TRUE(HashCalculator::RawHashOfData(src_data, &expected_hash)); in TEST_F()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.h118 std::unique_ptr<HashCalculator> hasher_;
Ddelta_performer.h366 HashCalculator payload_hash_calculator_;
371 HashCalculator signed_hash_calculator_;
Ddelta_performer_integration_test.cc162 EXPECT_TRUE(HashCalculator::RawHashOfData(data, &hash)); in GetSignatureSize()
753 HashCalculator::RawHashOfFile( in ApplyDeltaFile()
757 EXPECT_TRUE(HashCalculator::RawHashOfData( in ApplyDeltaFile()
857 HashCalculator::HashOfData(state->delta), in VerifyPayloadResult()
893 EXPECT_TRUE(HashCalculator::RawHashOfData(state->new_kernel_data, in VerifyPayloadResult()
900 HashCalculator::RawHashOfFile(state->b_img, in VerifyPayloadResult()
Dfilesystem_verifier_action_unittest.cc178 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest()
187 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
Dfilesystem_verifier_action.cc176 hasher_.reset(new HashCalculator()); in StartPartitionHashing()
Ddownload_action_unittest.cc143 string hash = HashCalculator::HashOfBytes(&data[1], data.size() - 1); in TestWithData()
374 install_plan.payload_hash = HashCalculator::HashOfString("x"); in TEST()
Ddelta_performer.cc1045 HashCalculator source_hasher; in PerformSourceCopyOperation()
1177 HashCalculator source_hasher; in PerformSourceBsdiffOperation()
1335 HashCalculator metadata_hasher; in ValidateMetadataSignature()
1489 HashCalculator operation_hasher; in ValidateOperationHash()
Ddelta_performer_unittest.cc471 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
498 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()