Searched refs:work_text (Results 1 - 6 of 6) sorted by relevance
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/ |
H A D | load_crypto.c | 240 if (memcmp(key_content->work_text, key_e, KEY_BYTE_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_key_content() 360 cs = (uintptr_t)(key_content->work_text) ^ KEY_BYTE_LENGTH ^ (uintptr_t)(ctrl.result) ^ in crypto_gen_key_content() 362 if (memcpy_s(key_content->work_text, KEY_BYTE_LENGTH, ctrl.result, sizeof(ctrl.result), cs) != EOK) { in crypto_gen_key_content() 385 (uintptr_t)(content->work_text) ^ KEY_BYTE_LENGTH; in crypto_encrypt_data() 386 if (memcpy_s(aes_ctrl.key, sizeof(aes_ctrl.key), content->work_text, KEY_BYTE_LENGTH, cs) != EOK) { in crypto_encrypt_data()
|
H A D | load_crypto.h | 76 hi_u8 work_text[KEY_BYTE_LENGTH]; member
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/ |
H A D | kernel_crypto.h | 78 hi_u8 work_text[KEY_BYTE_LENGTH]; member
|
H A D | kernel_crypto.c | 260 if (memcmp(key_content->work_text, key_e, KEY_BYTE_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_key_content() 361 if (memcpy_s(key_content->work_text, KEY_BYTE_LENGTH, ctrl.result, sizeof(ctrl.result)) != EOK) { in crypto_gen_key_content() 379 ret = (hi_u32)memcpy_s(aes_ctrl.key, sizeof(aes_ctrl.key), content->work_text, KEY_BYTE_LENGTH); in crypto_decrypt_kernel() 472 if (memcpy_s(aes_ctrl.key, sizeof(aes_ctrl.key), new_content->work_text, KEY_BYTE_LENGTH) != EOK) { in crypto_encrypt_data()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/ |
H A D | crypto.h | 76 hi_u8 work_text[KEY_BYTE_LENGTH]; /* Working key ciphertext */ member
|
H A D | crypto.c | 367 if (memcmp(key_content->work_text, key_e, KEY_BYTE_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_key_content() 413 cs = (uintptr_t)(key_content->work_text) ^ KEY_BYTE_LENGTH ^ (uintptr_t)(ctrl.result) ^ (hi_u32)sizeof(ctrl.result); in crypto_gen_key_content() 414 if (memcpy_s(key_content->work_text, KEY_BYTE_LENGTH, ctrl.result, sizeof(ctrl.result), cs) != EOK) { in crypto_gen_key_content() 437 (uintptr_t)(content->work_text) ^ KEY_BYTE_LENGTH; in crypto_encrypt_data() 438 if (memcpy_s(aes_ctrl.key, sizeof(aes_ctrl.key), content->work_text, KEY_BYTE_LENGTH, cs) != EOK) { in crypto_encrypt_data() 484 cs = (uintptr_t)(aes_ctrl.key) ^ (hi_u32)sizeof(aes_ctrl.key) ^ (uintptr_t)(content->work_text) ^ KEY_BYTE_LENGTH; in crypto_decrypt_kernel() 485 ret = (hi_u32)memcpy_s(aes_ctrl.key, sizeof(aes_ctrl.key), content->work_text, KEY_BYTE_LENGTH, cs); in crypto_decrypt_kernel()
|
Completed in 4 milliseconds