TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_psa_api_veneers.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include "psa/client.h"
#include "psa/service.h"
#include "tfm_arch.h"
#include "tfm_secure_api.h"
#include "tfm_api.h"
#include "tfm_svcalls.h"
Include dependency graph for tfm_psa_api_veneers.c:

Go to the source code of this file.

Functions

__tfm_psa_secure_gateway_attributes__
uint32_t 
tfm_psa_framework_version_veneer (void)
 Retrieve the version of the PSA Framework API that is implemented. More...
 
__tfm_psa_secure_gateway_attributes__
uint32_t 
tfm_psa_version_veneer (uint32_t sid)
 Return version of secure function provided by secure binary. More...
 
__tfm_psa_secure_gateway_attributes__
psa_handle_t 
tfm_psa_connect_veneer (uint32_t sid, uint32_t version)
 Connect to secure function. More...
 
__tfm_psa_secure_gateway_attributes__
psa_status_t 
tfm_psa_call_veneer (psa_handle_t handle, const struct tfm_control_parameter_t *ctrl_param, const psa_invec *in_vec, psa_outvec *out_vec)
 Call a secure function referenced by a connection handle. More...
 
__tfm_psa_secure_gateway_attributes__
void 
tfm_psa_close_veneer (psa_handle_t handle)
 Close connection to secure function referenced by a connection handle. More...
 

Function Documentation

__tfm_psa_secure_gateway_attributes__ psa_status_t tfm_psa_call_veneer ( psa_handle_t  handle,
const struct tfm_control_parameter_t ctrl_param,
const psa_invec in_vec,
psa_outvec out_vec 
)

Call a secure function referenced by a connection handle.

Parameters
[in]handleHandle to connection.
[in]ctrl_paramParameter structure, includes request type, in_num and out_num.
[in]in_vecArray of input psa_invec structures.
[in,out]out_vecArray of output psa_outvec structures.
Returns
Returns psa_status_t status code.

Definition at line 52 of file tfm_psa_api_veneers.c.

Here is the caller graph for this function:

__tfm_psa_secure_gateway_attributes__ void tfm_psa_close_veneer ( psa_handle_t  handle)

Close connection to secure function referenced by a connection handle.

Parameters
[in]handleHandle to connection
Returns
void

Definition at line 63 of file tfm_psa_api_veneers.c.

Here is the caller graph for this function:

__tfm_psa_secure_gateway_attributes__ psa_handle_t tfm_psa_connect_veneer ( uint32_t  sid,
uint32_t  version 
)

Connect to secure function.

Parameters
[in]sidID of secure service.
[in]versionVersion of SF requested by client.
Returns
Returns handle to connection.

Definition at line 44 of file tfm_psa_api_veneers.c.

Here is the caller graph for this function:

__tfm_psa_secure_gateway_attributes__ uint32_t tfm_psa_framework_version_veneer ( void  )

Retrieve the version of the PSA Framework API that is implemented.

Returns
The version of the PSA Framework.

Definition at line 28 of file tfm_psa_api_veneers.c.

Here is the caller graph for this function:

__tfm_psa_secure_gateway_attributes__ uint32_t tfm_psa_version_veneer ( uint32_t  sid)

Return version of secure function provided by secure binary.

Parameters
[in]sidID of secure service.
Returns
Version number of secure function.

Definition at line 36 of file tfm_psa_api_veneers.c.

Here is the caller graph for this function: