Searched refs:iv_content (Results 1 - 6 of 6) sorted by relevance
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/ |
H A D | load_crypto.c | 162 ret = hi_cipher_aes_crypto((uintptr_t)content_tmp->iv_content, (uintptr_t)key_content->iv_content, in crypto_decrypt_hash() 203 ret = hi_cipher_aes_crypto((uintptr_t)key_content->iv_content, (uintptr_t)(data_tmp->iv_content), 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() 346 (hi_void)hi_cipher_trng_get_random_bytes(key_content->iv_content, IV_BYTE_LENGTH); in crypto_gen_key_content() 390 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(content->iv_content) in crypto_encrypt_data() [all...] |
H A D | load_crypto.h | 75 hi_u8 iv_content[IV_BYTE_LENGTH]; member
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/ |
H A D | kernel_crypto.c | 177 ret = hi_cipher_aes_crypto((uintptr_t)content_tmp->iv_content, (uintptr_t)key_content->iv_content, in crypto_decrypt_hash() 215 ret = hi_cipher_aes_crypto((hi_u32)(uintptr_t)key_content->iv_content, (hi_u32)(uintptr_t)(data_tmp->iv_content), 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() 348 (hi_void)hi_cipher_trng_get_random_bytes(key_content->iv_content, IV_BYTE_LENGTH); in crypto_gen_key_content() 384 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content->iv_content, IV_BYTE_LENGTH); in crypto_decrypt_kernel() 476 if (memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), new_content->iv_content, IV_BYTE_LENGTH) != EOK) { in crypto_encrypt_data()
|
H A D | kernel_crypto.h | 77 hi_u8 iv_content[IV_BYTE_LENGTH]; member
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/ |
H A D | crypto.c | 229 ret = hi_cipher_aes_crypto((hi_u32)(uintptr_t)key_content->iv_content, (hi_u32)(uintptr_t)(data_tmp->iv_content), in crypto_encrypt_hash() 235 hi_u8* key_content_ptr = key_content->iv_content; in crypto_encrypt_hash() 236 hi_u8* data_tmp_ptr = data_tmp->iv_content; in crypto_encrypt_hash() 280 ret = hi_cipher_aes_crypto((uintptr_t)content_tmp->iv_content, (uintptr_t)key_content->iv_content, in crypto_decrypt_hash() 399 (hi_void)hi_cipher_trng_get_random_bytes(key_content->iv_content, IV_BYTE_LENGTH); in crypto_gen_key_content() 442 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(content->iv_content) ^ IV_BYTE_LENGTH; in crypto_encrypt_data() 443 if (memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content->iv_content, IV_BYTE_LENGTH, cs) != EOK) { in crypto_encrypt_data() 489 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(content->iv_content) in crypto_decrypt_kernel() [all...] |
H A D | crypto.h | 75 hi_u8 iv_content[IV_BYTE_LENGTH]; member
|
Completed in 4 milliseconds