TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
spm_psa_client_call.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_PSA_CLIENT_CALL_H__
9 #define __TFM_PSA_CLIENT_CALL_H__
10 
11 #include <stdint.h>
12 #include <stdbool.h>
13 #include "psa/client.h"
14 
15 /* Common handlers for PSA client calls */
16 
24 
36 uint32_t tfm_spm_client_psa_version(uint32_t sid, bool ns_caller);
37 
55 psa_status_t tfm_spm_client_psa_connect(uint32_t sid, uint32_t version,
56  bool ns_caller);
57 
90  const psa_invec *inptr, size_t in_num,
91  psa_outvec *outptr, size_t out_num,
92  bool ns_caller, uint32_t privileged);
93 
109 void tfm_spm_client_psa_close(psa_handle_t handle, bool ns_caller);
110 
111 #endif
uint32_t tfm_spm_client_psa_version(uint32_t sid, bool ns_caller)
handler for psa_version.
psa_status_t tfm_spm_client_psa_call(psa_handle_t handle, int32_t type, const psa_invec *inptr, size_t in_num, psa_outvec *outptr, size_t out_num, bool ns_caller, uint32_t privileged)
handler for psa_call.
psa_status_t tfm_spm_client_psa_connect(uint32_t sid, uint32_t version, bool ns_caller)
handler for psa_connect.
void tfm_spm_client_psa_close(psa_handle_t handle, bool ns_caller)
handler for psa_close.
int32_t psa_handle_t
Definition: client.h:61
uint32_t tfm_spm_client_psa_framework_version(void)
handler for psa_framework_version.
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43