![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#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"
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... | |
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.
[out] | out_data | Pointer to the buffer data will be written to. |
[in] | size | The amount of data to write. |
Definition at line 430 of file tfm_ps_req_mngr.c.
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.
[in] | in_data | Pointer to the buffer data will read from. |
[in] | size | The amount of data to read. |
Definition at line 445 of file tfm_ps_req_mngr.c.
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.
[in] | in_vec | Pointer to the input vector which contains the input parameters. |
[in] | in_len | Number of input parameters in the input vector. |
[out] | out_vec | Pointer to the ouput vector which contains the output parameters. |
[in] | out_len | Number of output parameters in the output vector. |
Definition at line 146 of file tfm_ps_req_mngr.c.
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.
[in] | in_vec | Pointer to the input vector which contains the input parameters. |
[in] | in_len | Number of input parameters in the input vector. |
[out] | out_vec | Pointer to the ouput vector which contains the output parameters. |
[in] | out_len | Number of output parameters in the output vector. |
Definition at line 99 of file tfm_ps_req_mngr.c.
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.
[in] | in_vec | Pointer to the input vector which contains the input parameters. |
[in] | in_len | Number of input parameters in the input vector. |
[out] | out_vec | Pointer to the ouput vector which contains the output parameters. |
[in] | out_len | Number of output parameters in the output vector. |
Definition at line 215 of file tfm_ps_req_mngr.c.
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.
[in] | in_vec | Pointer to the input vector which contains the input parameters. |
[in] | in_len | Number of input parameters in the input vector. |
[out] | out_vec | Pointer to the ouput vector which contains the output parameters. |
[in] | out_len | Number of output parameters in the output vector. |
Definition at line 186 of file tfm_ps_req_mngr.c.
psa_status_t tfm_ps_req_mngr_init | ( | void | ) |
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.
[in] | in_vec | Pointer to the input vector which contains the input parameters. |
[in] | in_len | Number of input parameters in the input vector. |
[out] | out_vec | Pointer to the ouput vector which contains the output parameters. |
[in] | out_len | Number of output parameters in the output vector. |
Definition at line 55 of file tfm_ps_req_mngr.c.