TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
core_test_api.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #include "core_test_api.h"
9 #include "core_test_defs.h"
10 
11 int32_t tfm_core_test_call(int32_t (*fn_ptr)(struct psa_invec*, size_t,
12  struct psa_outvec*, size_t),
13  struct tfm_core_test_call_args_t *args)
14 {
15  return fn_ptr(args->in_vec, args->in_len,
16  args->out_vec, args->out_len);
17 }
int32_t tfm_core_test_call(int32_t(*fn_ptr)(struct psa_invec *, size_t, struct psa_outvec *, size_t), struct tfm_core_test_call_args_t *args)
Definition: core_test_api.c:11
This structure is to pass iovec arguments to the tfm_core_test_call function.
Definition: core_test_api.h:22
struct psa_outvec * out_vec
Definition: core_test_api.h:25
struct psa_invec * in_vec
Definition: core_test_api.h:23