blob: 315f7525878b95781dffda551585bf49096aa1ba [file] [log] [blame]
Miklos Balintbf25a402018-06-14 17:43:54 +02001/*
Antonio de Angelis04debbd2019-10-14 12:12:52 +01002 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Miklos Balintbf25a402018-06-14 17:43:54 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
9
10#include "tfm_secure_api.h"
Mingyang Sunc3123ec2020-06-11 17:43:58 +080011#include "spm_partition_defs.h"
Miklos Balintbf25a402018-06-14 17:43:54 +020012
Kevin Pengc6d74502020-03-04 16:55:37 +080013#ifdef TFM_PARTITION_PROTECTED_STORAGE
14/******** TFM_SP_PS ********/
15psa_status_t tfm_ps_set_req(psa_invec *, size_t, psa_outvec *, size_t);
16psa_status_t tfm_ps_get_req(psa_invec *, size_t, psa_outvec *, size_t);
17psa_status_t tfm_ps_get_info_req(psa_invec *, size_t, psa_outvec *, size_t);
18psa_status_t tfm_ps_remove_req(psa_invec *, size_t, psa_outvec *, size_t);
19psa_status_t tfm_ps_get_support_req(psa_invec *, size_t, psa_outvec *, size_t);
20#endif /* TFM_PARTITION_PROTECTED_STORAGE */
Miklos Balintbf25a402018-06-14 17:43:54 +020021
Kevin Pengc73130f2019-10-22 17:27:18 +080022#ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE
TudorCretufb182bc2019-07-05 17:34:12 +010023/******** TFM_SP_ITS ********/
24psa_status_t tfm_its_set_req(psa_invec *, size_t, psa_outvec *, size_t);
25psa_status_t tfm_its_get_req(psa_invec *, size_t, psa_outvec *, size_t);
26psa_status_t tfm_its_get_info_req(psa_invec *, size_t, psa_outvec *, size_t);
27psa_status_t tfm_its_remove_req(psa_invec *, size_t, psa_outvec *, size_t);
Kevin Pengc73130f2019-10-22 17:27:18 +080028#endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */
TudorCretufb182bc2019-07-05 17:34:12 +010029
Jamie Foxc78c62c2019-05-23 13:42:17 +010030#ifdef TFM_PARTITION_AUDIT_LOG
Miklos Balintbf25a402018-06-14 17:43:54 +020031/******** TFM_SP_AUDIT_LOG ********/
Antonio de Angelis09586c52019-03-27 16:35:31 +000032psa_status_t audit_core_retrieve_record(psa_invec *, size_t, psa_outvec *, size_t);
33psa_status_t audit_core_add_record(psa_invec *, size_t, psa_outvec *, size_t);
34psa_status_t audit_core_get_info(psa_invec *, size_t, psa_outvec *, size_t);
35psa_status_t audit_core_get_record_info(psa_invec *, size_t, psa_outvec *, size_t);
36psa_status_t audit_core_delete_record(psa_invec *, size_t, psa_outvec *, size_t);
Jamie Foxc78c62c2019-05-23 13:42:17 +010037#endif /* TFM_PARTITION_AUDIT_LOG */
Miklos Balintbf25a402018-06-14 17:43:54 +020038
Kevin Pengc73130f2019-10-22 17:27:18 +080039#ifdef TFM_PARTITION_CRYPTO
Miklos Balintbf25a402018-06-14 17:43:54 +020040/******** TFM_SP_CRYPTO ********/
Antonio de Angelis04debbd2019-10-14 12:12:52 +010041psa_status_t tfm_crypto_get_key_attributes(psa_invec *, size_t, psa_outvec *, size_t);
Jamie Foxdadb4e82019-09-03 17:59:41 +010042psa_status_t tfm_crypto_open_key(psa_invec *, size_t, psa_outvec *, size_t);
43psa_status_t tfm_crypto_close_key(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis04debbd2019-10-14 12:12:52 +010044psa_status_t tfm_crypto_reset_key_attributes(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis09586c52019-03-27 16:35:31 +000045psa_status_t tfm_crypto_import_key(psa_invec *, size_t, psa_outvec *, size_t);
46psa_status_t tfm_crypto_destroy_key(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis09586c52019-03-27 16:35:31 +000047psa_status_t tfm_crypto_export_key(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +010048psa_status_t tfm_crypto_export_public_key(psa_invec *, size_t, psa_outvec *, size_t);
49psa_status_t tfm_crypto_copy_key(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis04debbd2019-10-14 12:12:52 +010050psa_status_t tfm_crypto_hash_compute(psa_invec *, size_t, psa_outvec *, size_t);
51psa_status_t tfm_crypto_hash_compare(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis09586c52019-03-27 16:35:31 +000052psa_status_t tfm_crypto_hash_setup(psa_invec *, size_t, psa_outvec *, size_t);
53psa_status_t tfm_crypto_hash_update(psa_invec *, size_t, psa_outvec *, size_t);
54psa_status_t tfm_crypto_hash_finish(psa_invec *, size_t, psa_outvec *, size_t);
55psa_status_t tfm_crypto_hash_verify(psa_invec *, size_t, psa_outvec *, size_t);
56psa_status_t tfm_crypto_hash_abort(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +010057psa_status_t tfm_crypto_hash_clone(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis04debbd2019-10-14 12:12:52 +010058psa_status_t tfm_crypto_mac_compute(psa_invec *, size_t, psa_outvec *, size_t);
59psa_status_t tfm_crypto_mac_verify(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis09586c52019-03-27 16:35:31 +000060psa_status_t tfm_crypto_mac_sign_setup(psa_invec *, size_t, psa_outvec *, size_t);
61psa_status_t tfm_crypto_mac_verify_setup(psa_invec *, size_t, psa_outvec *, size_t);
62psa_status_t tfm_crypto_mac_update(psa_invec *, size_t, psa_outvec *, size_t);
63psa_status_t tfm_crypto_mac_sign_finish(psa_invec *, size_t, psa_outvec *, size_t);
64psa_status_t tfm_crypto_mac_verify_finish(psa_invec *, size_t, psa_outvec *, size_t);
65psa_status_t tfm_crypto_mac_abort(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis04debbd2019-10-14 12:12:52 +010066psa_status_t tfm_crypto_cipher_encrypt(psa_invec *, size_t, psa_outvec *, size_t);
67psa_status_t tfm_crypto_cipher_decrypt(psa_invec *, size_t, psa_outvec *, size_t);
68psa_status_t tfm_crypto_cipher_encrypt_setup(psa_invec *, size_t, psa_outvec *, size_t);
69psa_status_t tfm_crypto_cipher_decrypt_setup(psa_invec *, size_t, psa_outvec *, size_t);
70psa_status_t tfm_crypto_cipher_generate_iv(psa_invec *, size_t, psa_outvec *, size_t);
71psa_status_t tfm_crypto_cipher_set_iv(psa_invec *, size_t, psa_outvec *, size_t);
72psa_status_t tfm_crypto_cipher_update(psa_invec *, size_t, psa_outvec *, size_t);
73psa_status_t tfm_crypto_cipher_finish(psa_invec *, size_t, psa_outvec *, size_t);
74psa_status_t tfm_crypto_cipher_abort(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelisab85ccd2019-03-25 15:14:29 +000075psa_status_t tfm_crypto_aead_encrypt(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +010076psa_status_t tfm_crypto_aead_decrypt(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis04debbd2019-10-14 12:12:52 +010077psa_status_t tfm_crypto_aead_encrypt_setup(psa_invec *, size_t, psa_outvec *, size_t);
78psa_status_t tfm_crypto_aead_decrypt_setup(psa_invec *, size_t, psa_outvec *, size_t);
79psa_status_t tfm_crypto_aead_generate_nonce(psa_invec *, size_t, psa_outvec *, size_t);
80psa_status_t tfm_crypto_aead_set_nonce(psa_invec *, size_t, psa_outvec *, size_t);
81psa_status_t tfm_crypto_aead_set_lengths(psa_invec *, size_t, psa_outvec *, size_t);
82psa_status_t tfm_crypto_aead_update_ad(psa_invec *, size_t, psa_outvec *, size_t);
83psa_status_t tfm_crypto_aead_update(psa_invec *, size_t, psa_outvec *, size_t);
84psa_status_t tfm_crypto_aead_finish(psa_invec *, size_t, psa_outvec *, size_t);
85psa_status_t tfm_crypto_aead_verify(psa_invec *, size_t, psa_outvec *, size_t);
86psa_status_t tfm_crypto_aead_abort(psa_invec *, size_t, psa_outvec *, size_t);
87psa_status_t tfm_crypto_sign_hash(psa_invec *, size_t, psa_outvec *, size_t);
88psa_status_t tfm_crypto_verify_hash(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +010089psa_status_t tfm_crypto_asymmetric_encrypt(psa_invec *, size_t, psa_outvec *, size_t);
90psa_status_t tfm_crypto_asymmetric_decrypt(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis04debbd2019-10-14 12:12:52 +010091psa_status_t tfm_crypto_key_derivation_setup(psa_invec *, size_t, psa_outvec *, size_t);
92psa_status_t tfm_crypto_key_derivation_get_capacity(psa_invec *, size_t, psa_outvec *, size_t);
93psa_status_t tfm_crypto_key_derivation_set_capacity(psa_invec *, size_t, psa_outvec *, size_t);
94psa_status_t tfm_crypto_key_derivation_input_bytes(psa_invec *, size_t, psa_outvec *, size_t);
95psa_status_t tfm_crypto_key_derivation_input_key(psa_invec *, size_t, psa_outvec *, size_t);
96psa_status_t tfm_crypto_key_derivation_key_agreement(psa_invec *, size_t, psa_outvec *, size_t);
97psa_status_t tfm_crypto_key_derivation_output_bytes(psa_invec *, size_t, psa_outvec *, size_t);
98psa_status_t tfm_crypto_key_derivation_output_key(psa_invec *, size_t, psa_outvec *, size_t);
99psa_status_t tfm_crypto_key_derivation_abort(psa_invec *, size_t, psa_outvec *, size_t);
100psa_status_t tfm_crypto_raw_key_agreement(psa_invec *, size_t, psa_outvec *, size_t);
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +0100101psa_status_t tfm_crypto_generate_random(psa_invec *, size_t, psa_outvec *, size_t);
102psa_status_t tfm_crypto_generate_key(psa_invec *, size_t, psa_outvec *, size_t);
Kevin Pengc73130f2019-10-22 17:27:18 +0800103#endif /* TFM_PARTITION_CRYPTO */
Miklos Balintbf25a402018-06-14 17:43:54 +0200104
Mingyang Sun9511e5e2019-05-29 18:18:44 +0800105#ifdef TFM_PARTITION_PLATFORM
Miklos Balintbf25a402018-06-14 17:43:54 +0200106/******** TFM_SP_PLATFORM ********/
Antonio de Angelis09586c52019-03-27 16:35:31 +0000107psa_status_t platform_sp_system_reset(psa_invec *, size_t, psa_outvec *, size_t);
Miklos Balintc7b1b6c2019-04-24 12:38:36 +0200108psa_status_t platform_sp_ioctl(psa_invec *, size_t, psa_outvec *, size_t);
Galanakis, Minosef5118b2020-01-21 15:27:14 +0000109psa_status_t platform_sp_nv_counter_read(psa_invec *, size_t, psa_outvec *, size_t);
110psa_status_t platform_sp_nv_counter_increment(psa_invec *, size_t, psa_outvec *, size_t);
Mingyang Sun9511e5e2019-05-29 18:18:44 +0800111#endif /* TFM_PARTITION_PLATFORM */
Miklos Balintbf25a402018-06-14 17:43:54 +0200112
Kevin Pengc73130f2019-10-22 17:27:18 +0800113#ifdef TFM_PARTITION_INITIAL_ATTESTATION
Miklos Balintbf25a402018-06-14 17:43:54 +0200114/******** TFM_SP_INITIAL_ATTESTATION ********/
Antonio de Angelis09586c52019-03-27 16:35:31 +0000115psa_status_t initial_attest_get_token(psa_invec *, size_t, psa_outvec *, size_t);
116psa_status_t initial_attest_get_token_size(psa_invec *, size_t, psa_outvec *, size_t);
David Vinczeff6da532019-11-21 00:19:50 +0100117psa_status_t initial_attest_get_public_key(psa_invec *, size_t, psa_outvec *, size_t);
Kevin Pengc73130f2019-10-22 17:27:18 +0800118#endif /* TFM_PARTITION_INITIAL_ATTESTATION */
Miklos Balintbf25a402018-06-14 17:43:54 +0200119
120#ifdef TFM_PARTITION_TEST_CORE
121/******** TFM_SP_CORE_TEST ********/
Antonio de Angelis09586c52019-03-27 16:35:31 +0000122psa_status_t spm_core_test_sfn(psa_invec *, size_t, psa_outvec *, size_t);
123psa_status_t spm_core_test_sfn_init_success(psa_invec *, size_t, psa_outvec *, size_t);
124psa_status_t spm_core_test_sfn_direct_recursion(psa_invec *, size_t, psa_outvec *, size_t);
Miklos Balintbf25a402018-06-14 17:43:54 +0200125#endif /* TFM_PARTITION_TEST_CORE */
126
127#ifdef TFM_PARTITION_TEST_CORE
128/******** TFM_SP_CORE_TEST_2 ********/
Antonio de Angelis09586c52019-03-27 16:35:31 +0000129psa_status_t spm_core_test_2_slave_service(psa_invec *, size_t, psa_outvec *, size_t);
130psa_status_t spm_core_test_2_sfn_invert(psa_invec *, size_t, psa_outvec *, size_t);
131psa_status_t spm_core_test_2_check_caller_client_id(psa_invec *, size_t, psa_outvec *, size_t);
132psa_status_t spm_core_test_2_get_every_second_byte(psa_invec *, size_t, psa_outvec *, size_t);
Mate Toth-Pal14c29d02019-03-05 16:22:13 +0100133psa_status_t spm_core_test_2_prepare_test_scenario(psa_invec *, size_t, psa_outvec *, size_t);
134psa_status_t spm_core_test_2_execute_test_scenario(psa_invec *, size_t, psa_outvec *, size_t);
Miklos Balintbf25a402018-06-14 17:43:54 +0200135#endif /* TFM_PARTITION_TEST_CORE */
136
Miklos Balintbf25a402018-06-14 17:43:54 +0200137#ifdef TFM_PARTITION_TEST_SECURE_SERVICES
138/******** TFM_SP_SECURE_TEST_PARTITION ********/
Antonio de Angelis09586c52019-03-27 16:35:31 +0000139psa_status_t tfm_secure_client_service_sfn_run_tests(psa_invec *, size_t, psa_outvec *, size_t);
Miklos Balintbf25a402018-06-14 17:43:54 +0200140#endif /* TFM_PARTITION_TEST_SECURE_SERVICES */
141
Jamie Foxadf02552019-05-16 17:44:52 +0100142#ifdef TFM_PARTITION_TEST_CORE_IPC
Edison Ai807fedb2019-03-07 11:22:03 +0800143/******** TFM_SP_IPC_SERVICE_TEST ********/
Jamie Foxadf02552019-05-16 17:44:52 +0100144#endif /* TFM_PARTITION_TEST_CORE_IPC */
Edison Ai807fedb2019-03-07 11:22:03 +0800145
Jamie Foxadf02552019-05-16 17:44:52 +0100146#ifdef TFM_PARTITION_TEST_CORE_IPC
Edison Ai807fedb2019-03-07 11:22:03 +0800147/******** TFM_SP_IPC_CLIENT_TEST ********/
Jamie Foxadf02552019-05-16 17:44:52 +0100148#endif /* TFM_PARTITION_TEST_CORE_IPC */
Edison Ai807fedb2019-03-07 11:22:03 +0800149
David Hu33f2fd22019-08-16 15:32:39 +0800150#ifdef TFM_ENABLE_IRQ_TEST
Mate Toth-Pal14c29d02019-03-05 16:22:13 +0100151/******** TFM_IRQ_TEST_1 ********/
152psa_status_t spm_irq_test_1_prepare_test_scenario(psa_invec *, size_t, psa_outvec *, size_t);
153psa_status_t spm_irq_test_1_execute_test_scenario(psa_invec *, size_t, psa_outvec *, size_t);
David Hu33f2fd22019-08-16 15:32:39 +0800154#endif /* TFM_ENABLE_IRQ_TEST */
Mate Toth-Pal14c29d02019-03-05 16:22:13 +0100155
Kevin Pengc6d74502020-03-04 16:55:37 +0800156#ifdef TFM_PARTITION_TEST_PS
157/******** TFM_SP_PS_TEST ********/
158psa_status_t tfm_ps_test_prepare(psa_invec *, size_t, psa_outvec *, size_t);
159#endif /* TFM_PARTITION_TEST_PS */
Jamie Fox0e823a02019-10-28 17:28:19 +0000160
Jamie Fox830ff762019-12-16 15:20:22 +0000161#ifdef TFM_PARTITION_TEST_SECURE_SERVICES
162/******** TFM_SP_SECURE_CLIENT_2 ********/
163psa_status_t tfm_secure_client_2_call(psa_invec *, size_t, psa_outvec *, size_t);
164#endif /* TFM_PARTITION_TEST_SECURE_SERVICES */
165
Miklos Balintbf25a402018-06-14 17:43:54 +0200166
167#define TFM_VENEER_FUNCTION(partition_name, sfn_name) \
168 __tfm_secure_gateway_attributes__ \
Antonio de Angelis09586c52019-03-27 16:35:31 +0000169 psa_status_t tfm_##sfn_name##_veneer(psa_invec *in_vec, \
Mate Toth-Pal2a6f8c22018-12-13 16:37:17 +0100170 size_t in_len, \
Antonio de Angelis09586c52019-03-27 16:35:31 +0000171 psa_outvec *out_vec, \
Mate Toth-Pal2a6f8c22018-12-13 16:37:17 +0100172 size_t out_len) \
Miklos Balintbf25a402018-06-14 17:43:54 +0200173 { \
David Hu8d1f1072020-04-30 12:52:14 +0800174 bool is_ns = tfm_core_is_ns_client(); \
175 \
Edison Aib2134e62019-10-11 18:24:47 +0800176 TFM_CORE_IOVEC_SFN_REQUEST(partition_name, \
David Hu8d1f1072020-04-30 12:52:14 +0800177 is_ns, \
TTornblomc640e072019-06-14 14:33:51 +0200178 (void *) sfn_name, \
Mate Toth-Palb8ce0dd2018-07-25 10:18:34 +0200179 in_vec, in_len, out_vec, out_len); \
Miklos Balintbf25a402018-06-14 17:43:54 +0200180 }
181
Kevin Pengc6d74502020-03-04 16:55:37 +0800182#ifdef TFM_PARTITION_PROTECTED_STORAGE
183/******** TFM_SP_PS ********/
184TFM_VENEER_FUNCTION(TFM_SP_PS, tfm_ps_set_req)
185TFM_VENEER_FUNCTION(TFM_SP_PS, tfm_ps_get_req)
186TFM_VENEER_FUNCTION(TFM_SP_PS, tfm_ps_get_info_req)
187TFM_VENEER_FUNCTION(TFM_SP_PS, tfm_ps_remove_req)
188TFM_VENEER_FUNCTION(TFM_SP_PS, tfm_ps_get_support_req)
189#endif /* TFM_PARTITION_PROTECTED_STORAGE */
Miklos Balintbf25a402018-06-14 17:43:54 +0200190
Kevin Pengc73130f2019-10-22 17:27:18 +0800191#ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE
TudorCretufb182bc2019-07-05 17:34:12 +0100192/******** TFM_SP_ITS ********/
193TFM_VENEER_FUNCTION(TFM_SP_ITS, tfm_its_set_req)
194TFM_VENEER_FUNCTION(TFM_SP_ITS, tfm_its_get_req)
195TFM_VENEER_FUNCTION(TFM_SP_ITS, tfm_its_get_info_req)
196TFM_VENEER_FUNCTION(TFM_SP_ITS, tfm_its_remove_req)
Kevin Pengc73130f2019-10-22 17:27:18 +0800197#endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */
TudorCretufb182bc2019-07-05 17:34:12 +0100198
Jamie Foxc78c62c2019-05-23 13:42:17 +0100199#ifdef TFM_PARTITION_AUDIT_LOG
Miklos Balintbf25a402018-06-14 17:43:54 +0200200/******** TFM_SP_AUDIT_LOG ********/
201TFM_VENEER_FUNCTION(TFM_SP_AUDIT_LOG, audit_core_retrieve_record)
202TFM_VENEER_FUNCTION(TFM_SP_AUDIT_LOG, audit_core_add_record)
203TFM_VENEER_FUNCTION(TFM_SP_AUDIT_LOG, audit_core_get_info)
204TFM_VENEER_FUNCTION(TFM_SP_AUDIT_LOG, audit_core_get_record_info)
205TFM_VENEER_FUNCTION(TFM_SP_AUDIT_LOG, audit_core_delete_record)
Jamie Foxc78c62c2019-05-23 13:42:17 +0100206#endif /* TFM_PARTITION_AUDIT_LOG */
Miklos Balintbf25a402018-06-14 17:43:54 +0200207
Kevin Pengc73130f2019-10-22 17:27:18 +0800208#ifdef TFM_PARTITION_CRYPTO
Miklos Balintbf25a402018-06-14 17:43:54 +0200209/******** TFM_SP_CRYPTO ********/
Antonio de Angelis04debbd2019-10-14 12:12:52 +0100210TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_get_key_attributes)
Jamie Foxdadb4e82019-09-03 17:59:41 +0100211TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_open_key)
212TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_close_key)
Antonio de Angelis04debbd2019-10-14 12:12:52 +0100213TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_reset_key_attributes)
Miklos Balintbf25a402018-06-14 17:43:54 +0200214TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_import_key)
215TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_destroy_key)
Miklos Balintbf25a402018-06-14 17:43:54 +0200216TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_export_key)
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +0100217TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_export_public_key)
218TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_copy_key)
Antonio de Angelis04debbd2019-10-14 12:12:52 +0100219TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_compute)
220TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_compare)
Antonio de Angelis377a1552018-11-22 17:02:40 +0000221TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_setup)
Miklos Balintbf25a402018-06-14 17:43:54 +0200222TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_update)
223TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_finish)
224TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_verify)
225TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_abort)
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +0100226TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_hash_clone)
Antonio de Angelis04debbd2019-10-14 12:12:52 +0100227TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_compute)
228TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_verify)
Edison Ai807fedb2019-03-07 11:22:03 +0800229TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_sign_setup)
230TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_verify_setup)
231TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_update)
232TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_sign_finish)
233TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_verify_finish)
234TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_mac_abort)
Antonio de Angelis04debbd2019-10-14 12:12:52 +0100235TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_encrypt)
236TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_decrypt)
237TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_encrypt_setup)
238TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_decrypt_setup)
239TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_generate_iv)
240TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_set_iv)
241TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_update)
242TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_finish)
243TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_cipher_abort)
Antonio de Angelisab85ccd2019-03-25 15:14:29 +0000244TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_encrypt)
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +0100245TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_decrypt)
Antonio de Angelis04debbd2019-10-14 12:12:52 +0100246TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_encrypt_setup)
247TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_decrypt_setup)
248TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_generate_nonce)
249TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_set_nonce)
250TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_set_lengths)
251TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_update_ad)
252TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_update)
253TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_finish)
254TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_verify)
255TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_aead_abort)
256TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_sign_hash)
257TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_verify_hash)
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +0100258TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_asymmetric_encrypt)
259TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_asymmetric_decrypt)
Antonio de Angelis04debbd2019-10-14 12:12:52 +0100260TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_setup)
261TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_get_capacity)
262TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_set_capacity)
263TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_input_bytes)
264TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_input_key)
265TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_key_agreement)
266TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_output_bytes)
267TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_output_key)
268TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_key_derivation_abort)
269TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_raw_key_agreement)
Antonio de Angelis25e2b2d2019-04-25 14:49:50 +0100270TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_generate_random)
271TFM_VENEER_FUNCTION(TFM_SP_CRYPTO, tfm_crypto_generate_key)
Kevin Pengc73130f2019-10-22 17:27:18 +0800272#endif /* TFM_PARTITION_CRYPTO */
Miklos Balintbf25a402018-06-14 17:43:54 +0200273
Mingyang Sun9511e5e2019-05-29 18:18:44 +0800274#ifdef TFM_PARTITION_PLATFORM
Miklos Balintbf25a402018-06-14 17:43:54 +0200275/******** TFM_SP_PLATFORM ********/
276TFM_VENEER_FUNCTION(TFM_SP_PLATFORM, platform_sp_system_reset)
Miklos Balintc7b1b6c2019-04-24 12:38:36 +0200277TFM_VENEER_FUNCTION(TFM_SP_PLATFORM, platform_sp_ioctl)
Galanakis, Minosef5118b2020-01-21 15:27:14 +0000278TFM_VENEER_FUNCTION(TFM_SP_PLATFORM, platform_sp_nv_counter_read)
279TFM_VENEER_FUNCTION(TFM_SP_PLATFORM, platform_sp_nv_counter_increment)
Mingyang Sun9511e5e2019-05-29 18:18:44 +0800280#endif /* TFM_PARTITION_PLATFORM */
Miklos Balintbf25a402018-06-14 17:43:54 +0200281
Kevin Pengc73130f2019-10-22 17:27:18 +0800282#ifdef TFM_PARTITION_INITIAL_ATTESTATION
Miklos Balintbf25a402018-06-14 17:43:54 +0200283/******** TFM_SP_INITIAL_ATTESTATION ********/
284TFM_VENEER_FUNCTION(TFM_SP_INITIAL_ATTESTATION, initial_attest_get_token)
Tamas Banb6b80562019-01-04 22:49:24 +0000285TFM_VENEER_FUNCTION(TFM_SP_INITIAL_ATTESTATION, initial_attest_get_token_size)
David Vinczeff6da532019-11-21 00:19:50 +0100286TFM_VENEER_FUNCTION(TFM_SP_INITIAL_ATTESTATION, initial_attest_get_public_key)
Kevin Pengc73130f2019-10-22 17:27:18 +0800287#endif /* TFM_PARTITION_INITIAL_ATTESTATION */
Miklos Balintbf25a402018-06-14 17:43:54 +0200288
289#ifdef TFM_PARTITION_TEST_CORE
290/******** TFM_SP_CORE_TEST ********/
291TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST, spm_core_test_sfn)
292TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST, spm_core_test_sfn_init_success)
293TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST, spm_core_test_sfn_direct_recursion)
294#endif /* TFM_PARTITION_TEST_CORE */
295
296#ifdef TFM_PARTITION_TEST_CORE
297/******** TFM_SP_CORE_TEST_2 ********/
298TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST_2, spm_core_test_2_slave_service)
299TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST_2, spm_core_test_2_sfn_invert)
300TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST_2, spm_core_test_2_check_caller_client_id)
Mate Toth-Pal16ec7982018-08-29 09:44:17 +0200301TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST_2, spm_core_test_2_get_every_second_byte)
Mate Toth-Pal14c29d02019-03-05 16:22:13 +0100302TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST_2, spm_core_test_2_prepare_test_scenario)
303TFM_VENEER_FUNCTION(TFM_SP_CORE_TEST_2, spm_core_test_2_execute_test_scenario)
Miklos Balintbf25a402018-06-14 17:43:54 +0200304#endif /* TFM_PARTITION_TEST_CORE */
305
Miklos Balintbf25a402018-06-14 17:43:54 +0200306#ifdef TFM_PARTITION_TEST_SECURE_SERVICES
307/******** TFM_SP_SECURE_TEST_PARTITION ********/
308TFM_VENEER_FUNCTION(TFM_SP_SECURE_TEST_PARTITION, tfm_secure_client_service_sfn_run_tests)
309#endif /* TFM_PARTITION_TEST_SECURE_SERVICES */
310
Jamie Foxadf02552019-05-16 17:44:52 +0100311#ifdef TFM_PARTITION_TEST_CORE_IPC
Edison Ai807fedb2019-03-07 11:22:03 +0800312/******** TFM_SP_IPC_SERVICE_TEST ********/
Jamie Foxadf02552019-05-16 17:44:52 +0100313#endif /* TFM_PARTITION_TEST_CORE_IPC */
Edison Ai807fedb2019-03-07 11:22:03 +0800314
Jamie Foxadf02552019-05-16 17:44:52 +0100315#ifdef TFM_PARTITION_TEST_CORE_IPC
Edison Ai807fedb2019-03-07 11:22:03 +0800316/******** TFM_SP_IPC_CLIENT_TEST ********/
Jamie Foxadf02552019-05-16 17:44:52 +0100317#endif /* TFM_PARTITION_TEST_CORE_IPC */
Edison Ai807fedb2019-03-07 11:22:03 +0800318
David Hu33f2fd22019-08-16 15:32:39 +0800319#ifdef TFM_ENABLE_IRQ_TEST
Mate Toth-Pal14c29d02019-03-05 16:22:13 +0100320/******** TFM_IRQ_TEST_1 ********/
321TFM_VENEER_FUNCTION(TFM_IRQ_TEST_1, spm_irq_test_1_prepare_test_scenario)
322TFM_VENEER_FUNCTION(TFM_IRQ_TEST_1, spm_irq_test_1_execute_test_scenario)
David Hu33f2fd22019-08-16 15:32:39 +0800323#endif /* TFM_ENABLE_IRQ_TEST */
Mate Toth-Pal14c29d02019-03-05 16:22:13 +0100324
Kevin Pengc6d74502020-03-04 16:55:37 +0800325#ifdef TFM_PARTITION_TEST_PS
326/******** TFM_SP_PS_TEST ********/
327TFM_VENEER_FUNCTION(TFM_SP_PS_TEST, tfm_ps_test_prepare)
328#endif /* TFM_PARTITION_TEST_PS */
Jamie Fox0e823a02019-10-28 17:28:19 +0000329
Jamie Fox830ff762019-12-16 15:20:22 +0000330#ifdef TFM_PARTITION_TEST_SECURE_SERVICES
331/******** TFM_SP_SECURE_CLIENT_2 ********/
332TFM_VENEER_FUNCTION(TFM_SP_SECURE_CLIENT_2, tfm_secure_client_2_call)
333#endif /* TFM_PARTITION_TEST_SECURE_SERVICES */
334