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

Go to the source code of this file.

Functions

psa_status_t tfm_its_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_its_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_its_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_its_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_its_req_mngr_init (void)
 
size_t its_req_mngr_read (uint8_t *buf, size_t num_bytes)
 Reads asset data from the caller. More...
 
void its_req_mngr_write (const uint8_t *buf, size_t num_bytes)
 Writes asset data to the caller. More...
 

Function Documentation

size_t its_req_mngr_read ( uint8_t *  buf,
size_t  num_bytes 
)

Reads asset data from the caller.

Parameters
[out]bufBuffer to copy the data to
[in]num_bytesNumber of bytes to copy
Returns
Number of bytes copied

Definition at line 356 of file tfm_its_req_mngr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void its_req_mngr_write ( const uint8_t *  buf,
size_t  num_bytes 
)

Writes asset data to the caller.

Parameters
[in]bufBuffer to copy the data from
[in]num_bytesNumber of bytes to copy

Definition at line 367 of file tfm_its_req_mngr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

psa_status_t tfm_its_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 output 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 116 of file tfm_its_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_its_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 output 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 75 of file tfm_its_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_its_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 output 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 150 of file tfm_its_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_its_req_mngr_init ( void  )

Definition at line 324 of file tfm_its_req_mngr.c.

Here is the call graph for this function:

psa_status_t tfm_its_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 output 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 35 of file tfm_its_req_mngr.c.

Here is the call graph for this function: