Home
last modified time | relevance | path

Searched refs:content_size (Results 1 - 5 of 5) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.c134 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); in crypto_decrypt_hash() local
136 hi_flash_crypto_content *content_tmp = (hi_flash_crypto_content *)boot_malloc(content_size); in crypto_decrypt_hash()
141 cs = (uintptr_t)(content_tmp) ^ content_size ^ (uintptr_t)(key_content) ^ content_size; in crypto_decrypt_hash()
142 ret = (hi_u32)memcpy_s(content_tmp, content_size, key_content, content_size, cs); in crypto_decrypt_hash()
163 content_size - ROOT_SALT_LENGTH - IV_BYTE_LENGTH, HI_FALSE); in crypto_decrypt_hash()
171 loader_clear_content((hi_u8 *)content_tmp, content_size); in crypto_decrypt_hash()
180 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); in crypto_encrypt_hash() local
181 hi_u32 encrypt_size = content_size in crypto_encrypt_hash()
267 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); crypto_save_work_key() local
310 hi_u32 content_size = sizeof(hi_flash_crypto_content); crypto_is_need_gen_key() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dkernel_crypto.c150 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); in crypto_decrypt_hash() local
152 hi_flash_crypto_content *content_tmp = (hi_flash_crypto_content *)hi_malloc(HI_MOD_ID_CRYPTO, content_size); in crypto_decrypt_hash()
157 ret = (hi_u32)memcpy_s(content_tmp, content_size, key_content, content_size); in crypto_decrypt_hash()
178 content_size - ROOT_SALT_LENGTH - IV_BYTE_LENGTH, HI_FALSE); in crypto_decrypt_hash()
186 crypto_clear_content((hi_u8 *)content_tmp, content_size); in crypto_decrypt_hash()
194 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); in crypto_encrypt_hash() local
195 hi_u32 encrypt_size = content_size - ROOT_SALT_LENGTH - IV_BYTE_LENGTH; in crypto_encrypt_hash()
197 hi_flash_crypto_content *data_tmp = (hi_flash_crypto_content *)hi_malloc(HI_MOD_ID_CRYPTO, content_size); in crypto_encrypt_hash()
226 crypto_clear_content((hi_u8 *)data_tmp, content_size); in crypto_encrypt_hash()
286 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); crypto_save_work_key() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c206 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); in crypto_encrypt_hash() local
207 hi_u32 encrypt_size = content_size - ROOT_SALT_LENGTH - IV_BYTE_LENGTH; in crypto_encrypt_hash()
209 hi_flash_crypto_content *data_tmp = (hi_flash_crypto_content *)boot_malloc(content_size); in crypto_encrypt_hash()
243 crypto_clear_content((hi_u8 *)data_tmp, content_size); in crypto_encrypt_hash()
252 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); in crypto_decrypt_hash() local
254 hi_flash_crypto_content *content_tmp = (hi_flash_crypto_content *)boot_malloc(content_size); in crypto_decrypt_hash()
259 cs = (uintptr_t)(content_tmp) ^ content_size ^ (uintptr_t)(key_content) ^ content_size; in crypto_decrypt_hash()
260 ret = (hi_u32)memcpy_s(content_tmp, content_size, key_content, content_size, c in crypto_decrypt_hash()
298 hi_u32 content_size = (hi_u32)sizeof(hi_flash_crypto_content); crypto_save_work_key() local
[all...]
/device/soc/rockchip/common/sdk_linux/scripts/
H A Dresource_tool.c597 uint32_t content_size; /* bytes, size of resource content. */ member
616 uint32_t content_size; /* bytes, size of resource content. */ member
687 entry->content_size = switch_int(entry->content_size); in fix_entry()
815 int blocks = fix_blocks(content->content_size); in load_content()
825 tests_dump_file(content->path, content->load_addr, content->content_size); in load_content()
888 printf("Found entry:\n\tpath:%s\n\toffset:%d\tsize:%d\n", entry->path, entry->content_offset, entry->content_size); in get_entry()
903 content->content_size = entry.content_size; in get_content()
1004 char *end = buf + content.content_size in test_charge()
[all...]
/device/soc/rockchip/rk3588/kernel/scripts/
H A Dresource_tool.c614 uint32_t content_size; /* bytes, size of resource content. */ member
633 uint32_t content_size; /* bytes, size of resource content. */ member
704 entry->content_size = switch_int(entry->content_size); in fix_entry()
824 int blocks = fix_blocks(content->content_size); in load_content()
834 tests_dump_file(content->path, content->load_addr, content->content_size); in load_content()
903 entry->content_offset, entry->content_size); in get_entry()
917 content->content_size = entry.content_size; in get_content()
1019 char *end = buf + content.content_size in test_charge()
[all...]

Completed in 6 milliseconds