aboutsummaryrefslogtreecommitdiff
path: root/interface/src/tfm_crypto_func_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface/src/tfm_crypto_func_api.c')
-rw-r--r--interface/src/tfm_crypto_func_api.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/interface/src/tfm_crypto_func_api.c b/interface/src/tfm_crypto_func_api.c
index dd6a90a9ff..328699715a 100644
--- a/interface/src/tfm_crypto_func_api.c
+++ b/interface/src/tfm_crypto_func_api.c
@@ -5,21 +5,20 @@
*
*/
+#include "psa/client.h"
#include "tfm_veneers.h"
#include "tfm_crypto_defs.h"
#include "psa/crypto.h"
#include "tfm_ns_interface.h"
-#define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0]))
-
#define API_DISPATCH(sfn_name, sfn_id) \
tfm_ns_interface_dispatch((veneer_fn)tfm_##sfn_name##_veneer,\
- (uint32_t)in_vec, ARRAY_SIZE(in_vec), \
- (uint32_t)out_vec, ARRAY_SIZE(out_vec))
+ (uint32_t)in_vec, IOVEC_LEN(in_vec), \
+ (uint32_t)out_vec, IOVEC_LEN(out_vec))
#define API_DISPATCH_NO_OUTVEC(sfn_name, sfn_id) \
tfm_ns_interface_dispatch((veneer_fn)tfm_##sfn_name##_veneer,\
- (uint32_t)in_vec, ARRAY_SIZE(in_vec), \
+ (uint32_t)in_vec, IOVEC_LEN(in_vec), \
(uint32_t)NULL, 0)
psa_status_t psa_crypto_init(void)