Home
last modified time | relevance | path

Searched refs:crc32 (Results 1 – 14 of 14) sorted by relevance

/system/core/libsparse/
Dsparse_read.cpp78 virtual int GetCrc32(uint32_t* crc32, int64_t len) = 0;
105 int GetCrc32(uint32_t* crc32, int64_t len) override { in GetCrc32() argument
114 *crc32 = sparse_crc32(*crc32, copybuf, chunk); in GetCrc32()
153 int GetCrc32(uint32_t* crc32, int64_t len) override { in GetCrc32() argument
154 *crc32 = sparse_crc32(*crc32, buf, len); in GetCrc32()
176 uint32_t* crc32) { in process_raw_chunk() argument
193 if (crc32) { in process_raw_chunk()
194 ret = source->GetCrc32(crc32, len); in process_raw_chunk()
207 uint32_t* crc32) { in process_fill_chunk() argument
229 if (crc32) { in process_fill_chunk()
[all …]
Doutput_file.cpp77 uint32_t crc32; member
365 while (count--) out->crc32 = sparse_crc32(out->crc32, &fill_val, sizeof(uint32_t)); in write_sparse_fill_chunk()
399 out->crc32 = sparse_crc32(out->crc32, data, len); in write_sparse_data_chunk()
400 if (zero_len) out->crc32 = sparse_crc32(out->crc32, out->zero_buf, zero_len); in write_sparse_data_chunk()
423 out->ops->write(out, &out->crc32, 4); in write_sparse_end_chunk()
512 out->crc32 = 0; in output_file_init()
/system/libziparchive/
Dzip_archive_common.h95 uint32_t crc32; member
147 uint32_t crc32; member
170 uint32_t crc32; member
Dzip_writer.cc187 dst->crc32 = 0u; in CopyFromFileEntry()
191 dst->crc32 = src.crc32; in CopyFromFileEntry()
368 current_file_entry_.crc32 = static_cast<uint32_t>( in WriteBytes()
369 crc32(current_file_entry_.crc32, reinterpret_cast<const Bytef*>(data), len32)); in WriteBytes()
481 DataDescriptor::kOptSignature, current_file_entry_.crc32, in FinishEntry()
526 cdr.crc32 = file.crc32; in Finish()
Dzip_archive_stream_entry.cc42 crc32_ = entry.crc32; in Init()
108 crc32(computed_crc32_, data_.data(), static_cast<uint32_t>(data_.size()))); in Read()
250 crc32(computed_crc32_, out_.data(), static_cast<uint32_t>(out_.size()))); in Read()
258 crc32(computed_crc32_, out_.data(), static_cast<uint32_t>(out_.size()))); in Read()
Dzip_archive.cc688 descriptor.crc32 = ConsumeUnaligned<uint32_t>(&ddReadPtr); in ValidateDataDescriptor()
705 entry->crc32 != descriptor.crc32) { in ValidateDataDescriptor()
708 entry->compressed_length, entry->uncompressed_length, entry->crc32, in ValidateDataDescriptor()
709 descriptor.compressed_size, descriptor.uncompressed_size, descriptor.crc32); in ValidateDataDescriptor()
753 data->crc32 = cdr->crc32; in FindEntry()
897 data->uncompressed_length != lfh_uncompressed_size || data->crc32 != lfh->crc32) { in FindEntry()
900 data->compressed_length, data->uncompressed_length, data->crc32, lfh_compressed_size, in FindEntry()
901 lfh_uncompressed_size, lfh->crc32); in FindEntry()
1346 crc = crc32(crc, &write_buf[0], static_cast<uint32_t>(write_size)); in inflateImpl()
1415 crc = crc32(crc, &buf[0], block_size); in CopyEntryToWriter()
[all …]
Dziptool.cpp216 crc = static_cast<uint32_t>(crc32(crc, reinterpret_cast<const Bytef*>(buf), in Append()
230 if (writer.crc == entry.crc32) { in TestOne()
234 printf("bad CRC %08" PRIx32 " (should be %08" PRIx32 ")\n", writer.crc, entry.crc32); in TestOne()
315 CompressionRatio(entry.uncompressed_length, entry.compressed_length), time, entry.crc32, in ListOne()
Dzip_archive_test.cc349 ASSERT_EQ(0x950821c5, data.crc32); in TEST()
/system/libziparchive/include/ziparchive/
Dzip_writer.h76 uint32_t crc32; member
Dzip_archive.h70 uint32_t crc32; member
/system/core/storaged/
Dstoraged.cpp193 uint32_t computed_crc = crc32(current_version, in load_proto()
212 proto->set_crc(crc32(current_version, in prepare_proto()
/system/vold/
DCheckpoint.cpp428 void crc32(const void* data, size_t n_bytes, uint32_t* crc) { in crc32() function
673 crc32(&buffer[i], ls.block_size, &checksum); in cp_restoreCheckpoint()
/system/update_engine/
Dupdate_metadata.proto83 // xz file after decompression. The xz file should only use crc32 or no crc at
/system/update_engine/update_engine/
Dupdate_metadata.proto83 // xz file after decompression. The xz file should only use crc32 or no crc at