TuyaOS
结构体 | 类型定义
Secure element driver initialization

结构体

struct  psa_drv_se_context_t
 Driver context structure 更多...
 

类型定义

typedef psa_status_t(* psa_drv_se_init_t) (psa_drv_se_context_t *drv_context, void *persistent_data, psa_key_location_t location)
 A driver initialization function. 更多...
 
typedef uint64_t psa_key_slot_number_t
 

详细描述

类型定义说明

◆ psa_drv_se_init_t

typedef psa_status_t(* psa_drv_se_init_t) (psa_drv_se_context_t *drv_context, void *persistent_data, psa_key_location_t location)

A driver initialization function.

参数
[in,out]drv_contextThe driver context structure.
[in,out]persistent_dataA pointer to the persistent data that allows writing.
locationThe location value for which this driver is registered. The driver will be invoked for all keys whose lifetime is in this location.
返回值
PSA_SUCCESSThe driver is operational. The core will update the persistent data in storage.
返回
Any other return value prevents the driver from being used in this session. The core will NOT update the persistent data in storage.

◆ psa_key_slot_number_t

typedef uint64_t psa_key_slot_number_t

An internal designation of a key slot between the core part of the PSA Crypto implementation and the driver. The meaning of this value is driver-dependent.