Home
last modified time | relevance | path

Searched refs:key_e (Results 1 - 8 of 8) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_tool.c203 .py = param->key_e, in boot_upg_lzma_secure_verify()
214 .e = param->key_e, in boot_upg_lzma_secure_verify()
236 hi_u8 *key_e = g_upg_tool_block; in boot_upg_lzma_secure_verify_code() local
242 cs = (uintptr_t)key_e ^ HI_BLOCK_SIZE ^ 0 ^ HI_BLOCK_SIZE; in boot_upg_lzma_secure_verify_code()
243 memset_s(key_e, HI_BLOCK_SIZE, 0, HI_BLOCK_SIZE, cs); in boot_upg_lzma_secure_verify_code()
246 cs = (uintptr_t)key_e ^ ECC_256_LEN ^ (uintptr_t)((hi_u8 *)upg_head + key2_offset) ^ ECC_256_LEN; in boot_upg_lzma_secure_verify_code()
247 (hi_void) memcpy_s(key_e, key_length, (hi_u8 *)upg_head + key2_offset, ECC_256_LEN, cs); in boot_upg_lzma_secure_verify_code()
249 cs = (uintptr_t)(key_e + key_length - RSA_EXP_E_LEN) ^ RSA_EXP_E_LEN ^ in boot_upg_lzma_secure_verify_code()
251 (hi_void)memcpy_s(key_e + key_length - RSA_EXP_E_LEN, RSA_EXP_E_LEN, in boot_upg_lzma_secure_verify_code()
257 param.key_e in boot_upg_lzma_secure_verify_code()
[all...]
H A Dboot_upg_check_secure.c134 hi_u32 boot_upg_secure_get_key_part2(hi_u32 sign_alg, hi_u8 *key_e, hi_u32 key_len) in boot_upg_secure_get_key_part2() argument
138 hi_unref_param(key_e); in boot_upg_secure_get_key_part2()
142 hi_u32 cs = (uintptr_t)key_e ^ key_len ^ (uintptr_t)(g_boot_ecc_key + ECC_256_LEN) ^ ECC_256_LEN; in boot_upg_secure_get_key_part2()
143 ret = memcpy_s(key_e, key_len, g_boot_ecc_key + ECC_256_LEN, ECC_256_LEN, cs); in boot_upg_secure_get_key_part2()
148 (key_e)[key_len - 1] = 0x01; /* 1: first byte. 0x01: part of key_e 0x10001 */ in boot_upg_secure_get_key_part2()
149 (key_e)[key_len - 3] = 0x01; /* 3: last byte. 0x01: part of key_e 0x10001 */ in boot_upg_secure_get_key_part2()
181 .py = param->key_e, in boot_upg_secure_verify()
192 .e = param->key_e, in boot_upg_secure_verify()
[all...]
H A Dboot_upg_check_secure.h54 hi_u8 *key_e; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.c224 hi_u8 key_e[KEY_BYTE_LENGTH] = { 0 }; in crypto_load_key_content() local
226 hi_u32 cs = (uintptr_t)key_e ^ (hi_u32)sizeof(key_e) ^ 0x0 ^ KEY_BYTE_LENGTH; in crypto_load_key_content()
227 (hi_void) memset_s(key_e, sizeof(key_e), 0x0, KEY_BYTE_LENGTH, cs); in crypto_load_key_content()
240 if (memcmp(key_content->work_text, key_e, KEY_BYTE_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_key_content()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_secure.h46 hi_u8 *key_e; member
H A Dupg_check_secure.c163 .py = param->key_e, in upg_secure_verify()
173 .e = param->key_e, in upg_secure_verify()
284 param.key_e = key2; in upg_check_upg_file_code()
305 hi_u32 key_length = 0; /* 2 key length: (px+py) or (key_n+key_e) */ in upg_check_upg_file_head()
338 param.key_len = (key_length / 2); /* 2: ken len include (px+py) or (key_n+key_e) */ in upg_check_upg_file_head()
339 param.key_e = key + param.key_len; in upg_check_upg_file_head()
H A Dkernel_crypto.c235 hi_u8 key_e[KEY_BYTE_LENGTH] = { 0 }; in crypto_load_key_content() local
237 (hi_void) memset_s(key_e, sizeof(key_e), 0x0, KEY_BYTE_LENGTH); in crypto_load_key_content()
260 if (memcmp(key_content->work_text, key_e, KEY_BYTE_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_key_content()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c341 hi_u8 key_e[KEY_BYTE_LENGTH] = { 0 }; in crypto_load_key_content() local
343 hi_u32 cs = (uintptr_t)key_e ^ (hi_u32)sizeof(key_e) ^ 0x0 ^ KEY_BYTE_LENGTH; in crypto_load_key_content()
344 (hi_void) memset_s(key_e, sizeof(key_e), 0x0, KEY_BYTE_LENGTH, cs); in crypto_load_key_content()
367 if (memcmp(key_content->work_text, key_e, KEY_BYTE_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_key_content()

Completed in 7 milliseconds