Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/base/update/packaging_tools/
H A Dimage_class.py129 self.block_size = None
139 self.block_size = block_size = 4096
141 os.path.getsize(self.image_path) // self.block_size
142 reference = b'\0' * self.block_size
147 blocks_data = f_r.read(self.block_size)
157 file_tell = be_value * block_size
205 default_zero_block = ('\0' * self.block_size).encode()
317 block_size, chunk_start, default_zero_block, each_value, \
320 file_pos += (each_value - chunk_start) * block_size
322 data = image_file_r.read(block_size)
[all …]
H A Dcreate_hashdata.py74 self.block_size = HASH_BLOCK_SIZE
84 self.component_num, self.block_size)
159 hash_type_value, self.hash_digest_size, self.component_num, self.block_size = \
166 self.hash_digest_size, self.component_num, self.block_size))
203 str(self.component_num), str(self.block_size))).encode())
/ohos5.0/base/startup/hvb/tools/
H A Dhvbtool.py334 self.block_size = block_size
431 if num_bytes % self.block_size != 0:
464 if len(data) % self.block_size != 0:
610 if size % self.block_size != 0:
712 self.block_size = _params['block_size']
776 while hash_src_size > self.block_size:
820 while size > self.block_size:
821 blocknum = size // self.block_size
836 self.hashtree += b'\0' * (self.block_size - len(self.hashtree) % self.block_size)
869 remainder = self.block_size - self.image_handle.img_size % self.block_size
[all …]
/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dbuffer_utils.cpp287 size_t block_size = 1024 * 1024; // 1 MB block size in CloneBuffer() local
288 size_t num_blocks = totalSize / block_size; in CloneBuffer()
289 size_t last_block_size = totalSize % block_size; in CloneBuffer()
314 size_t length_to_copy = blocks_to_copy * block_size; in CloneBuffer()
/ohos5.0/base/update/updater/services/rust/hash_signed_data/src/
H A Dimg_hash_check.rs35 block_size: u32 field
93 … HashInfo {tlv_type: 0, tlv_len: 0, algorithm: 0, algo_size: 0, component_count: 0, block_size: 0} in new()
107 self.block_size = u32::from_le_bytes(buffer[12..16].try_into().unwrap()); in read_from_le_bytes()
/ohos5.0/base/security/code_signature/utils/src/
H A Dfsverity_utils_helper.cpp76 .block_size = FSVERITY_HASH_PAGE_SIZE in ComputeDigest()
H A Dcode_sign_block.cpp64 arg.block_size = 1 << verity->logBlockSize; in GetOneFileAndCodeSignInfo()
/ohos5.0/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/
H A Dcode_sign_helper.cpp88 path.c_str(), arg.cs_version, arg.hash_algorithm, arg.block_size, arg.sig_size, in ShowCodeSignInfo()
H A Dcode_sign_utils.cpp191 arg.block_size = HASH_PAGE_SIZE; in EnforceCodeSignForFile()
/ohos5.0/build/scripts/util/
H A Dmd5_check.py392 def _update_md5_for_file(md5, path, block_size=2**16): argument
402 data = infile.read(block_size)
/ohos5.0/base/security/code_signature/test/unittest/
H A Dcode_sign_utils_test.cpp395 EXPECT_EQ(arg.block_size, 0x1000);
437 EXPECT_EQ(arg.block_size, 0x1000);
H A Denable_verity_test.cpp312 arg->block_size = HASH_PAGE_SIZE; in FillCommonArgs()
/ohos5.0/docs/zh-cn/device-dev/porting/
H A Dporting-stm32f407-on-minisystem-eth.md738 W25x_BufferRead(buffer, cfg->context + cfg->block_size * block + off, size);
745 W25x_BufferWrite((uint8_t *)buffer,cfg->context + cfg->block_size * block + off,size);
751 W25x_SectorErase(cfg->context + cfg->block_size * block);
771 block_size = [4096];
H A Dporting-bes2600w-on-minisystem-display-demo.md360 - `block_size`配置成`4K`对齐,建议不修改。
365 …600/liteos_m/components/hdf_config/hdf.hcs`文件配置文件系统的烧录的起始地址、文件系统的大小以及读数据块的大小`block_size`等信息,参考配置如下:
374 block_size = [4096];
H A Dporting-cst85f01-combo-demo.md386 VfsOps->LfsOps.block_size = LFS_DEFAULT_BLOCK_SIZE;
H A Dporting-yangfan-on_standard-demo.md141 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
H A Dporting-dayu200-on_standard-demo.md128 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
/ohos5.0/docs/zh-cn/device-dev/reference/kernel/cmsis/
H A D_c_m_s_i_s-_r_t_o_s.md141 …(#osmemorypoolnew)&nbsp;(uint32_t&nbsp;block_count,&nbsp;uint32_t&nbsp;block_size,&nbsp;const&nbsp…
1356 osMemoryPoolId_t osMemoryPoolNew (uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr…
1368 | block_size | 内存池块大小,单位:字节。 |
/ohos5.0/base/update/sys_installer/services/module_update/src/
H A Dmodule_loop.cpp200 config.block_size = LOOP_BLOCK_SIZE; in ConfigureLoopDevice()
/ohos5.0/docs/en/device-dev/porting/
H A Dporting-stm32f407-on-minisystem-eth.md736 W25x_BufferRead(buffer, cfg->context + cfg->block_size * block + off, size);
743 W25x_BufferWrite((uint8_t *)buffer,cfg->context + cfg->block_size * block + off,size);
749 W25x_SectorErase(cfg->context + cfg->block_size * block);
769 block_size = [4096];
H A Dporting-bes2600w-on-minisystem-display-demo.md359 - `block_size`: size of the read data block. Set it to `4K` alignment and do not change the value.
364 …ile system, size of the file system, and size of the read data block (`block_size`). The reference…
373 block_size = [4096];
H A Dporting-cst85f01-combo-demo.md384 VfsOps->LfsOps.block_size = LFS_DEFAULT_BLOCK_SIZE;
H A Dporting-yangfan-on_standard-demo.md141 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
H A Dporting-dayu200-on_standard-demo.md128 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
/ohos5.0/base/hiviewdfx/hitrace/tools/hitrace_converter/
H A Dparse_functions.py540 … sbc_arg=0x%x sbc_flags=0x%x sbc_retires=%d blocks=%d block_size=%d blk_addr=%d data_flags=0x%x \

12