/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 bool HashCalculator::RawHashOfFile(const string& name, brillo::Blob* out_hash) { in RawHashOfFile() 103 off_t HashCalculator::RawHashOfFile(const string& name, in RawHashOfFile() 106 HashCalculator calc; in RawHashOfFile() [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(); 90 DISALLOW_COPY_AND_ASSIGN(HashCalculator);
|
/system/update_engine/payload_consumer/ |
D | file_descriptor_utils_unittest.cc | 135 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F() 163 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F() 191 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TEST_F()
|
D | certificate_parser_android_unittest.cc | 48 ASSERT_TRUE(HashCalculator::RawHashOfData({'x'}, &hash_blob)); in TEST()
|
D | delta_performer.h | 394 HashCalculator payload_hash_calculator_; 399 HashCalculator signed_hash_calculator_;
|
D | partition_writer_unittest.cc | 75 EXPECT_TRUE(HashCalculator::RawHashOfData(copied_data, &src_hash)); in GenerateSourceCopyOp() 193 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
|
D | filesystem_verifier_action_unittest.cc | 125 HashCalculator::RawHashOfFile(source_part_.path(), &part.source_hash)); in AddFakePartition() 127 HashCalculator::RawHashOfFile(target_part_.path(), &part.target_hash)); in AddFakePartition() 175 ASSERT_TRUE(HashCalculator::RawHashOfFile(target_part_.path(), in SetHashWithVerity() 289 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest() 295 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest() 527 EXPECT_TRUE(HashCalculator::RawHashOfData(part_data, &part.target_hash)); in TEST_F()
|
D | filesystem_verifier_action.h | 149 std::unique_ptr<HashCalculator> hasher_;
|
D | file_descriptor_utils.cc | 53 HashCalculator source_hasher; in CommonHashExtents()
|
D | partition_update_generator_android.cc | 164 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition()
|
D | partition_update_generator_android_unittest.cc | 92 ASSERT_TRUE(HashCalculator::RawHashOfBytes( in CheckPartitionUpdate()
|
D | delta_performer_unittest.cc | 270 EXPECT_TRUE(HashCalculator::RawHashOfData(copied_data, &src_hash)); in GenerateSourceCopyPayload() 588 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F() 616 EXPECT_TRUE(HashCalculator::RawHashOfData(src, &src_hash)); in TEST_F() 644 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F() 1145 HashCalculator::RawHashOfBytes(data, length, &src_hash); in GetSourceCopyOp()
|
D | payload_metadata.cc | 189 if (!HashCalculator::RawHashOfBytes( in ValidateMetadataSignature()
|
D | delta_performer_integration_test.cc | 819 HashCalculator::RawHashOfFile( in ApplyDeltaFile() 821 EXPECT_TRUE(HashCalculator::RawHashOfData(state->old_kernel_data, in ApplyDeltaFile() 905 HashCalculator::RawHashOfData(state->delta, &expected_hash); in VerifyPayloadResult() 936 EXPECT_TRUE(HashCalculator::RawHashOfData(state->new_kernel_data, in VerifyPayloadResult() 944 HashCalculator::RawHashOfFile( in VerifyPayloadResult()
|
D | filesystem_verifier_action.cc | 357 hasher_ = std::make_unique<HashCalculator>(); in StartPartitionHashing()
|
/system/update_engine/payload_generator/ |
D | payload_properties.cc | 95 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in LoadFromPayload() 101 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() 403 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData({'x'}, &hash_blob)); in SignatureBlobLength() 487 HashCalculator::RawHashOfBytes(metadata, metadata_size, &metadata_hash)); in GetMetadataSignature()
|
D | payload_file.cc | 241 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in WritePayload() 325 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 | 194 HashCalculator::RawHashOfFile(payload_file, payload.size, &payload.hash); in ApplyPayload()
|
D | ab_generator_unittest.cc | 570 EXPECT_TRUE(HashCalculator::RawHashOfData(src_data, &expected_hash)); in TEST_F()
|
D | delta_diff_utils.cc | 884 HashCalculator hasher; in InitializePartitionInfo()
|
/system/update_engine/cros/ |
D | download_action_chromeos_unittest.cc | 147 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in TestWithData() 473 HashCalculator::RawHashOfData({'x'}, &install_plan.payloads[0].hash)); in TEST()
|