blob: e6d712bd6349c9536ac76cdde9f5e0c475674d8f [file] [log] [blame]
Gilles Peskine6e4332c2024-01-04 16:42:40 +01001/* Automatically generated by generate_psa_wrappers.py, do not edit! */
2
3/* Copyright The Mbed TLS Contributors
4 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5 */
6
7#ifndef TEST_PSA_TEST_WRAPPERS_H
8#define TEST_PSA_TEST_WRAPPERS_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include <mbedtls/build_info.h>
15
Gilles Peskine4411c9c2024-01-04 20:51:38 +010016#if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) && \
17 !defined(RECORD_PSA_STATUS_COVERAGE_LOG)
Gilles Peskine6e4332c2024-01-04 16:42:40 +010018
19#include <psa/crypto.h>
20
Gilles Peskine90d14d72024-01-04 16:59:28 +010021#include <test/memory.h>
Gilles Peskine6e4332c2024-01-04 16:42:40 +010022#include <test/psa_crypto_helpers.h>
23#include <test/psa_test_wrappers.h>
24
25#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
26psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy(
27 const uint8_t *arg0_seed,
28 size_t arg1_seed_size);
29#define mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size) \
30 mbedtls_test_wrap_mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size)
31#endif /* defined(MBEDTLS_PSA_INJECT_ENTROPY) */
32
33#if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
34psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(
35 mbedtls_svc_key_id_t arg0_key_id,
36 psa_key_lifetime_t *arg1_lifetime,
37 psa_drv_slot_number_t *arg2_slot_number);
38#define mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number) \
39 mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number)
40#endif /* defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) */
41
42#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
43psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key(
44 const psa_key_attributes_t *arg0_attributes);
45#define mbedtls_psa_register_se_key(arg0_attributes) \
46 mbedtls_test_wrap_mbedtls_psa_register_se_key(arg0_attributes)
47#endif /* defined(MBEDTLS_PSA_CRYPTO_SE_C) */
48
49psa_status_t mbedtls_test_wrap_psa_aead_abort(
50 psa_aead_operation_t *arg0_operation);
51#define psa_aead_abort(arg0_operation) \
52 mbedtls_test_wrap_psa_aead_abort(arg0_operation)
53
54psa_status_t mbedtls_test_wrap_psa_aead_decrypt(
55 mbedtls_svc_key_id_t arg0_key,
56 psa_algorithm_t arg1_alg,
57 const uint8_t *arg2_nonce,
58 size_t arg3_nonce_length,
59 const uint8_t *arg4_additional_data,
60 size_t arg5_additional_data_length,
61 const uint8_t *arg6_ciphertext,
62 size_t arg7_ciphertext_length,
63 uint8_t *arg8_plaintext,
64 size_t arg9_plaintext_size,
65 size_t *arg10_plaintext_length);
66#define psa_aead_decrypt(arg0_key, arg1_alg, arg2_nonce, arg3_nonce_length, arg4_additional_data, arg5_additional_data_length, arg6_ciphertext, arg7_ciphertext_length, arg8_plaintext, arg9_plaintext_size, arg10_plaintext_length) \
67 mbedtls_test_wrap_psa_aead_decrypt(arg0_key, arg1_alg, arg2_nonce, arg3_nonce_length, arg4_additional_data, arg5_additional_data_length, arg6_ciphertext, arg7_ciphertext_length, arg8_plaintext, arg9_plaintext_size, arg10_plaintext_length)
68
69psa_status_t mbedtls_test_wrap_psa_aead_decrypt_setup(
70 psa_aead_operation_t *arg0_operation,
71 mbedtls_svc_key_id_t arg1_key,
72 psa_algorithm_t arg2_alg);
73#define psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
74 mbedtls_test_wrap_psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
75
76psa_status_t mbedtls_test_wrap_psa_aead_encrypt(
77 mbedtls_svc_key_id_t arg0_key,
78 psa_algorithm_t arg1_alg,
79 const uint8_t *arg2_nonce,
80 size_t arg3_nonce_length,
81 const uint8_t *arg4_additional_data,
82 size_t arg5_additional_data_length,
83 const uint8_t *arg6_plaintext,
84 size_t arg7_plaintext_length,
85 uint8_t *arg8_ciphertext,
86 size_t arg9_ciphertext_size,
87 size_t *arg10_ciphertext_length);
88#define psa_aead_encrypt(arg0_key, arg1_alg, arg2_nonce, arg3_nonce_length, arg4_additional_data, arg5_additional_data_length, arg6_plaintext, arg7_plaintext_length, arg8_ciphertext, arg9_ciphertext_size, arg10_ciphertext_length) \
89 mbedtls_test_wrap_psa_aead_encrypt(arg0_key, arg1_alg, arg2_nonce, arg3_nonce_length, arg4_additional_data, arg5_additional_data_length, arg6_plaintext, arg7_plaintext_length, arg8_ciphertext, arg9_ciphertext_size, arg10_ciphertext_length)
90
91psa_status_t mbedtls_test_wrap_psa_aead_encrypt_setup(
92 psa_aead_operation_t *arg0_operation,
93 mbedtls_svc_key_id_t arg1_key,
94 psa_algorithm_t arg2_alg);
95#define psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
96 mbedtls_test_wrap_psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
97
98psa_status_t mbedtls_test_wrap_psa_aead_finish(
99 psa_aead_operation_t *arg0_operation,
100 uint8_t *arg1_ciphertext,
101 size_t arg2_ciphertext_size,
102 size_t *arg3_ciphertext_length,
103 uint8_t *arg4_tag,
104 size_t arg5_tag_size,
105 size_t *arg6_tag_length);
106#define psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length) \
107 mbedtls_test_wrap_psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length)
108
109psa_status_t mbedtls_test_wrap_psa_aead_generate_nonce(
110 psa_aead_operation_t *arg0_operation,
111 uint8_t *arg1_nonce,
112 size_t arg2_nonce_size,
113 size_t *arg3_nonce_length);
114#define psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length) \
115 mbedtls_test_wrap_psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length)
116
117psa_status_t mbedtls_test_wrap_psa_aead_set_lengths(
118 psa_aead_operation_t *arg0_operation,
119 size_t arg1_ad_length,
120 size_t arg2_plaintext_length);
121#define psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length) \
122 mbedtls_test_wrap_psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length)
123
124psa_status_t mbedtls_test_wrap_psa_aead_set_nonce(
125 psa_aead_operation_t *arg0_operation,
126 const uint8_t *arg1_nonce,
127 size_t arg2_nonce_length);
128#define psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length) \
129 mbedtls_test_wrap_psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length)
130
131psa_status_t mbedtls_test_wrap_psa_aead_update(
132 psa_aead_operation_t *arg0_operation,
133 const uint8_t *arg1_input,
134 size_t arg2_input_length,
135 uint8_t *arg3_output,
136 size_t arg4_output_size,
137 size_t *arg5_output_length);
138#define psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
139 mbedtls_test_wrap_psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
140
141psa_status_t mbedtls_test_wrap_psa_aead_update_ad(
142 psa_aead_operation_t *arg0_operation,
143 const uint8_t *arg1_input,
144 size_t arg2_input_length);
145#define psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length) \
146 mbedtls_test_wrap_psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length)
147
148psa_status_t mbedtls_test_wrap_psa_aead_verify(
149 psa_aead_operation_t *arg0_operation,
150 uint8_t *arg1_plaintext,
151 size_t arg2_plaintext_size,
152 size_t *arg3_plaintext_length,
153 const uint8_t *arg4_tag,
154 size_t arg5_tag_length);
155#define psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length) \
156 mbedtls_test_wrap_psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length)
157
158psa_status_t mbedtls_test_wrap_psa_asymmetric_decrypt(
159 mbedtls_svc_key_id_t arg0_key,
160 psa_algorithm_t arg1_alg,
161 const uint8_t *arg2_input,
162 size_t arg3_input_length,
163 const uint8_t *arg4_salt,
164 size_t arg5_salt_length,
165 uint8_t *arg6_output,
166 size_t arg7_output_size,
167 size_t *arg8_output_length);
168#define psa_asymmetric_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_salt, arg5_salt_length, arg6_output, arg7_output_size, arg8_output_length) \
169 mbedtls_test_wrap_psa_asymmetric_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_salt, arg5_salt_length, arg6_output, arg7_output_size, arg8_output_length)
170
171psa_status_t mbedtls_test_wrap_psa_asymmetric_encrypt(
172 mbedtls_svc_key_id_t arg0_key,
173 psa_algorithm_t arg1_alg,
174 const uint8_t *arg2_input,
175 size_t arg3_input_length,
176 const uint8_t *arg4_salt,
177 size_t arg5_salt_length,
178 uint8_t *arg6_output,
179 size_t arg7_output_size,
180 size_t *arg8_output_length);
181#define psa_asymmetric_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_salt, arg5_salt_length, arg6_output, arg7_output_size, arg8_output_length) \
182 mbedtls_test_wrap_psa_asymmetric_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_salt, arg5_salt_length, arg6_output, arg7_output_size, arg8_output_length)
183
184psa_status_t mbedtls_test_wrap_psa_cipher_abort(
185 psa_cipher_operation_t *arg0_operation);
186#define psa_cipher_abort(arg0_operation) \
187 mbedtls_test_wrap_psa_cipher_abort(arg0_operation)
188
189psa_status_t mbedtls_test_wrap_psa_cipher_decrypt(
190 mbedtls_svc_key_id_t arg0_key,
191 psa_algorithm_t arg1_alg,
192 const uint8_t *arg2_input,
193 size_t arg3_input_length,
194 uint8_t *arg4_output,
195 size_t arg5_output_size,
196 size_t *arg6_output_length);
197#define psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
198 mbedtls_test_wrap_psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
199
200psa_status_t mbedtls_test_wrap_psa_cipher_decrypt_setup(
201 psa_cipher_operation_t *arg0_operation,
202 mbedtls_svc_key_id_t arg1_key,
203 psa_algorithm_t arg2_alg);
204#define psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
205 mbedtls_test_wrap_psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
206
207psa_status_t mbedtls_test_wrap_psa_cipher_encrypt(
208 mbedtls_svc_key_id_t arg0_key,
209 psa_algorithm_t arg1_alg,
210 const uint8_t *arg2_input,
211 size_t arg3_input_length,
212 uint8_t *arg4_output,
213 size_t arg5_output_size,
214 size_t *arg6_output_length);
215#define psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
216 mbedtls_test_wrap_psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
217
218psa_status_t mbedtls_test_wrap_psa_cipher_encrypt_setup(
219 psa_cipher_operation_t *arg0_operation,
220 mbedtls_svc_key_id_t arg1_key,
221 psa_algorithm_t arg2_alg);
222#define psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
223 mbedtls_test_wrap_psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
224
225psa_status_t mbedtls_test_wrap_psa_cipher_finish(
226 psa_cipher_operation_t *arg0_operation,
227 uint8_t *arg1_output,
228 size_t arg2_output_size,
229 size_t *arg3_output_length);
230#define psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length) \
231 mbedtls_test_wrap_psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length)
232
233psa_status_t mbedtls_test_wrap_psa_cipher_generate_iv(
234 psa_cipher_operation_t *arg0_operation,
235 uint8_t *arg1_iv,
236 size_t arg2_iv_size,
237 size_t *arg3_iv_length);
238#define psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length) \
239 mbedtls_test_wrap_psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length)
240
241psa_status_t mbedtls_test_wrap_psa_cipher_set_iv(
242 psa_cipher_operation_t *arg0_operation,
243 const uint8_t *arg1_iv,
244 size_t arg2_iv_length);
245#define psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length) \
246 mbedtls_test_wrap_psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length)
247
248psa_status_t mbedtls_test_wrap_psa_cipher_update(
249 psa_cipher_operation_t *arg0_operation,
250 const uint8_t *arg1_input,
251 size_t arg2_input_length,
252 uint8_t *arg3_output,
253 size_t arg4_output_size,
254 size_t *arg5_output_length);
255#define psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
256 mbedtls_test_wrap_psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
257
258psa_status_t mbedtls_test_wrap_psa_copy_key(
259 mbedtls_svc_key_id_t arg0_source_key,
260 const psa_key_attributes_t *arg1_attributes,
261 mbedtls_svc_key_id_t *arg2_target_key);
262#define psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key) \
263 mbedtls_test_wrap_psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key)
264
Ronald Cron2463ec82024-05-24 10:28:15 +0200265#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100266psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(
267 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
268 psa_pake_cipher_suite_t *arg1_cipher_suite);
269#define psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite) \
270 mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite)
Ronald Cron2463ec82024-05-24 10:28:15 +0200271#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100272
Ronald Cron2463ec82024-05-24 10:28:15 +0200273#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100274psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password(
275 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
276 uint8_t *arg1_buffer,
277 size_t arg2_buffer_size,
278 size_t *arg3_buffer_length);
279#define psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length) \
280 mbedtls_test_wrap_psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length)
Ronald Cron2463ec82024-05-24 10:28:15 +0200281#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100282
Ronald Cron2463ec82024-05-24 10:28:15 +0200283#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100284psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(
285 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
286 size_t *arg1_password_len);
287#define psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len) \
288 mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len)
Ronald Cron2463ec82024-05-24 10:28:15 +0200289#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100290
Ronald Cron2463ec82024-05-24 10:28:15 +0200291#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100292psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(
293 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
294 uint8_t *arg1_peer_id,
295 size_t arg2_peer_id_size,
296 size_t *arg3_peer_id_length);
297#define psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length) \
298 mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length)
Ronald Cron2463ec82024-05-24 10:28:15 +0200299#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100300
Ronald Cron2463ec82024-05-24 10:28:15 +0200301#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100302psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(
303 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
304 size_t *arg1_peer_len);
305#define psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len) \
306 mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len)
Ronald Cron2463ec82024-05-24 10:28:15 +0200307#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100308
Ronald Cron2463ec82024-05-24 10:28:15 +0200309#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100310psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user(
311 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
312 uint8_t *arg1_user_id,
313 size_t arg2_user_id_size,
314 size_t *arg3_user_id_len);
315#define psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len) \
316 mbedtls_test_wrap_psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len)
Ronald Cron2463ec82024-05-24 10:28:15 +0200317#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100318
Ronald Cron2463ec82024-05-24 10:28:15 +0200319#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100320psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(
321 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
322 size_t *arg1_user_len);
323#define psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len) \
324 mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len)
Ronald Cron2463ec82024-05-24 10:28:15 +0200325#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100326
327psa_status_t mbedtls_test_wrap_psa_crypto_init(void);
328#define psa_crypto_init() \
329 mbedtls_test_wrap_psa_crypto_init()
330
331psa_status_t mbedtls_test_wrap_psa_destroy_key(
332 mbedtls_svc_key_id_t arg0_key);
333#define psa_destroy_key(arg0_key) \
334 mbedtls_test_wrap_psa_destroy_key(arg0_key)
335
336psa_status_t mbedtls_test_wrap_psa_export_key(
337 mbedtls_svc_key_id_t arg0_key,
338 uint8_t *arg1_data,
339 size_t arg2_data_size,
340 size_t *arg3_data_length);
341#define psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
342 mbedtls_test_wrap_psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
343
344psa_status_t mbedtls_test_wrap_psa_export_public_key(
345 mbedtls_svc_key_id_t arg0_key,
346 uint8_t *arg1_data,
347 size_t arg2_data_size,
348 size_t *arg3_data_length);
349#define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
350 mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
351
352psa_status_t mbedtls_test_wrap_psa_generate_key(
353 const psa_key_attributes_t *arg0_attributes,
354 mbedtls_svc_key_id_t *arg1_key);
355#define psa_generate_key(arg0_attributes, arg1_key) \
356 mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key)
357
David Horstmann80a5dbd2024-03-12 17:02:48 +0000358psa_status_t mbedtls_test_wrap_psa_generate_key_ext(
359 const psa_key_attributes_t *arg0_attributes,
360 const psa_key_production_parameters_t *arg1_params,
361 size_t arg2_params_data_length,
362 mbedtls_svc_key_id_t *arg3_key);
363#define psa_generate_key_ext(arg0_attributes, arg1_params, arg2_params_data_length, arg3_key) \
364 mbedtls_test_wrap_psa_generate_key_ext(arg0_attributes, arg1_params, arg2_params_data_length, arg3_key)
365
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100366psa_status_t mbedtls_test_wrap_psa_generate_random(
367 uint8_t *arg0_output,
368 size_t arg1_output_size);
369#define psa_generate_random(arg0_output, arg1_output_size) \
370 mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size)
371
372psa_status_t mbedtls_test_wrap_psa_get_key_attributes(
373 mbedtls_svc_key_id_t arg0_key,
374 psa_key_attributes_t *arg1_attributes);
375#define psa_get_key_attributes(arg0_key, arg1_attributes) \
376 mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes)
377
378psa_status_t mbedtls_test_wrap_psa_hash_abort(
379 psa_hash_operation_t *arg0_operation);
380#define psa_hash_abort(arg0_operation) \
381 mbedtls_test_wrap_psa_hash_abort(arg0_operation)
382
383psa_status_t mbedtls_test_wrap_psa_hash_clone(
384 const psa_hash_operation_t *arg0_source_operation,
385 psa_hash_operation_t *arg1_target_operation);
386#define psa_hash_clone(arg0_source_operation, arg1_target_operation) \
387 mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation)
388
389psa_status_t mbedtls_test_wrap_psa_hash_compare(
390 psa_algorithm_t arg0_alg,
391 const uint8_t *arg1_input,
392 size_t arg2_input_length,
393 const uint8_t *arg3_hash,
394 size_t arg4_hash_length);
395#define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \
396 mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length)
397
398psa_status_t mbedtls_test_wrap_psa_hash_compute(
399 psa_algorithm_t arg0_alg,
400 const uint8_t *arg1_input,
401 size_t arg2_input_length,
402 uint8_t *arg3_hash,
403 size_t arg4_hash_size,
404 size_t *arg5_hash_length);
405#define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \
406 mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length)
407
408psa_status_t mbedtls_test_wrap_psa_hash_finish(
409 psa_hash_operation_t *arg0_operation,
410 uint8_t *arg1_hash,
411 size_t arg2_hash_size,
412 size_t *arg3_hash_length);
413#define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \
414 mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length)
415
416psa_status_t mbedtls_test_wrap_psa_hash_setup(
417 psa_hash_operation_t *arg0_operation,
418 psa_algorithm_t arg1_alg);
419#define psa_hash_setup(arg0_operation, arg1_alg) \
420 mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg)
421
422psa_status_t mbedtls_test_wrap_psa_hash_update(
423 psa_hash_operation_t *arg0_operation,
424 const uint8_t *arg1_input,
425 size_t arg2_input_length);
426#define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \
427 mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length)
428
429psa_status_t mbedtls_test_wrap_psa_hash_verify(
430 psa_hash_operation_t *arg0_operation,
431 const uint8_t *arg1_hash,
432 size_t arg2_hash_length);
433#define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \
434 mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length)
435
436psa_status_t mbedtls_test_wrap_psa_import_key(
437 const psa_key_attributes_t *arg0_attributes,
438 const uint8_t *arg1_data,
439 size_t arg2_data_length,
440 mbedtls_svc_key_id_t *arg3_key);
441#define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \
442 mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key)
443
444psa_status_t mbedtls_test_wrap_psa_key_derivation_abort(
445 psa_key_derivation_operation_t *arg0_operation);
446#define psa_key_derivation_abort(arg0_operation) \
447 mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation)
448
449psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity(
450 const psa_key_derivation_operation_t *arg0_operation,
451 size_t *arg1_capacity);
452#define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \
453 mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity)
454
455psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes(
456 psa_key_derivation_operation_t *arg0_operation,
457 psa_key_derivation_step_t arg1_step,
458 const uint8_t *arg2_data,
459 size_t arg3_data_length);
460#define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \
461 mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length)
462
463psa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer(
464 psa_key_derivation_operation_t *arg0_operation,
465 psa_key_derivation_step_t arg1_step,
466 uint64_t arg2_value);
467#define psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) \
468 mbedtls_test_wrap_psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value)
469
470psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key(
471 psa_key_derivation_operation_t *arg0_operation,
472 psa_key_derivation_step_t arg1_step,
473 mbedtls_svc_key_id_t arg2_key);
474#define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \
475 mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key)
476
477psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement(
478 psa_key_derivation_operation_t *arg0_operation,
479 psa_key_derivation_step_t arg1_step,
480 mbedtls_svc_key_id_t arg2_private_key,
481 const uint8_t *arg3_peer_key,
482 size_t arg4_peer_key_length);
483#define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \
484 mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length)
485
486psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes(
487 psa_key_derivation_operation_t *arg0_operation,
488 uint8_t *arg1_output,
489 size_t arg2_output_length);
490#define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \
491 mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length)
492
493psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key(
494 const psa_key_attributes_t *arg0_attributes,
495 psa_key_derivation_operation_t *arg1_operation,
496 mbedtls_svc_key_id_t *arg2_key);
497#define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \
498 mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key)
499
David Horstmann80a5dbd2024-03-12 17:02:48 +0000500psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key_ext(
501 const psa_key_attributes_t *arg0_attributes,
502 psa_key_derivation_operation_t *arg1_operation,
503 const psa_key_production_parameters_t *arg2_params,
504 size_t arg3_params_data_length,
505 mbedtls_svc_key_id_t *arg4_key);
506#define psa_key_derivation_output_key_ext(arg0_attributes, arg1_operation, arg2_params, arg3_params_data_length, arg4_key) \
507 mbedtls_test_wrap_psa_key_derivation_output_key_ext(arg0_attributes, arg1_operation, arg2_params, arg3_params_data_length, arg4_key)
508
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100509psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity(
510 psa_key_derivation_operation_t *arg0_operation,
511 size_t arg1_capacity);
512#define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \
513 mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity)
514
515psa_status_t mbedtls_test_wrap_psa_key_derivation_setup(
516 psa_key_derivation_operation_t *arg0_operation,
517 psa_algorithm_t arg1_alg);
518#define psa_key_derivation_setup(arg0_operation, arg1_alg) \
519 mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg)
520
521psa_status_t mbedtls_test_wrap_psa_mac_abort(
522 psa_mac_operation_t *arg0_operation);
523#define psa_mac_abort(arg0_operation) \
524 mbedtls_test_wrap_psa_mac_abort(arg0_operation)
525
526psa_status_t mbedtls_test_wrap_psa_mac_compute(
527 mbedtls_svc_key_id_t arg0_key,
528 psa_algorithm_t arg1_alg,
529 const uint8_t *arg2_input,
530 size_t arg3_input_length,
531 uint8_t *arg4_mac,
532 size_t arg5_mac_size,
533 size_t *arg6_mac_length);
534#define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \
535 mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length)
536
537psa_status_t mbedtls_test_wrap_psa_mac_sign_finish(
538 psa_mac_operation_t *arg0_operation,
539 uint8_t *arg1_mac,
540 size_t arg2_mac_size,
541 size_t *arg3_mac_length);
542#define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \
543 mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length)
544
545psa_status_t mbedtls_test_wrap_psa_mac_sign_setup(
546 psa_mac_operation_t *arg0_operation,
547 mbedtls_svc_key_id_t arg1_key,
548 psa_algorithm_t arg2_alg);
549#define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \
550 mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg)
551
552psa_status_t mbedtls_test_wrap_psa_mac_update(
553 psa_mac_operation_t *arg0_operation,
554 const uint8_t *arg1_input,
555 size_t arg2_input_length);
556#define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \
557 mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length)
558
559psa_status_t mbedtls_test_wrap_psa_mac_verify(
560 mbedtls_svc_key_id_t arg0_key,
561 psa_algorithm_t arg1_alg,
562 const uint8_t *arg2_input,
563 size_t arg3_input_length,
564 const uint8_t *arg4_mac,
565 size_t arg5_mac_length);
566#define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \
567 mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length)
568
569psa_status_t mbedtls_test_wrap_psa_mac_verify_finish(
570 psa_mac_operation_t *arg0_operation,
571 const uint8_t *arg1_mac,
572 size_t arg2_mac_length);
573#define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \
574 mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length)
575
576psa_status_t mbedtls_test_wrap_psa_mac_verify_setup(
577 psa_mac_operation_t *arg0_operation,
578 mbedtls_svc_key_id_t arg1_key,
579 psa_algorithm_t arg2_alg);
580#define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \
581 mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg)
582
Ronald Cron2463ec82024-05-24 10:28:15 +0200583#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100584psa_status_t mbedtls_test_wrap_psa_pake_abort(
585 psa_pake_operation_t *arg0_operation);
586#define psa_pake_abort(arg0_operation) \
587 mbedtls_test_wrap_psa_pake_abort(arg0_operation)
Ronald Cron2463ec82024-05-24 10:28:15 +0200588#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100589
Ronald Cron2463ec82024-05-24 10:28:15 +0200590#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100591psa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key(
592 psa_pake_operation_t *arg0_operation,
593 psa_key_derivation_operation_t *arg1_output);
594#define psa_pake_get_implicit_key(arg0_operation, arg1_output) \
595 mbedtls_test_wrap_psa_pake_get_implicit_key(arg0_operation, arg1_output)
Ronald Cron2463ec82024-05-24 10:28:15 +0200596#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100597
Ronald Cron2463ec82024-05-24 10:28:15 +0200598#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100599psa_status_t mbedtls_test_wrap_psa_pake_input(
600 psa_pake_operation_t *arg0_operation,
601 psa_pake_step_t arg1_step,
602 const uint8_t *arg2_input,
603 size_t arg3_input_length);
604#define psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) \
605 mbedtls_test_wrap_psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length)
Ronald Cron2463ec82024-05-24 10:28:15 +0200606#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100607
Ronald Cron2463ec82024-05-24 10:28:15 +0200608#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100609psa_status_t mbedtls_test_wrap_psa_pake_output(
610 psa_pake_operation_t *arg0_operation,
611 psa_pake_step_t arg1_step,
612 uint8_t *arg2_output,
613 size_t arg3_output_size,
614 size_t *arg4_output_length);
615#define psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) \
616 mbedtls_test_wrap_psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length)
Ronald Cron2463ec82024-05-24 10:28:15 +0200617#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100618
Ronald Cron2463ec82024-05-24 10:28:15 +0200619#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100620psa_status_t mbedtls_test_wrap_psa_pake_set_password_key(
621 psa_pake_operation_t *arg0_operation,
622 mbedtls_svc_key_id_t arg1_password);
623#define psa_pake_set_password_key(arg0_operation, arg1_password) \
624 mbedtls_test_wrap_psa_pake_set_password_key(arg0_operation, arg1_password)
Ronald Cron2463ec82024-05-24 10:28:15 +0200625#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100626
Ronald Cron2463ec82024-05-24 10:28:15 +0200627#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100628psa_status_t mbedtls_test_wrap_psa_pake_set_peer(
629 psa_pake_operation_t *arg0_operation,
630 const uint8_t *arg1_peer_id,
631 size_t arg2_peer_id_len);
632#define psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) \
633 mbedtls_test_wrap_psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len)
Ronald Cron2463ec82024-05-24 10:28:15 +0200634#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100635
Ronald Cron2463ec82024-05-24 10:28:15 +0200636#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100637psa_status_t mbedtls_test_wrap_psa_pake_set_role(
638 psa_pake_operation_t *arg0_operation,
639 psa_pake_role_t arg1_role);
640#define psa_pake_set_role(arg0_operation, arg1_role) \
641 mbedtls_test_wrap_psa_pake_set_role(arg0_operation, arg1_role)
Ronald Cron2463ec82024-05-24 10:28:15 +0200642#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100643
Ronald Cron2463ec82024-05-24 10:28:15 +0200644#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100645psa_status_t mbedtls_test_wrap_psa_pake_set_user(
646 psa_pake_operation_t *arg0_operation,
647 const uint8_t *arg1_user_id,
648 size_t arg2_user_id_len);
649#define psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) \
650 mbedtls_test_wrap_psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len)
Ronald Cron2463ec82024-05-24 10:28:15 +0200651#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100652
Ronald Cron2463ec82024-05-24 10:28:15 +0200653#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100654psa_status_t mbedtls_test_wrap_psa_pake_setup(
655 psa_pake_operation_t *arg0_operation,
656 const psa_pake_cipher_suite_t *arg1_cipher_suite);
657#define psa_pake_setup(arg0_operation, arg1_cipher_suite) \
658 mbedtls_test_wrap_psa_pake_setup(arg0_operation, arg1_cipher_suite)
Ronald Cron2463ec82024-05-24 10:28:15 +0200659#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100660
661psa_status_t mbedtls_test_wrap_psa_purge_key(
662 mbedtls_svc_key_id_t arg0_key);
663#define psa_purge_key(arg0_key) \
664 mbedtls_test_wrap_psa_purge_key(arg0_key)
665
666psa_status_t mbedtls_test_wrap_psa_raw_key_agreement(
667 psa_algorithm_t arg0_alg,
668 mbedtls_svc_key_id_t arg1_private_key,
669 const uint8_t *arg2_peer_key,
670 size_t arg3_peer_key_length,
671 uint8_t *arg4_output,
672 size_t arg5_output_size,
673 size_t *arg6_output_length);
674#define psa_raw_key_agreement(arg0_alg, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_output, arg5_output_size, arg6_output_length) \
675 mbedtls_test_wrap_psa_raw_key_agreement(arg0_alg, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_output, arg5_output_size, arg6_output_length)
676
677psa_status_t mbedtls_test_wrap_psa_sign_hash(
678 mbedtls_svc_key_id_t arg0_key,
679 psa_algorithm_t arg1_alg,
680 const uint8_t *arg2_hash,
681 size_t arg3_hash_length,
682 uint8_t *arg4_signature,
683 size_t arg5_signature_size,
684 size_t *arg6_signature_length);
685#define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
686 mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length)
687
688psa_status_t mbedtls_test_wrap_psa_sign_hash_abort(
689 psa_sign_hash_interruptible_operation_t *arg0_operation);
690#define psa_sign_hash_abort(arg0_operation) \
691 mbedtls_test_wrap_psa_sign_hash_abort(arg0_operation)
692
693psa_status_t mbedtls_test_wrap_psa_sign_hash_complete(
694 psa_sign_hash_interruptible_operation_t *arg0_operation,
695 uint8_t *arg1_signature,
696 size_t arg2_signature_size,
697 size_t *arg3_signature_length);
698#define psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) \
699 mbedtls_test_wrap_psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length)
700
701psa_status_t mbedtls_test_wrap_psa_sign_hash_start(
702 psa_sign_hash_interruptible_operation_t *arg0_operation,
703 mbedtls_svc_key_id_t arg1_key,
704 psa_algorithm_t arg2_alg,
705 const uint8_t *arg3_hash,
706 size_t arg4_hash_length);
707#define psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) \
708 mbedtls_test_wrap_psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length)
709
710psa_status_t mbedtls_test_wrap_psa_sign_message(
711 mbedtls_svc_key_id_t arg0_key,
712 psa_algorithm_t arg1_alg,
713 const uint8_t *arg2_input,
714 size_t arg3_input_length,
715 uint8_t *arg4_signature,
716 size_t arg5_signature_size,
717 size_t *arg6_signature_length);
718#define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
719 mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length)
720
721psa_status_t mbedtls_test_wrap_psa_verify_hash(
722 mbedtls_svc_key_id_t arg0_key,
723 psa_algorithm_t arg1_alg,
724 const uint8_t *arg2_hash,
725 size_t arg3_hash_length,
726 const uint8_t *arg4_signature,
727 size_t arg5_signature_length);
728#define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \
729 mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length)
730
731psa_status_t mbedtls_test_wrap_psa_verify_hash_abort(
732 psa_verify_hash_interruptible_operation_t *arg0_operation);
733#define psa_verify_hash_abort(arg0_operation) \
734 mbedtls_test_wrap_psa_verify_hash_abort(arg0_operation)
735
736psa_status_t mbedtls_test_wrap_psa_verify_hash_complete(
737 psa_verify_hash_interruptible_operation_t *arg0_operation);
738#define psa_verify_hash_complete(arg0_operation) \
739 mbedtls_test_wrap_psa_verify_hash_complete(arg0_operation)
740
741psa_status_t mbedtls_test_wrap_psa_verify_hash_start(
742 psa_verify_hash_interruptible_operation_t *arg0_operation,
743 mbedtls_svc_key_id_t arg1_key,
744 psa_algorithm_t arg2_alg,
745 const uint8_t *arg3_hash,
746 size_t arg4_hash_length,
747 const uint8_t *arg5_signature,
748 size_t arg6_signature_length);
749#define psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) \
750 mbedtls_test_wrap_psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length)
751
752psa_status_t mbedtls_test_wrap_psa_verify_message(
753 mbedtls_svc_key_id_t arg0_key,
754 psa_algorithm_t arg1_alg,
755 const uint8_t *arg2_input,
756 size_t arg3_input_length,
757 const uint8_t *arg4_signature,
758 size_t arg5_signature_length);
759#define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \
760 mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length)
761
Gilles Peskine4411c9c2024-01-04 20:51:38 +0100762#endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) && \
763 !defined(RECORD_PSA_STATUS_COVERAGE_LOG) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100764
765#ifdef __cplusplus
766}
767#endif
768
769#endif /* TEST_PSA_TEST_WRAPPERS_H */
770
771/* End of automatically generated file. */