/system/update_engine/common/ |
D | hash_calculator.cc | 30 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 …]
|
D | hash_calculator_unittest.cc | 48 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 …]
|
D | hash_calculator.h | 38 class HashCalculator { 40 HashCalculator(); 89 DISALLOW_COPY_AND_ASSIGN(HashCalculator);
|
/system/update_engine/payload_consumer/ |
D | file_descriptor_utils_unittest.cc | 137 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F() 165 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F() 193 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F()
|
D | certificate_parser_android_unittest.cc | 48 ASSERT_TRUE(HashCalculator::RawHashOfData({'x'}, &hash_blob)); in TEST()
|
D | filesystem_verifier_action.h | 126 std::unique_ptr<HashCalculator> hasher_;
|
D | delta_performer.h | 405 HashCalculator payload_hash_calculator_; 410 HashCalculator signed_hash_calculator_;
|
D | file_descriptor_utils.cc | 53 HashCalculator source_hasher; in CommonHashExtents()
|
D | filesystem_verifier_action_unittest.cc | 129 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()
|
D | partition_update_generator_android_unittest.cc | 77 ASSERT_TRUE(HashCalculator::RawHashOfBytes( in CheckPartitionUpdate()
|
D | payload_metadata.cc | 166 if (!HashCalculator::RawHashOfBytes( in ValidateMetadataSignature()
|
D | delta_performer_integration_test.cc | 799 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()
|
D | delta_performer_unittest.cc | 262 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()
|
D | partition_update_generator_android.cc | 215 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition()
|
D | filesystem_verifier_action.cc | 157 hasher_ = std::make_unique<HashCalculator>(); in StartPartitionHashing()
|
D | download_action_unittest.cc | 148 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TestWithData() 476 HashCalculator::RawHashOfData({'x'}, &install_plan.payloads[0].hash)); in TEST()
|
D | delta_performer.cc | 1693 if (!HashCalculator::RawHashOfBytes( in ValidateOperationHash()
|
/system/update_engine/payload_generator/ |
D | payload_properties.cc | 101 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in LoadFromPayload() 107 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in LoadFromPayload()
|
D | payload_signer.cc | 191 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()
|
D | payload_file.cc | 220 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in WritePayload() 304 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(buf, &hash)); in AddOperationHash()
|
D | payload_signer_unittest.cc | 99 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in SignSampleData()
|
D | ab_generator.cc | 308 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in AddSourceHash()
|
D | generate_delta_main.cc | 219 HashCalculator::RawHashOfFile(payload_file, payload.size, &payload.hash); in ApplyPayload()
|
D | ab_generator_unittest.cc | 574 EXPECT_TRUE(HashCalculator::RawHashOfData(src_data, &expected_hash)); in TEST_F()
|
D | delta_diff_utils.cc | 888 HashCalculator hasher; in InitializePartitionInfo()
|