/ohos5.0/base/update/packaging_tools/ |
H A D | image_class.py | 129 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 D | create_hashdata.py | 74 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 D | hvbtool.py | 334 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 D | buffer_utils.cpp | 287 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 D | img_hash_check.rs | 35 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 D | fsverity_utils_helper.cpp | 76 .block_size = FSVERITY_HASH_PAGE_SIZE in ComputeDigest()
|
H A D | code_sign_block.cpp | 64 arg.block_size = 1 << verity->logBlockSize; in GetOneFileAndCodeSignInfo()
|
/ohos5.0/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/ |
H A D | code_sign_helper.cpp | 88 path.c_str(), arg.cs_version, arg.hash_algorithm, arg.block_size, arg.sig_size, in ShowCodeSignInfo()
|
H A D | code_sign_utils.cpp | 191 arg.block_size = HASH_PAGE_SIZE; in EnforceCodeSignForFile()
|
/ohos5.0/build/scripts/util/ |
H A D | md5_check.py | 392 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 D | code_sign_utils_test.cpp | 395 EXPECT_EQ(arg.block_size, 0x1000); 437 EXPECT_EQ(arg.block_size, 0x1000);
|
H A D | enable_verity_test.cpp | 312 arg->block_size = HASH_PAGE_SIZE; in FillCommonArgs()
|
/ohos5.0/docs/zh-cn/device-dev/porting/ |
H A D | porting-stm32f407-on-minisystem-eth.md | 738 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 D | porting-bes2600w-on-minisystem-display-demo.md | 360 - `block_size`配置成`4K`对齐,建议不修改。 365 …600/liteos_m/components/hdf_config/hdf.hcs`文件配置文件系统的烧录的起始地址、文件系统的大小以及读数据块的大小`block_size`等信息,参考配置如下: 374 block_size = [4096];
|
H A D | porting-cst85f01-combo-demo.md | 386 VfsOps->LfsOps.block_size = LFS_DEFAULT_BLOCK_SIZE;
|
H A D | porting-yangfan-on_standard-demo.md | 141 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
|
H A D | porting-dayu200-on_standard-demo.md | 128 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.md | 141 …(#osmemorypoolnew) (uint32_t block_count, uint32_t block_size, const … 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 D | module_loop.cpp | 200 config.block_size = LOOP_BLOCK_SIZE; in ConfigureLoopDevice()
|
/ohos5.0/docs/en/device-dev/porting/ |
H A D | porting-stm32f407-on-minisystem-eth.md | 736 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 D | porting-bes2600w-on-minisystem-display-demo.md | 359 - `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 D | porting-cst85f01-combo-demo.md | 384 VfsOps->LfsOps.block_size = LFS_DEFAULT_BLOCK_SIZE;
|
H A D | porting-yangfan-on_standard-demo.md | 141 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
|
H A D | porting-dayu200-on_standard-demo.md | 128 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 D | parse_functions.py | 540 … sbc_arg=0x%x sbc_flags=0x%x sbc_retires=%d blocks=%d block_size=%d blk_addr=%d data_flags=0x%x \
|