/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 | filesystem_verifier_action.h | 107 std::unique_ptr<HashCalculator> hasher_;
|
D | delta_performer.h | 372 HashCalculator payload_hash_calculator_; 377 HashCalculator signed_hash_calculator_;
|
D | filesystem_verifier_action_unittest.cc | 127 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest() 133 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest() 364 EXPECT_TRUE(HashCalculator::RawHashOfData(part_data, &part.target_hash)); in TEST_F()
|
D | file_descriptor_utils.cc | 53 HashCalculator source_hasher; in CommonHashExtents()
|
D | delta_performer_integration_test.cc | 170 EXPECT_TRUE(HashCalculator::RawHashOfData(data, &hash)); in GetSignatureSize() 736 HashCalculator::RawHashOfFile( in ApplyDeltaFile() 738 EXPECT_TRUE(HashCalculator::RawHashOfData(state->old_kernel_data, in ApplyDeltaFile() 831 HashCalculator::RawHashOfData(state->delta, &expected_hash); in VerifyPayloadResult() 867 EXPECT_TRUE(HashCalculator::RawHashOfData(state->new_kernel_data, in VerifyPayloadResult() 874 HashCalculator::RawHashOfFile( in VerifyPayloadResult()
|
D | delta_performer_unittest.cc | 255 EXPECT_TRUE(HashCalculator::RawHashOfData(copied_data, &src_hash)); in GenerateSourceCopyPayload() 580 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F() 608 EXPECT_TRUE(HashCalculator::RawHashOfData(src, &src_hash)); in TEST_F() 636 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F() 730 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
|
D | payload_metadata.cc | 192 if (!HashCalculator::RawHashOfBytes( in ValidateMetadataSignature()
|
D | filesystem_verifier_action.cc | 134 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 | 1756 if (!HashCalculator::RawHashOfBytes( in ValidateOperationHash()
|
/system/update_engine/payload_generator/ |
D | payload_signer.cc | 187 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfBytes( in CalculateHashFromPayload() 193 HashCalculator calc; in CalculateHashFromPayload() 346 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData({'x'}, &hash_blob)); in SignatureBlobLength() 428 HashCalculator::RawHashOfBytes(metadata, metadata_size, &metadata_hash)); in GetMetadataSignature() 454 HashCalculator::RawHashOfFile(payload_path, file_size, &file_hash) == in ExtractPayloadProperties() 457 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in ExtractPayloadProperties()
|
D | payload_signer_unittest.cc | 96 EXPECT_TRUE(HashCalculator::RawHashOfBytes( in SignSampleData()
|
D | payload_file.cc | 255 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile( in WritePayload() 339 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(buf, &hash)); in AddOperationHash()
|
D | ab_generator.cc | 308 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(src_data, &src_hash)); in AddSourceHash()
|
D | generate_delta_main.cc | 216 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 | 1042 HashCalculator hasher; in InitializePartitionInfo()
|