Home
last modified time | relevance | path

Searched refs:hi_upg_section_head (Results 1 - 18 of 18) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_file.c213 hi_u32 upg_get_section_head_from_flash(hi_u32 addr, hi_upg_section_head *section_head) in upg_get_section_head_from_flash()
227 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in upg_get_section_head_from_flash()
295 (head->section_len < (sizeof(hi_upg_section_head) + sizeof(hi_upg_sign)))) { in upg_check_head_common_info()
343 hi_upg_section_head *section_head = HI_NULL; in upg_verify_file()
361 section_head = (hi_upg_section_head *)hi_malloc(HI_MOD_ID_UPG, sizeof(hi_upg_section_head)); in upg_verify_file()
366 memset_s(section_head, sizeof(hi_upg_section_head), 0, sizeof(hi_upg_section_head)); in upg_verify_file()
367 ret = hi_flash_read(addr + common_head->section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in upg_verify_file()
H A Dupg_check_secure.c204 param->total_size[0] = sizeof(hi_upg_section_head); in upg_crypto_set_secure_verify_param()
222 param->flash_addr[FLASH_ADDR_NUM - 1] = flash_addr + head->section_offset + sizeof(hi_upg_section_head) + in upg_crypto_set_secure_verify_param()
224 param->total_size[TOTAL_SIZE_NUM - 1] = head->section_len - sizeof(hi_upg_section_head) - sizeof(hi_upg_sign) - in upg_crypto_set_secure_verify_param()
229 param->flash_addr[1] = flash_addr + head->section_offset + sizeof(hi_upg_section_head) + sizeof(hi_upg_sign); in upg_crypto_set_secure_verify_param()
230 param->total_size[1] = head->section_len - sizeof(hi_upg_section_head) - sizeof(hi_upg_sign); in upg_crypto_set_secure_verify_param()
242 param->total_size[0] = sizeof(hi_upg_section_head); in upg_set_secure_verify_param()
244 param->flash_addr[1] = flash_addr + head->section_offset + sizeof(hi_upg_section_head) + sizeof(hi_upg_sign); in upg_set_secure_verify_param()
245 param->total_size[1] = head->section_len - sizeof(hi_upg_section_head) - sizeof(hi_upg_sign); in upg_set_secure_verify_param()
265 ret = hi_flash_read(flash_addr + head->section_offset + sizeof(hi_upg_section_head), in upg_check_upg_file_code()
H A Dupg_check_file.h38 hi_u32 upg_get_section_head_from_flash(hi_u32 addr, hi_upg_section_head *section_head);
H A Dupg_common.c162 hi_upg_section_head section_head = { 0 }; in upg_refresh_nv()
897 hi_upg_section_head section_head = { 0 }; in upg_refresh_boot()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dburn_file.c20 hi_u32 loaderboot_get_section_head(hi_u32 addr, hi_upg_section_head *section_head) in loaderboot_get_section_head()
33 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in loaderboot_get_section_head()
44 hi_upg_section_head section_head = { 0 }; in loaderboot_get_start_addr_offset()
H A Dburn_file.h142 } hi_upg_section_head; typedef
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_kernel.c23 hi_u32 boot_upg_lzma_detect(hi_u32 addr_write, hi_u32 *uncompress_size, const hi_upg_section_head *section_head) in boot_upg_lzma_detect()
53 hi_u32 boot_upg_lzma_verify(hi_u32 addr_write, hi_u32 *uncompress_size, const hi_upg_section_head *section_head, in boot_upg_lzma_verify()
77 hi_upg_section_head section_head = { 0 }; in boot_upg_kernel_process()
78 hi_u32 ret = hi_flash_read(addr_write + sizeof(hi_upg_head), sizeof(hi_upg_section_head), (hi_u8 *)(&section_head)); in boot_upg_kernel_process()
H A Dboot_upg_check_secure.c227 param->total_size[0] = sizeof(hi_upg_section_head); in boot_upg_set_secure_verify_param()
234 sizeof(hi_upg_section_head) + sizeof(hi_upg_sign) + CRYPTO_KERNEL_LENGTH; in boot_upg_set_secure_verify_param()
235 param->total_size[2] = upg_head->common.section_len - sizeof(hi_upg_section_head) - sizeof(hi_upg_sign) - in boot_upg_set_secure_verify_param()
241 sizeof(hi_upg_section_head) + sizeof(hi_upg_sign); in boot_upg_set_secure_verify_param()
242 param->total_size[1] = upg_head->common.section_len - sizeof(hi_upg_section_head) - sizeof(hi_upg_sign); in boot_upg_set_secure_verify_param()
258 ret = hi_flash_read((flash_addr + upg_head->common.section_offset + sizeof(hi_upg_section_head)), in boot_upg_secure_verify_code()
298 ret = hi_flash_read((flash_addr + upg_head->common.section_offset + sizeof(hi_upg_section_head)), in boot_upg_unsecure_verify_code()
306 param.total_size[0] = sizeof(hi_upg_section_head); in boot_upg_unsecure_verify_code()
314 sizeof(hi_upg_section_head) + sizeof(hi_upg_sign) + CRYPTO_KERNEL_LENGTH; in boot_upg_unsecure_verify_code()
315 param.total_size[2] = upg_head->common.section_len - sizeof(hi_upg_section_head) in boot_upg_unsecure_verify_code()
[all...]
H A Dboot_upg_check.c142 hi_u32 boot_upg_get_section_head(hi_u32 addr, hi_upg_section_head *section_head) in boot_upg_get_section_head()
154 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in boot_upg_get_section_head()
208 (head->section_len < (sizeof(hi_upg_section_head) + sizeof(upg_rsa_sign)))) { in boot_upg_check_common_head()
259 hi_upg_section_head section_head = { 0 }; in boot_get_start_addr_offset()
H A Dboot_upg_check.h25 hi_u32 boot_upg_get_section_head(hi_u32 addr, hi_upg_section_head *section_head);
H A Dboot_upg_tool.h27 hi_u32 boot_upg_check_before_decompress(hi_u32 addr_write, const hi_upg_section_head *seciton_head,
H A Dboot_upg_tool.c87 sizeof(hi_upg_section_head)); in kernel_comprss_flash_hash()
259 param.sign = (hi_u8 *)upg_head + sizeof(hi_upg_head) + sizeof(hi_upg_section_head); in boot_upg_lzma_secure_verify_code()
274 if (memcmp((hi_u8 *)upg_head + sizeof(hi_upg_head) + sizeof(hi_upg_section_head), hash, hash_size) != EOK) { in boot_upg_lzma_unsecure_verify_code()
280 hi_u32 boot_upg_check_before_decompress(hi_u32 addr_write, const hi_upg_section_head *section_head, in boot_upg_check_before_decompress()
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dmake_upg_file.py113 class hi_upg_section_head(Structure): class
182 section_sign_offset = st_hupg.section_offset + sizeof(hi_upg_section_head)
198 section_sign_offset = st_hupg.section_offset + sizeof(hi_upg_section_head)
214 section_sign_offset = st_hupg.section_offset + sizeof(hi_upg_section_head)
229 section_head = hi_upg_section_head.from_buffer(
230 upg_bin[st_hupg.section_offset:st_hupg.section_offset + sizeof(hi_upg_section_head)])
441 (section_head_offset, section_head_size) = make_part_offset_size(temp_offset, sizeof(hi_upg_section_head))
506 section_head = hi_upg_section_head.from_buffer(section_head_bin)
547 (signature_1, signature_2) = make_rsa_pkcs_signature(alg_dir_path, upg_bin[common_head_offset:common_head_sign_offset], upg_bin[section_head_offset:section_head_offset+sizeof(hi_upg_section_head)]+upg_bin[upg_file_sign_offset+upg_file_sign_size:common_head.file_len])
549 (signature_1, signature_2) = make_rsa_pss_signature(alg_dir_path, upg_bin[common_head_offset:common_head_sign_offset], upg_bin[section_head_offset:section_head_offset+sizeof(hi_upg_section_head)]
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/include/
H A Dhi_upg_file.h154 } hi_upg_section_head; typedef
203 hi_upg_section_head section; /**< Head of code section.CNcomment:Code段头信息。CNend */
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhi_upg_file.h143 } hi_upg_section_head; typedef
192 hi_upg_section_head section; /**< Head of code section.CNcomment:Code段头信息。CNend */
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.h104 hi_u32 boot_decrypt_upg_file(hi_u32 addr_write, const hi_upg_section_head *section_head);
H A Dcrypto.c1133 hi_u32 boot_decrypt_upg_file(hi_u32 addr_write, const hi_upg_section_head *section_head) in boot_decrypt_upg_file()
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dat_general.c243 (head->section_len < (sizeof(hi_upg_section_head) + sizeof(upg_rsa_sign)))) { in factory_check_common_head()

Completed in 13 milliseconds