Home
last modified time | relevance | path

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

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.c240 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 Dload_crypto.h76 hi_u8 work_text[KEY_BYTE_LENGTH]; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dkernel_crypto.h78 hi_u8 work_text[KEY_BYTE_LENGTH]; member
H A Dkernel_crypto.c260 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 Dcrypto.h76 hi_u8 work_text[KEY_BYTE_LENGTH]; /* Working key ciphertext */ member
H A Dcrypto.c367 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