Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 - 8 of 8) sorted by relevance

/base/update/packaging_tools/
H A Dcreate_signed_data.py19 from build_pkcs7 import BLOCK_SIZE, sign_digest namespace
33 chunk = file.read(BLOCK_SIZE)
36 chunk = file.read(BLOCK_SIZE)
H A Dbuild_module_img.py24 BLOCK_SIZE = 4096 variable
56 size += sum([roundup(os.path.getsize(os.path.join(root, name)), BLOCK_SIZE) for name in files])
71 while size > BLOCK_SIZE:
72 blocknum = size // BLOCK_SIZE
73 level_size = roundup(blocknum * HASH_SIZE, BLOCK_SIZE)
84 partition_size = img_size + get_hash_tree_size(img_size) + BLOCK_SIZE
H A Dbuild_pkcs7.py34 BLOCK_SIZE = 8192 variable
65 while remain_len > BLOCK_SIZE:
66 hash_sha256.update(package_file.read(BLOCK_SIZE))
67 remain_len -= BLOCK_SIZE
141 while remain_len > BLOCK_SIZE:
142 f_signed.write(f_unsign.read(BLOCK_SIZE))
143 remain_len -= BLOCK_SIZE
H A Dcreate_update_package.py49 BLOCK_SIZE = 8192 variable
197 while remain_len > BLOCK_SIZE:
198 hash_sha256.update(package_file.read(BLOCK_SIZE))
199 remain_len -= BLOCK_SIZE
209 while remain_len > BLOCK_SIZE:
210 hash_sha256.update(package_file.read(BLOCK_SIZE))
211 remain_len -= BLOCK_SIZE
/base/update/updater/services/package/pkg_package/
H A Dpkg_gzipfile.cpp33 constexpr int32_t BLOCK_SIZE = 8; member
157 PkgBuffer buffer(BLOCK_SIZE); in Pack()
160 ret = outStream->Write(buffer, BLOCK_SIZE, fileInfo_.fileInfo.dataOffset + fileInfo_.fileInfo.packedSize); in Pack()
165 encodeLen = fileInfo_.fileInfo.packedSize + BLOCK_SIZE; in Pack()
175 PkgBuffer buffer(BLOCK_SIZE); // Read last 8 bytes at the end of package in CheckFileInfo()
176 int32_t ret = inStream->Read(buffer, context.packedSize + fileInfo_.fileInfo.dataOffset, BLOCK_SIZE, readLen); in CheckFileInfo()
294 size_t blockOffset = inStream->GetFileLength() - BLOCK_SIZE; in DecodeHeader()
/base/update/updater/utils/
H A Dpartition_utils.cpp60 std::vector<uint8_t> buffer(BLOCK_SIZE, 0); in WipeBlockPartition()
/base/update/updater/services/flashd/
H A Dpartition.cpp85 std::vector<uint8_t> buffer(BLOCK_SIZE, 0); in DoErasePartition()
/base/startup/init/services/modules/trace/
H A Dinit_trace.c39 #define BLOCK_SIZE 4096 macro
392 char buffer[BLOCK_SIZE]; in DumpTrace()
394 bytesRead = TEMP_FAILURE_RETRY(read(traceFd, buffer, BLOCK_SIZE)); in DumpTrace()

Completed in 5 milliseconds