Home
last modified time | relevance | path

Searched refs:rsa_key_addr (Results 1 – 3 of 3) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
Dupg_common.c96 hi_u32 rsa_key_addr = { 0 }; in upg_get_boot_key_addr() local
101 rsa_key_addr = rsa_key_addr | val; in upg_get_boot_key_addr()
103 rsa_key_addr = rsa_key_addr | (val << BIT_U16); in upg_get_boot_key_addr()
104 ctx->rsa_key_addr = rsa_key_addr; in upg_get_boot_key_addr()
1072 if (ctx->rsa_key_addr == 0) { in upg_get_unencrpt_rsa_key()
1076 ret = hi_flash_read(ctx->rsa_key_addr, RSA_2048_LEN, key); in upg_get_unencrpt_rsa_key()
1120 if ((ctx->rsa_key_addr == 0) || (ctx->rsa_key_addr < head->code_section_offset)) { in upg_get_decrpt_rsa_key()
1123 … hi_u32 data_len = upg_align_128bit(ctx->rsa_key_addr - head->code_section_offset + RSA_2048_LEN); in upg_get_decrpt_rsa_key()
1125 ctx->rsa_key_addr, data_len); in upg_get_decrpt_rsa_key()
1142 …if (memcpy_s(key, RSA_2048_LEN, raw_data + (ctx->rsa_key_addr - head->code_section_offset), RSA_20… in upg_get_decrpt_rsa_key()
Dupg_common.h73 hi_u32 rsa_key_addr; /* flash addr of rsa key */ member
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
Dboot_upg_check_secure.c62 uintptr_t rsa_key_addr = ((uintptr_t)(&g_boot_rsa_key[0]) - (uintptr_t)(&__data_start)) + in boot_upg_save_rsa_key_pos() local
64 hi_reg_write16(DIAG_CTL_GP_REG0_REG, (rsa_key_addr & MASK_U16)); in boot_upg_save_rsa_key_pos()
65 hi_reg_write16(DIAG_CTL_GP_REG1_REG, (rsa_key_addr >> BIT_U16)); in boot_upg_save_rsa_key_pos()