/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 | 53 HashCalculator calc; in TEST_F() 63 HashCalculator calc; in TEST_F() 74 HashCalculator calc; in TEST_F() 78 HashCalculator calc_next; in TEST_F() 89 HashCalculator calc; in TEST_F() 122 HashCalculator calc; in TEST_F() 131 HashCalculator calc; in TEST_F() 151 EXPECT_EQ(2, HashCalculator::RawHashOfFile(data_path, in TEST_F() 159 HashCalculator calc; in TEST_F() 166 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 | 228 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile(payload_file, in WritePayload() 312 HashCalculator hasher; in AddOperationHash()
|
D | payload_signer_unittest.cc | 108 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 | delta_diff_utils.cc | 740 HashCalculator hasher; in InitializePartitionInfo()
|
D | ab_generator_unittest.cc | 593 EXPECT_TRUE(HashCalculator::RawHashOfData(src_data, &expected_hash)); in TEST_F()
|
/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action.h | 118 std::unique_ptr<HashCalculator> hasher_;
|
D | delta_performer.h | 366 HashCalculator payload_hash_calculator_; 371 HashCalculator signed_hash_calculator_;
|
D | delta_performer_integration_test.cc | 162 EXPECT_TRUE(HashCalculator::RawHashOfData(data, &hash)); in GetSignatureSize() 753 HashCalculator::RawHashOfFile( in ApplyDeltaFile() 757 EXPECT_TRUE(HashCalculator::RawHashOfData( in ApplyDeltaFile() 857 HashCalculator::HashOfData(state->delta), in VerifyPayloadResult() 893 EXPECT_TRUE(HashCalculator::RawHashOfData(state->new_kernel_data, in VerifyPayloadResult() 900 HashCalculator::RawHashOfFile(state->b_img, in VerifyPayloadResult()
|
D | filesystem_verifier_action_unittest.cc | 178 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest() 187 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
|
D | filesystem_verifier_action.cc | 176 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 | 1045 HashCalculator source_hasher; in PerformSourceCopyOperation() 1177 HashCalculator source_hasher; in PerformSourceBsdiffOperation() 1335 HashCalculator metadata_hasher; in ValidateMetadataSignature() 1489 HashCalculator operation_hasher; in ValidateOperationHash()
|
D | delta_performer_unittest.cc | 471 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F() 498 EXPECT_TRUE(HashCalculator::RawHashOfData(expected_data, &src_hash)); in TEST_F()
|