1 /*
2  * Copyright (c) 2019-2022, 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 
20 /**
21  * \brief Takes an input buffer containing asset data and writes
22  *        its contents to the client iovec
23  *
24  * \param[in]  in_data Pointer to the buffer data will read from.
25  * \param[in]  size    The amount of data to read.
26  *
27  *
28  */
29 void ps_req_mngr_write_asset_data(const uint8_t *in_data,
30                                   uint32_t size);
31 
32 /**
33  * \brief Writes the asset data of a client iovec onto an output buffer
34  *
35  * \param[out] out_data  Pointer to the buffer data will be written to.
36  * \param[in]  size      The amount of data to write.
37  *
38  * \return A status indicating the success/failure of the operation as specified
39  *         in \ref psa_status_t
40  *
41  */
42 psa_status_t ps_req_mngr_read_asset_data(uint8_t *out_data, uint32_t size);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* __TFM_PS_REQ_MNGR_H__ */
49