/system/update_engine/common/ |
D | hash_calculator.cc | 31 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 …]
|
D | hash_calculator_unittest.cc | 52 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 …]
|
D | hash_calculator.h | 38 class HashCalculator { 40 HashCalculator(); 102 DISALLOW_COPY_AND_ASSIGN(HashCalculator);
|
/system/update_engine/payload_generator/ |
D | payload_signer.cc | 193 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()
|
D | payload_file.cc | 229 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile(payload_file, in WritePayload() 315 HashCalculator hasher; in AddOperationHash()
|
D | payload_signer_unittest.cc | 110 EXPECT_TRUE(HashCalculator::RawHashOfBytes(data_blob.data(), in SignSampleData()
|
D | ab_generator.cc | 315 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in AddSourceHash()
|
D | ab_generator_unittest.cc | 593 EXPECT_TRUE(HashCalculator::RawHashOfData(src_data, &expected_hash)); in TEST_F()
|
D | delta_diff_utils.cc | 751 HashCalculator hasher; in InitializePartitionInfo()
|
/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action.h | 109 std::unique_ptr<HashCalculator> hasher_;
|
D | delta_performer.h | 366 HashCalculator payload_hash_calculator_; 371 HashCalculator signed_hash_calculator_;
|
D | filesystem_verifier_action_unittest.cc | 156 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest() 162 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
|
D | delta_performer_integration_test.cc | 172 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()
|
D | filesystem_verifier_action.cc | 130 hasher_.reset(new HashCalculator()); in StartPartitionHashing()
|
D | download_action_unittest.cc | 143 string hash = HashCalculator::HashOfBytes(&data[1], data.size() - 1); in TestWithData() 374 install_plan.payload_hash = HashCalculator::HashOfString("x"); in TEST()
|
D | delta_performer.cc | 1108 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()
|
D | delta_performer_unittest.cc | 521 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F() 575 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
|