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.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_PS_REQ_MNGR_H__
9 #define __TFM_PS_REQ_MNGR_H__
10 
11 #include <stddef.h>
12 
13 #include "psa/client.h"
14 #include "psa/protected_storage.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
33 psa_status_t tfm_ps_set_req(psa_invec *in_vec, size_t in_len,
34  psa_outvec *out_vec, size_t out_len);
35 
49 psa_status_t tfm_ps_get_req(psa_invec *in_vec, size_t in_len,
50  psa_outvec *out_vec, size_t out_len);
51 
65 psa_status_t tfm_ps_get_info_req(psa_invec *in_vec, size_t in_len,
66  psa_outvec *out_vec, size_t out_len);
67 
81 psa_status_t tfm_ps_remove_req(psa_invec *in_vec, size_t in_len,
82  psa_outvec *out_vec, size_t out_len);
83 
98 psa_status_t tfm_ps_get_support_req(psa_invec *in_vec, size_t in_len,
99  psa_outvec *out_vec, size_t out_len);
100 
110 void ps_req_mngr_write_asset_data(const uint8_t *in_data,
111  uint32_t size);
112 
123 psa_status_t ps_req_mngr_read_asset_data(uint8_t *out_data, uint32_t size);
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif /* __TFM_PS_REQ_MNGR_H__ */
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.
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.
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.
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...
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.
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.
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.
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43