/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/ |
H A D | boot_upg_check.c | 132 hi_u32 boot_upg_get_common_head(hi_u32 addr, hi_upg_common_head *head) in boot_upg_get_common_head() 134 hi_u32 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)head); in boot_upg_get_common_head() 144 hi_upg_common_head head = { 0 }; in boot_upg_get_section_head() 150 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)(&head)); in boot_upg_get_section_head() 162 hi_u32 boot_upg_check_alg_param(const hi_upg_common_head *head) in boot_upg_check_alg_param() 178 if (head->section_offset != (sizeof(hi_upg_common_head) + head->key_len + sizeof(upg_rsa_sign))) { in boot_upg_check_alg_param() 186 if (head->section_offset != (sizeof(hi_upg_common_head) + head->key_len + sizeof(upg_ecc_sign))) { in boot_upg_check_alg_param() 192 hi_u32 boot_upg_check_common_head(const hi_upg_common_head *head) in boot_upg_check_common_head() 207 (head->section_offset != (sizeof(hi_upg_common_head) + sizeof(hi_upg_key) + sizeof(hi_upg_sign))) || in boot_upg_check_common_head() 233 hi_upg_common_head *common_hea in boot_upg_check_file() [all...] |
H A D | boot_upg_check.h | 24 hi_u32 boot_upg_get_common_head(hi_u32 addr, hi_upg_common_head *head); 26 hi_u32 boot_upg_check_common_head(const hi_upg_common_head *head);
|
H A D | boot_upg_check_secure.c | 210 hi_u32 key2_offset = sizeof(hi_upg_common_head) + key_length; in boot_upg_set_key() 276 param.key_n = (hi_u8 *)upg_head + sizeof(hi_upg_common_head); in boot_upg_secure_verify_code() 326 param.key_n = (hi_u8 *)upg_head + sizeof(hi_upg_common_head); in boot_upg_unsecure_verify_code() 340 hi_upg_common_head *head = &(upg_head->common); in boot_upg_secure_verify_head() 365 param.total_size[0] = sizeof(hi_upg_common_head) + head->key_len; in boot_upg_secure_verify_head() 370 param.sign = (hi_u8 *)upg_head + sizeof(hi_upg_common_head) + head->key_len; in boot_upg_secure_verify_head() 383 hi_upg_common_head *head = &(upg_head->common); in boot_upg_unsecure_verify_head() 387 param.total_size[0] = sizeof(hi_upg_common_head) + head->key_len; in boot_upg_unsecure_verify_head() 392 param.sign = (hi_u8 *)upg_head + sizeof(hi_upg_common_head) + head->key_len; in boot_upg_unsecure_verify_head()
|
H A D | boot_upg_tool.c | 235 hi_u32 key2_offset = sizeof(hi_upg_common_head) + key_length; in boot_upg_lzma_secure_verify_code() 256 param.key_n = (hi_u8 *)upg_head + sizeof(hi_upg_common_head); in boot_upg_lzma_secure_verify_code()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/ |
H A D | upg_check_file.c | 203 hi_u32 upg_get_common_head_from_flash(hi_u32 addr, hi_upg_common_head *head) in upg_get_common_head_from_flash() 205 hi_u32 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)head); in upg_get_common_head_from_flash() 215 hi_upg_common_head head = { 0 }; in upg_get_section_head_from_flash() 222 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)(&head)); in upg_get_section_head_from_flash() 236 hi_u32 upg_check_alg_param(HI_CONST hi_upg_common_head *head) in upg_check_alg_param() 253 if (head->section_offset != (sizeof(hi_upg_common_head) + sizeof(upg_rsa_key) + sizeof(upg_rsa_sign))) { in upg_check_alg_param() 259 if (head->section_offset != (sizeof(hi_upg_common_head) + sizeof(upg_ecc_key) + sizeof(upg_ecc_sign))) { in upg_check_alg_param() 265 hi_u32 upg_check_head_common_info(const hi_upg_common_head *head, hi_u32 head_size) in upg_check_head_common_info() 269 if (head_size != sizeof(hi_upg_common_head)) { in upg_check_head_common_info() 294 (head->section_offset != (sizeof(hi_upg_common_head) in upg_check_head_common_info() [all...] |
H A D | upg_check_file.h | 36 hi_u32 upg_check_common_head(const hi_upg_common_head *head, hi_u32 head_size); 37 hi_u32 upg_get_common_head_from_flash(hi_u32 addr, hi_upg_common_head *head);
|
H A D | upg_check_secure.c | 186 hi_u32 key2_offset = sizeof(hi_upg_common_head) + key_length; in upg_get_subkey() 201 const hi_upg_common_head *head) in upg_crypto_set_secure_verify_param() 236 hi_void upg_set_secure_verify_param(upg_verify_param *param, hi_u32 flash_addr, const hi_upg_common_head *head) in upg_set_secure_verify_param() 253 hi_upg_common_head *head = &(upg_head->common); in upg_check_upg_file_code() 283 param.key_n = (hi_u8 *)upg_head + sizeof(hi_upg_common_head); in upg_check_upg_file_code() 303 hi_upg_common_head *head = &(upg_head->common); in upg_check_upg_file_head() 335 param.total_size[0] = sizeof(hi_upg_common_head) + head->key_len; in upg_check_upg_file_head() 340 param.sign = (hi_u8 *)upg_head + sizeof(hi_upg_common_head) + head->key_len; in upg_check_upg_file_head()
|
H A D | upg_common.c | 243 hi_upg_common_head *head = HI_NULL; in upg_get_code_file_ver() 251 head = hi_malloc(HI_MOD_ID_UPG, sizeof(hi_upg_common_head)); in upg_get_code_file_ver() 256 memset_s(head, sizeof(hi_upg_common_head), 0, sizeof(hi_upg_common_head)); in upg_get_code_file_ver() 335 hi_u32 ret = hi_flash_read(addr_start + hi_fieldoffset(hi_upg_common_head, file_len), sizeof(hi_u32), in upg_set_kernel_size() 416 memset_s(&ctx->common_head, sizeof(hi_upg_common_head), 0, sizeof(hi_upg_common_head)); in upg_clear_ctx() 701 hi_upg_common_head *head = HI_NULL; in upg_start() 710 if (buf_len < sizeof(hi_upg_common_head)) { in upg_start() 713 head = (hi_upg_common_head *)bu in upg_start() [all...] |
H A D | upg_common.h | 76 hi_upg_common_head common_head;
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/ |
H A D | burn_file.c | 22 hi_upg_common_head head = { 0 }; in loaderboot_get_section_head() 28 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)(&head)); in loaderboot_get_section_head()
|
H A D | burn_file.h | 126 } hi_upg_common_head; typedef 176 hi_upg_common_head common; /**< Common head of upg file.CNcomment:公共文件头。CNend */
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/include/ |
H A D | hi_upg_file.h | 138 } hi_upg_common_head; typedef 188 hi_upg_common_head common; /**< Common head of upg file.CNcomment:公共文件头。CNend */ 197 hi_upg_common_head common; /**< Common head of upg file.CNcomment:公共文件头。CNend */
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/ |
H A D | hi_upg_file.h | 127 } hi_upg_common_head; typedef 177 hi_upg_common_head common; /**< Common head of upg file.CNcomment:公共文件头。CNend */ 186 hi_upg_common_head common; /**< Common head of upg file.CNcomment:公共文件头。CNend */
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/ |
H A D | make_upg_file.py | 95 class hi_upg_common_head(Structure):
class 162 st_hupg = hi_upg_common_head.from_buffer(upg_bin)
180 common_key_offset = sizeof(hi_upg_common_head)
181 common_sign_offset = sizeof(hi_upg_common_head) + st_hupg.key_len
196 common_key_offset = sizeof(hi_upg_common_head)
197 common_sign_offset = sizeof(hi_upg_common_head) + st_hupg.key_len
212 common_key_offset = sizeof(hi_upg_common_head)
213 common_sign_offset = sizeof(hi_upg_common_head) + st_hupg.key_len
241 st_hupg = hi_upg_common_head.from_buffer(upg_bin)
420 (common_head_offset, common_head_size) = make_part_offset_size(temp_offset, sizeof(hi_upg_common_head))
[all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/ |
H A D | crypto.c | 56 hi_upg_common_head *common_head = &(upg_head.common); in crypto_check_kernel_file() 923 hi_upg_common_head *upg_head = (hi_upg_common_head *)boot_malloc(sizeof(hi_upg_common_head)); in decrypt_para_init() 928 ret = hi_flash_read(addr_write, sizeof(hi_upg_common_head), (hi_u8 *)upg_head); in decrypt_para_init()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/ |
H A D | at_general.c | 227 hi_u32 factory_check_common_head(const hi_upg_common_head *head, hi_u32 bin_len) in factory_check_common_head() 242 (head->section_offset != (sizeof(hi_upg_common_head) + sizeof(hi_upg_key) + sizeof(hi_upg_sign))) || in factory_check_common_head() 264 hi_upg_common_head *common_head = &(upg_head->common); in factory_check_file()
|