Searched refs:encrypt_size (Results 1 - 5 of 5) sorted by relevance
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/ |
H A D | kernel_crypto.c | 195 hi_u32 encrypt_size = content_size - ROOT_SALT_LENGTH - IV_BYTE_LENGTH; in crypto_encrypt_hash() local 216 encrypt_size, HI_TRUE); in crypto_encrypt_hash() 221 ret = (hi_u32)memcpy_s(key_content->iv_content, encrypt_size, data_tmp->iv_content, encrypt_size); in crypto_encrypt_hash() 396 (uintptr_t)fw_raw_data, para->encrypt_size, HI_FALSE); in crypto_decrypt_kernel() 467 hi_u8 *fw_cyp_data = hi_malloc(HI_MOD_ID_CRYPTO, para->encrypt_size); in crypto_encrypt_data() 486 ret = hi_cipher_aes_crypto((uintptr_t)(para->raw_buf), (uintptr_t)fw_cyp_data, para->encrypt_size, HI_TRUE); in crypto_encrypt_data() 492 ret = hi_flash_write(para->kernel_start + para->encrypt_offset, para->encrypt_size, fw_cyp_data, HI_TRUE); in crypto_encrypt_data() 579 para->encrypt_size = CRYPTO_KERNEL_LENGTH; in crypto_init_param() 588 para->raw_buf = (hi_u8 *)hi_malloc(0, para->encrypt_size); in crypto_init_param() [all...] |
H A D | kernel_crypto.h | 85 hi_u32 encrypt_size; member
|
H A D | upg_check_secure.c | 220 param->total_size[1] = para->encrypt_size; in upg_crypto_set_secure_verify_param() 223 sizeof(hi_upg_sign) + para->encrypt_size; in upg_crypto_set_secure_verify_param() 225 para->encrypt_size; in upg_crypto_set_secure_verify_param()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/ |
H A D | load_crypto.c | 181 hi_u32 encrypt_size = content_size - ROOT_SALT_LENGTH - IV_BYTE_LENGTH; in crypto_encrypt_hash() local 204 encrypt_size, HI_TRUE); in crypto_encrypt_hash() 209 cs = (uintptr_t)(key_content->iv_content) ^ encrypt_size ^ (uintptr_t)(data_tmp->iv_content) ^ encrypt_size; in crypto_encrypt_hash() 210 ret = (hi_u32)memcpy_s(key_content->iv_content, encrypt_size, data_tmp->iv_content, encrypt_size, cs); in crypto_encrypt_hash()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/ |
H A D | crypto.c | 207 hi_u32 encrypt_size = content_size - ROOT_SALT_LENGTH - IV_BYTE_LENGTH; in crypto_encrypt_hash() local 230 encrypt_size, HI_TRUE); in crypto_encrypt_hash() 237 cs = (uintptr_t)key_content_ptr ^ encrypt_size ^ (uintptr_t)data_tmp_ptr ^ encrypt_size; in crypto_encrypt_hash() 238 ret = memcpy_s(key_content_ptr, encrypt_size, data_tmp_ptr, encrypt_size, cs); in crypto_encrypt_hash()
|
Completed in 5 milliseconds