Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 - 7 of 7) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_tool.c67 hi_u32 hash_size = size + 1; in kernel_comprss_flash_hash() local
72 hash_size = size; in kernel_comprss_flash_hash()
74 boot_msg4("code hash ret-size-offset-headsize", ret, size, offset, hash_size); in kernel_comprss_flash_hash()
76 return hash_size; in kernel_comprss_flash_hash()
89 boot_msg4("head hash updata ret-size-offset-hashsize", ret, size, offset, hash_size); in kernel_comprss_flash_hash()
90 return hash_size; in kernel_comprss_flash_hash()
99 hash_size = size; in kernel_comprss_flash_hash()
101 boot_msg4("code head hash ret-size-offset-hashsize", ret, size, offset, hash_size); in kernel_comprss_flash_hash()
103 return hash_size; in kernel_comprss_flash_hash()
125 hi_u32 boot_upg_hash_one_content(hi_u32 flash_addr, hi_u32 total_size, hi_u8 *hash, hi_u32 hash_size) in boot_upg_hash_one_content() argument
154 boot_upg_hash_more_content(HI_CONST upg_verify_param *param, hi_u8 *hash, hi_u32 hash_size) boot_upg_hash_more_content() argument
191 boot_upg_lzma_secure_verify(const upg_verify_param *param, hi_u8 *hash, hi_u32 hash_size) boot_upg_lzma_secure_verify() argument
230 boot_upg_lzma_secure_verify_code(const hi_upg_file_head *upg_head, hi_u8 *hash, hi_u32 hash_size) boot_upg_lzma_secure_verify_code() argument
268 boot_upg_lzma_unsecure_verify_code(const hi_upg_file_head *upg_head, hi_u8 *hash, hi_u32 hash_size) boot_upg_lzma_unsecure_verify_code() argument
[all...]
H A Dboot_upg_tool.h25 hi_u32 boot_upg_hash_one_content(hi_u32 flash_addr, hi_u32 total_size, hi_u8 *hash, hi_u32 hash_size);
26 hi_u32 boot_upg_hash_more_content(HI_CONST upg_verify_param *param, hi_u8 *hash, hi_u32 hash_size);
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
H A Dcryp_hash.c118 hi_u32 hash_size; /* HASH result size */ member
134 hisi_ctx->hash_size = SHA1_RESULT_SIZE; in cryp_sha1_init()
144 hisi_ctx->hash_size = SHA224_RESULT_SIZE; in cryp_sha2_224_init()
158 hisi_ctx->hash_size = SHA256_RESULT_SIZE; in cryp_sha2_256_init()
181 hisi_ctx->hash_size = SHA384_RESULT_SIZE; in cryp_sha2_384_init()
205 hisi_ctx->hash_size = SHA512_RESULT_SIZE; in cryp_sha2_512_init()
222 hisi_ctx->hash_size = SM3_RESULT_SIZE; in cryp_sm3_init()
609 if (memcpy_s(hash, hash_buf_len, hisi_ctx->hash, hisi_ctx->hash_size) != EOK) { in cryp_hash_finish()
613 *hashlen = hisi_ctx->hash_size; in cryp_hash_finish()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_secure.c44 hi_u32 upg_hash_one_content(hi_u32 flash_addr, hi_u32 total_size, hi_u8 *hash, hi_u32 hash_size) in upg_hash_one_content() argument
65 (hi_void) hi_cipher_hash_final(hash, hash_size); in upg_hash_one_content()
76 return hi_cipher_hash_final(hash, hash_size); in upg_hash_one_content()
79 hi_u32 upg_hash_more_content(HI_CONST upg_verify_param *param, hi_u8 *hash, hi_u32 hash_size) in upg_hash_more_content() argument
106 (hi_void) hi_cipher_hash_final(hash, hash_size); in upg_hash_more_content()
118 return hi_cipher_hash_final(hash, hash_size); in upg_hash_more_content()
H A Dupg_check_secure.h55 hi_u32 upg_hash_one_content(hi_u32 flash_addr, hi_u32 total_size, hi_u8 *hash, hi_u32 hash_size);
/device/soc/rockchip/common/sdk_linux/scripts/
H A Dresource_tool.c595 uint32_t hash_size; /* 20 or 32 */ member
1390 static int write_file(int offset_block, const char *src_path, char hash[], int hash_size) in write_file() argument
1420 if (hash_size == 20) { in write_file()
1422 } else if (hash_size == 32) { in write_file()
1481 entry.hash_size = sizeof(hash); in write_index_tbl()
/device/soc/rockchip/rk3588/kernel/scripts/
H A Dresource_tool.c612 uint32_t hash_size; /* 20 or 32 */ member
1410 char hash[], int hash_size) in write_file()
1438 if (hash_size == 20) in write_file()
1441 else if (hash_size == 32) in write_file()
1497 entry.hash_size = sizeof(hash); in write_index_tbl()
1409 write_file(int offset_block, const char *src_path, char hash[], int hash_size) write_file() argument

Completed in 7 milliseconds