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.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_ITS_REQ_MNGR_H__
9 #define __TFM_ITS_REQ_MNGR_H__
10 
11 #include <stddef.h>
12 
13 #include "psa/client.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
32 psa_status_t tfm_its_set_req(psa_invec *in_vec, size_t in_len,
33  psa_outvec *out_vec, size_t out_len);
34 
48 psa_status_t tfm_its_get_req(psa_invec *in_vec, size_t in_len,
49  psa_outvec *out_vec, size_t out_len);
50 
64 psa_status_t tfm_its_get_info_req(psa_invec *in_vec, size_t in_len,
65  psa_outvec *out_vec, size_t out_len);
66 
80 psa_status_t tfm_its_remove_req(psa_invec *in_vec, size_t in_len,
81  psa_outvec *out_vec, size_t out_len);
82 
91 size_t its_req_mngr_read(uint8_t *buf, size_t num_bytes);
92 
99 void its_req_mngr_write(const uint8_t *buf, size_t num_bytes);
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
105 #endif /* __TFM_ITS_REQ_MNGR_H__ */
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.
size_t its_req_mngr_read(uint8_t *buf, size_t num_bytes)
Reads asset data from the caller.
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.
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.
void its_req_mngr_write(const uint8_t *buf, size_t num_bytes)
Writes asset data to the caller.
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.
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43