TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_ps_req_mngr.c File Reference
#include "tfm_ps_req_mngr.h"
#include <stdbool.h>
#include <stdint.h>
#include "psa/protected_storage.h"
#include "tfm_secure_api.h"
#include "tfm_api.h"
#include "tfm_protected_storage.h"
#include "tfm_memory_utils.h"
Include dependency graph for tfm_ps_req_mngr.c:

Go to the source code of this file.

Functions

psa_status_t tfm_ps_set_req (psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
 Handles the set request. More...
 
psa_status_t tfm_ps_get_req (psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
 Handles the get request. More...
 
psa_status_t tfm_ps_get_info_req (psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
 Handles the get info request. More...
 
psa_status_t tfm_ps_remove_req (psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
 Handles the remove request. More...
 
psa_status_t tfm_ps_get_support_req (psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
 Handles the get support request. More...
 
psa_status_t tfm_ps_req_mngr_init (void)
 
psa_status_t ps_req_mngr_read_asset_data (uint8_t *out_data, uint32_t size)
 Writes the asset data of a client iovec onto an output buffer. More...
 
void ps_req_mngr_write_asset_data (const uint8_t *in_data, uint32_t size)
 Takes an input buffer containing asset data and writes its contents to the client iovec. More...
 

Function Documentation

psa_status_t ps_req_mngr_read_asset_data ( uint8_t *  out_data,
uint32_t  size 
)

Writes the asset data of a client iovec onto an output buffer.

Parameters
[out]out_dataPointer to the buffer data will be written to.
[in]sizeThe amount of data to write.
Returns
A status indicating the success/failure of the operation as specified in psa_status_t

Definition at line 430 of file tfm_ps_req_mngr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ps_req_mngr_write_asset_data ( const uint8_t *  in_data,
uint32_t  size 
)

Takes an input buffer containing asset data and writes its contents to the client iovec.

Parameters
[in]in_dataPointer to the buffer data will read from.
[in]sizeThe amount of data to read.

Definition at line 445 of file tfm_ps_req_mngr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

psa_status_t tfm_ps_get_info_req ( psa_invec in_vec,
size_t  in_len,
psa_outvec out_vec,
size_t  out_len 
)

Handles the get info request.

Parameters
[in]in_vecPointer to the input vector which contains the input parameters.
[in]in_lenNumber of input parameters in the input vector.
[out]out_vecPointer to the ouput vector which contains the output parameters.
[in]out_lenNumber of output parameters in the output vector.
Returns
A status indicating the success/failure of the operation as specified in psa_status_t

Definition at line 146 of file tfm_ps_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_ps_get_req ( psa_invec in_vec,
size_t  in_len,
psa_outvec out_vec,
size_t  out_len 
)

Handles the get request.

Parameters
[in]in_vecPointer to the input vector which contains the input parameters.
[in]in_lenNumber of input parameters in the input vector.
[out]out_vecPointer to the ouput vector which contains the output parameters.
[in]out_lenNumber of output parameters in the output vector.
Returns
A status indicating the success/failure of the operation as specified in psa_status_t

Definition at line 99 of file tfm_ps_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_ps_get_support_req ( psa_invec in_vec,
size_t  in_len,
psa_outvec out_vec,
size_t  out_len 
)

Handles the get support request.

Parameters
[in]in_vecPointer to the input vector which contains the input parameters.
[in]in_lenNumber of input parameters in the input vector.
[out]out_vecPointer to the ouput vector which contains the output parameters.
[in]out_lenNumber of output parameters in the output vector.
Returns
A status indicating the success/failure of the operation as specified in psa_status_t

Definition at line 215 of file tfm_ps_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_ps_remove_req ( psa_invec in_vec,
size_t  in_len,
psa_outvec out_vec,
size_t  out_len 
)

Handles the remove request.

Parameters
[in]in_vecPointer to the input vector which contains the input parameters.
[in]in_lenNumber of input parameters in the input vector.
[out]out_vecPointer to the ouput vector which contains the output parameters.
[in]out_lenNumber of output parameters in the output vector.
Returns
A status indicating the success/failure of the operation as specified in psa_status_t

Definition at line 186 of file tfm_ps_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_ps_req_mngr_init ( void  )

Definition at line 395 of file tfm_ps_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_ps_set_req ( psa_invec in_vec,
size_t  in_len,
psa_outvec out_vec,
size_t  out_len 
)

Handles the set request.

Parameters
[in]in_vecPointer to the input vector which contains the input parameters.
[in]in_lenNumber of input parameters in the input vector.
[out]out_vecPointer to the ouput vector which contains the output parameters.
[in]out_lenNumber of output parameters in the output vector.
Returns
A status indicating the success/failure of the operation as specified in psa_status_t

Definition at line 55 of file tfm_ps_req_mngr.c.

Here is the call graph for this function: