Searched refs:blob_key (Results 1 – 1 of 1) sorted by relevance
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/ |
D | at_demo_hks.c | 327 struct hks_blob blob_key = {0}; in app_hks_generate_conn_key() local 342 ret = hks_set_blob(HKS_BLOB_TYPE_BUFFER, CONN_DATA_KEY_LEN, "123", &blob_key); in app_hks_generate_conn_key() 349 ret = hks_generate_symmetric_key(&blob_key, &conn_key_param); in app_hks_generate_conn_key() 351 free(blob_key.data); in app_hks_generate_conn_key() 359 free(blob_key.data); in app_hks_generate_conn_key() 365 flash_write_buffer = malloc(blob_key.size + sizeof(uint32_t)); in app_hks_generate_conn_key() 367 free(blob_key.data); in app_hks_generate_conn_key() 371 ret = memcpy_s(flash_write_buffer, sizeof(uint32_t), &(blob_key.size), sizeof(uint32_t)); in app_hks_generate_conn_key() 372 …py_s(flash_write_buffer + sizeof(uint32_t), key_save_partition_size, blob_key.data, blob_key.size); in app_hks_generate_conn_key() 373 …ret |= hi_flash_write(key_save_partition_addr + KYY_PARAM_MAX_LEN, blob_key.size + sizeof(uint32_t… in app_hks_generate_conn_key() [all …]
|