Home
last modified time | relevance | path

Searched refs:key_data (Results 1 - 10 of 10) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/commonboot/efuse/
H A Defuse_drv.c151 hi_u32 efuse_read_bits(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data) in efuse_read_bits() argument
195 key_data[i - free_area_addr_start] = (hi_u8)val; in efuse_read_bits()
214 hi_u32 efuse_write_bits(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data, hi_u8 *err_state) in efuse_write_bits() argument
223 /* j: the current bit offset of key_data. */ in efuse_write_bits()
228 if (key_data[a] & (hi_u8)(1 << b)) { in efuse_write_bits()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/drivers/efuse/
H A Defuse.c251 hi_u32 hi_efuse_usr_read(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data) in hi_efuse_usr_read() argument
255 if ((start_bit >= EFUSE_PGM_ADDR_SIZE) || ((start_bit & 0x7) != 0) || (key_data == HI_NULL) || (size == 0)) { in hi_efuse_usr_read()
268 return efuse_read_bits(start_bit, real_size, key_data); in hi_efuse_usr_read()
271 hi_u32 hi_efuse_usr_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data) in hi_efuse_usr_write() argument
277 if (size > (EFUSE_MAX_INDEX_SIZE * SIZE_8_BITS) || key_data == HI_NULL || size == 0) { in hi_efuse_usr_write()
283 ret = efuse_write_bits(start_bit, size, key_data, (hi_u8 *)&usr_err_stat[0]); in hi_efuse_usr_write()
H A Defuse_drv.h69 hi_u32 efuse_read_bits(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
70 hi_u32 efuse_write_bits(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data, hi_u8 *err_state);
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/include/
H A Defuse_drv.h66 hi_u32 efuse_read_bits(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
67 hi_u32 efuse_write_bits(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data, hi_u8 *err_state);
H A Defuse.h31 hi_u32 efuse_bits_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data);
H A Dhi_boot_rom.h910 * @param key_data [OUT] 类型 #hi_u8*,读到的数据放到该地址。
918 hi_u32 hi_efuse_usr_read(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
931 * @param key_data [IN] 类型 #hi_u8 * 待写入的数据放到该地址,最长为32字节。
938 hi_u32 hi_efuse_usr_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data);
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhi_efuse.h251 * @param key_data [OUT] type #hi_u8*,Address for saving the read data.
261 hi_u32 hi_efuse_usr_read(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
277 * @param key_data [IN] type #const hi_u8*,Address for the data to be written. The maximum length is 32 bytes.
287 hi_u32 hi_efuse_usr_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data);
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/drivers/efuse/
H A Defuse.c181 hi_u32 efuse_bits_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data) in efuse_bits_write() argument
187 if (size > (EFUSE_MAX_INDEX_SIZE * SIZE_8_BITS) || key_data == HI_NULL || size == 0) { in efuse_bits_write()
193 ret = efuse_write_bits(start_bit, size, key_data, (hi_u8 *)&usr_err_stat[0]); in efuse_bits_write()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/include/
H A Dhi_flashboot.h445 * @param key_data [OUT] type #hi_u8*,Address for saving the read data.
455 hi_u32 hi_efuse_usr_read(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
471 * @param key_data [IN] type #const hi_u8*,Address for the data to be written. The maximum length is 32 bytes.
481 hi_u32 hi_efuse_usr_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data);
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dat_demo_hks.c277 hi_u8 key_data[KEY_DATA_MAX_LEN] = {0}; /* The data on the flash memory cannot be directly used here. */ in hks_encrypt_conn_para() local
278 ret = hi_flash_read(key_save_partition_addr + KYY_PARAM_MAX_LEN + LEN_BYTE, key_size, &key_data[0]); in hks_encrypt_conn_para()
283 key_data_blob.data = &key_data[0]; in hks_encrypt_conn_para()
552 hi_u8 key_data[KEY_DATA_MAX_LEN] = {0}; /* 此处不能直接使用flash上数据 */ in hks_encrypt_cert() local
553 ret = hi_flash_read(key_save_partition_addr + KYY_PARAM_MAX_LEN + LEN_BYTE, key_size, &key_data[0]); in hks_encrypt_cert()
558 key_data_blob.data = &key_data[0]; in hks_encrypt_cert()

Completed in 8 milliseconds