/* * Copyright (c) 2021-2023, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include #include "psa/client.h" #include "psa/service.h" #include "tfm_psa_call_pack.h" psa_status_t psa_call(psa_handle_t handle, int32_t type, const psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len) { if ((type > PSA_CALL_TYPE_MAX) || (type < PSA_CALL_TYPE_MIN) || (in_len > PSA_MAX_IOVEC) || (out_len > PSA_MAX_IOVEC)) { psa_panic(); } return tfm_psa_call_pack(handle, PARAM_PACK(type, in_len, out_len), in_vec, out_vec); }