The C interface for connecting to a Root of Trust Service and calling it. More...
| Functions | |
| uint32_t | psa_framework_version (void) | 
| Retrieve the version of the PSA Framework API that is implemented.  More... | |
| uint32_t | psa_version (uint32_t sid) | 
| Retrieve the minor version of a Root of Trust Service by its SID.  More... | |
| psa_handle_t | psa_connect (uint32_t sid, uint32_t minor_version) | 
| Connect to a Root of Trust Service by its SID.  More... | |
| psa_status_t | psa_call (psa_handle_t handle, const psa_invec *in_vec, size_t in_len, const psa_outvec *out_vec, size_t out_len) | 
| Call a connected Root of Trust Service.  More... | |
| void | psa_close (psa_handle_t handle) | 
| Close a connection to a Root of Trust Service.  More... | |
The C interface for connecting to a Root of Trust Service and calling it.
 All functions are blocking. 
| psa_status_t psa_call | ( | psa_handle_t | handle, | 
| const psa_invec * | in_vec, | ||
| size_t | in_len, | ||
| const psa_outvec * | out_vec, | ||
| size_t | out_len | ||
| ) | 
Call a connected Root of Trust Service.
The caller must provide an array of psa_invec structures as the input payload.
| [in] | handle | Handle for the connection. | 
| [in] | in_vec | Array of psa_invec structures. | 
| [in] | in_len | Number of psa_invec structures in in_vec. (At most PSA_MAX_IOVEC - out_len) | 
| [out] | out_vec | Array of psa_outvec structures for optional Root of Trust Service response. | 
| [in] | out_len | Number of psa_outvec structures in out_vec. (At most PSA_MAX_IOVEC - in_len) | 
| void psa_close | ( | psa_handle_t | handle | ) | 
Close a connection to a Root of Trust Service.
Sends the PSA_IPC_DISCONNECT message to the Root of Trust Service, so it can clean up resources.
| [in] | handle | Handle for the connection. | 
| psa_handle_t psa_connect | ( | uint32_t | sid, | 
| uint32_t | minor_version | ||
| ) | 
Connect to a Root of Trust Service by its SID.
| [in] | sid | The Root of Trust Service ID. | 
| [in] | minor_version | The minor version to be used for this connection. | 
| uint32_t psa_framework_version | ( | void | ) | 
| uint32_t psa_version | ( | uint32_t | sid | ) | 
Retrieve the minor version of a Root of Trust Service by its SID.
| [in] | sid | The Root of Trust Service ID |