Home
last modified time | relevance | path

Searched refs:aes_ctrl (Results 1 - 6 of 6) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.c32 static hi_void crpto_set_aes_ctrl_default_value(hi_cipher_aes_ctrl *aes_ctrl) in crpto_set_aes_ctrl_default_value() argument
34 if (aes_ctrl == HI_NULL) { in crpto_set_aes_ctrl_default_value()
37 aes_ctrl->random_en = HI_FALSE; in crpto_set_aes_ctrl_default_value()
38 aes_ctrl->key_from = HI_CIPHER_AES_KEY_FROM_CPU; in crpto_set_aes_ctrl_default_value()
39 aes_ctrl->work_mode = HI_CIPHER_AES_WORK_MODE_CBC; in crpto_set_aes_ctrl_default_value()
40 aes_ctrl->key_len = HI_CIPHER_AES_KEY_LENGTH_256BIT; in crpto_set_aes_ctrl_default_value()
147 hi_cipher_aes_ctrl aes_ctrl = { in crypto_decrypt_hash() local
153 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(content_tmp->iv_nv) ^ IV_BYTE_LENGTH; in crypto_decrypt_hash()
154 ret = (hi_u32)memcpy_s(aes_ctrl in crypto_decrypt_hash()
178 hi_cipher_aes_ctrl aes_ctrl; crypto_encrypt_hash() local
377 hi_cipher_aes_ctrl aes_ctrl; crypto_encrypt_data() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dkernel_crypto.c136 static hi_void crpto_set_aes_ctrl_default_value(hi_cipher_aes_ctrl *aes_ctrl) in crpto_set_aes_ctrl_default_value() argument
138 if (aes_ctrl == HI_NULL) { in crpto_set_aes_ctrl_default_value()
141 aes_ctrl->random_en = HI_FALSE; in crpto_set_aes_ctrl_default_value()
142 aes_ctrl->key_from = HI_CIPHER_AES_KEY_FROM_CPU; in crpto_set_aes_ctrl_default_value()
143 aes_ctrl->work_mode = HI_CIPHER_AES_WORK_MODE_CBC; in crpto_set_aes_ctrl_default_value()
144 aes_ctrl->key_len = HI_CIPHER_AES_KEY_LENGTH_256BIT; in crpto_set_aes_ctrl_default_value()
162 hi_cipher_aes_ctrl aes_ctrl = { in crypto_decrypt_hash() local
169 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content_tmp->iv_nv, IV_BYTE_LENGTH); in crypto_decrypt_hash()
173 ret = hi_cipher_aes_config(&aes_ctrl); in crypto_decrypt_hash()
193 hi_cipher_aes_ctrl aes_ctrl; crypto_encrypt_hash() local
376 hi_cipher_aes_ctrl aes_ctrl; crypto_decrypt_kernel() local
465 hi_cipher_aes_ctrl aes_ctrl; crypto_encrypt_data() local
632 hi_cipher_aes_ctrl aes_ctrl; crypto_upg_file_decrypt() local
[all...]
H A Dupg_check_boot_bin.c199 hi_cipher_aes_ctrl *aes_ctrl = hi_malloc(HI_MOD_ID_UPG, sizeof(hi_cipher_aes_ctrl)); in upg_boot_decrypt() local
200 if ((ctrl == HI_NULL) || (aes_ctrl == HI_NULL)) { in upg_boot_decrypt()
205 memset_s(aes_ctrl, sizeof(hi_cipher_aes_ctrl), 0, sizeof(hi_cipher_aes_ctrl)); in upg_boot_decrypt()
219 if (memcpy_s(aes_ctrl->iv, sizeof(aes_ctrl->iv), sub_key_com->aes_iv, IV_BYTE_LEN) != EOK) { in upg_boot_decrypt()
222 aes_ctrl->random_en = HI_TRUE; in upg_boot_decrypt()
223 aes_ctrl->key_from = HI_CIPHER_AES_KEY_FROM_KDF; in upg_boot_decrypt()
224 aes_ctrl->work_mode = HI_CIPHER_AES_WORK_MODE_CBC; in upg_boot_decrypt()
225 aes_ctrl->key_len = HI_CIPHER_AES_KEY_LENGTH_256BIT; in upg_boot_decrypt()
226 ret = hi_cipher_aes_config(aes_ctrl); in upg_boot_decrypt()
[all...]
H A Dupg_common.c1036 hi_cipher_aes_ctrl *aes_ctrl = HI_NULL; in upg_boot_key_decrypt() local
1042 aes_ctrl = hi_malloc(HI_MOD_ID_UPG, sizeof(hi_cipher_aes_ctrl)); in upg_boot_key_decrypt()
1043 if (aes_ctrl == HI_NULL) { in upg_boot_key_decrypt()
1047 if (memcpy_s(aes_ctrl->iv, sizeof(aes_ctrl->iv), iv, IV_BYTE_LEN) != EOK) { in upg_boot_key_decrypt()
1048 hi_free(HI_MOD_ID_UPG, aes_ctrl); in upg_boot_key_decrypt()
1051 aes_ctrl->random_en = HI_TRUE; in upg_boot_key_decrypt()
1052 aes_ctrl->key_from = HI_CIPHER_AES_KEY_FROM_KDF; in upg_boot_key_decrypt()
1053 aes_ctrl->work_mode = HI_CIPHER_AES_WORK_MODE_CBC; in upg_boot_key_decrypt()
1054 aes_ctrl in upg_boot_key_decrypt()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c191 static hi_void crpto_set_aes_ctrl_default_value(hi_cipher_aes_ctrl *aes_ctrl) in crpto_set_aes_ctrl_default_value() argument
193 if (aes_ctrl == HI_NULL) { in crpto_set_aes_ctrl_default_value()
196 aes_ctrl->random_en = HI_FALSE; in crpto_set_aes_ctrl_default_value()
197 aes_ctrl->key_from = HI_CIPHER_AES_KEY_FROM_CPU; in crpto_set_aes_ctrl_default_value()
198 aes_ctrl->work_mode = HI_CIPHER_AES_WORK_MODE_CBC; in crpto_set_aes_ctrl_default_value()
199 aes_ctrl->key_len = HI_CIPHER_AES_KEY_LENGTH_256BIT; in crpto_set_aes_ctrl_default_value()
204 hi_cipher_aes_ctrl aes_ctrl; in crypto_encrypt_hash() local
214 hi_u32 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(key_content->iv_nv) ^ in crypto_encrypt_hash()
216 ret = (hi_u32)memcpy_s(aes_ctrl in crypto_encrypt_hash()
265 hi_cipher_aes_ctrl aes_ctrl = { crypto_decrypt_hash() local
429 hi_cipher_aes_ctrl aes_ctrl; crypto_encrypt_data() local
474 hi_cipher_aes_ctrl aes_ctrl; crypto_decrypt_kernel() local
866 hi_cipher_aes_ctrl aes_ctrl; boot_crypto_upg_file_decrypt() local
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
H A Ddrv_symc_v200.c57 hi_u32 aes_ctrl : 4; /* aes control */ member
1178 ctx->entry_out[id].aes_ctrl = usage; in drv_symc_add_outbuf()
1211 ctx->entry_out[id].aes_ctrl = ctx->entry_out[id].aes_ctrl | (hi_u32)usage; in drv_symc_add_buf_usage()
1212 hi_log_info("chn %u, add symc out ctrl: id %u, ctrl 0x%x\n", chn_num, id, ctx->entry_out[id].aes_ctrl); in drv_symc_add_buf_usage()

Completed in 7 milliseconds