blob: 0f8331118ad2be984ebd06ed74d2ec378649b9fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* Copyright (c) 2017-2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef __CORE_TEST_API_H__
#define __CORE_TEST_API_H__
#include <stdio.h>
#include "cmsis_compiler.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* \brief This structure is to pass iovec arguments to the tfm_core_test_call
* function.
*/
struct tfm_core_test_call_args_t {
struct psa_invec *in_vec; /*!< Array of psa_invec objects */
size_t in_len; /*!< Number psa_invec objects in in_vec */
struct psa_outvec *out_vec; /*!< Array of psa_outvec objects */
size_t out_len; /*!< Number psa_outvec objects in out_vec */
};
/**
* \brief Calls the secure function provided in \c fn_ptr
*
* \param[in] fn_ptr Secure function to be called.
* \param[in] args Arguments for fn_ptr.
*
* \return Returns value depending on fn_ptr.
*/
int32_t tfm_core_test_call(void *fn_ptr,
struct tfm_core_test_call_args_t *args);
#ifdef __cplusplus
}
#endif
#endif /* __CORE_TEST_API_H__ */
|