8 #ifndef __PSA_CLIENT_H__
9 #define __PSA_CLIENT_H__
26 #define PSA_FRAMEWORK_VERSION (0x0100u)
32 #define PSA_VERSION_NONE (0u)
38 #define PSA_NULL_HANDLE ((psa_handle_t)0)
43 #define PSA_HANDLE_IS_VALID(handle) ((psa_handle_t)(handle) > 0)
49 #define PSA_HANDLE_TO_ERROR(handle) ((psa_status_t)(handle))
54 #define PSA_MAX_IOVEC (4u)
59 #define PSA_IPC_CALL (0)
123 psa_handle_t
psa_connect(uint32_t sid, uint32_t version);
struct psa_invec psa_invec
void psa_close(psa_handle_t handle)
Close a connection to an RoT Service.
Standard error codes for the SPM and RoT Services.
uint32_t psa_framework_version(void)
Retrieve the version of the PSA Framework API that is implemented.
psa_handle_t psa_connect(uint32_t sid, uint32_t version)
Connect to an RoT Service by its SID.
struct psa_outvec psa_outvec
uint32_t psa_version(uint32_t sid)
Retrieve the version of an RoT Service or indicate that it is not present on this system...
int32_t psa_status_t
Function return status.
psa_status_t psa_call(psa_handle_t handle, int32_t type, const psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
Call an RoT Service on an established connection.