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.cc52 HashCalculator calc; in TEST_F()
62 HashCalculator calc; in TEST_F()
73 HashCalculator calc; in TEST_F()
77 HashCalculator calc_next; in TEST_F()
88 HashCalculator calc; in TEST_F()
121 HashCalculator calc; in TEST_F()
130 HashCalculator calc; in TEST_F()
150 EXPECT_EQ(2, HashCalculator::RawHashOfFile(data_path, in TEST_F()
158 HashCalculator calc; in TEST_F()
165 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.cc229 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile(payload_file, in WritePayload()
315 HashCalculator hasher; in AddOperationHash()
Dpayload_signer_unittest.cc110 EXPECT_TRUE(HashCalculator::RawHashOfBytes(data_blob.data(), in SignSampleData()
Dab_generator.cc315 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in AddSourceHash()
Dab_generator_unittest.cc593 EXPECT_TRUE(HashCalculator::RawHashOfData(src_data, &expected_hash)); in TEST_F()
Ddelta_diff_utils.cc751 HashCalculator hasher; in InitializePartitionInfo()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.h109 std::unique_ptr<HashCalculator> hasher_;
Ddelta_performer.h366 HashCalculator payload_hash_calculator_;
371 HashCalculator signed_hash_calculator_;
Dfilesystem_verifier_action_unittest.cc156 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest()
162 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
Ddelta_performer_integration_test.cc172 EXPECT_TRUE(HashCalculator::RawHashOfData(data, &hash)); in GetSignatureSize()
756 HashCalculator::RawHashOfFile( in ApplyDeltaFile()
760 EXPECT_TRUE(HashCalculator::RawHashOfData( in ApplyDeltaFile()
860 HashCalculator::HashOfData(state->delta), in VerifyPayloadResult()
896 EXPECT_TRUE(HashCalculator::RawHashOfData(state->new_kernel_data, in VerifyPayloadResult()
903 HashCalculator::RawHashOfFile(state->b_img, in VerifyPayloadResult()
Dfilesystem_verifier_action.cc130 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.cc1108 HashCalculator source_hasher; in PerformSourceCopyOperation()
1223 HashCalculator source_hasher; in PerformSourceBsdiffOperation()
1291 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in PerformImgdiffOperation()
1415 HashCalculator metadata_hasher; in ValidateMetadataSignature()
1569 HashCalculator operation_hasher; in ValidateOperationHash()
Ddelta_performer_unittest.cc521 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
575 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()