blob: 18417800cedb781b0853846e538e113e459c984f [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
16#if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS)
17
18#include <psa/crypto.h>
19
20#include <test/psa_crypto_helpers.h>
21#include <test/psa_test_wrappers.h>
22
23#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
24psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy(
25 const uint8_t *arg0_seed,
26 size_t arg1_seed_size);
27#define mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size) \
28 mbedtls_test_wrap_mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size)
29#endif /* defined(MBEDTLS_PSA_INJECT_ENTROPY) */
30
31#if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
32psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(
33 mbedtls_svc_key_id_t arg0_key_id,
34 psa_key_lifetime_t *arg1_lifetime,
35 psa_drv_slot_number_t *arg2_slot_number);
36#define mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number) \
37 mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number)
38#endif /* defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) */
39
40#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
41psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key(
42 const psa_key_attributes_t *arg0_attributes);
43#define mbedtls_psa_register_se_key(arg0_attributes) \
44 mbedtls_test_wrap_mbedtls_psa_register_se_key(arg0_attributes)
45#endif /* defined(MBEDTLS_PSA_CRYPTO_SE_C) */
46
47psa_status_t mbedtls_test_wrap_psa_aead_abort(
48 psa_aead_operation_t *arg0_operation);
49#define psa_aead_abort(arg0_operation) \
50 mbedtls_test_wrap_psa_aead_abort(arg0_operation)
51
52psa_status_t mbedtls_test_wrap_psa_aead_decrypt(
53 mbedtls_svc_key_id_t arg0_key,
54 psa_algorithm_t arg1_alg,
55 const uint8_t *arg2_nonce,
56 size_t arg3_nonce_length,
57 const uint8_t *arg4_additional_data,
58 size_t arg5_additional_data_length,
59 const uint8_t *arg6_ciphertext,
60 size_t arg7_ciphertext_length,
61 uint8_t *arg8_plaintext,
62 size_t arg9_plaintext_size,
63 size_t *arg10_plaintext_length);
64#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) \
65 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)
66
67psa_status_t mbedtls_test_wrap_psa_aead_decrypt_setup(
68 psa_aead_operation_t *arg0_operation,
69 mbedtls_svc_key_id_t arg1_key,
70 psa_algorithm_t arg2_alg);
71#define psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
72 mbedtls_test_wrap_psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
73
74psa_status_t mbedtls_test_wrap_psa_aead_encrypt(
75 mbedtls_svc_key_id_t arg0_key,
76 psa_algorithm_t arg1_alg,
77 const uint8_t *arg2_nonce,
78 size_t arg3_nonce_length,
79 const uint8_t *arg4_additional_data,
80 size_t arg5_additional_data_length,
81 const uint8_t *arg6_plaintext,
82 size_t arg7_plaintext_length,
83 uint8_t *arg8_ciphertext,
84 size_t arg9_ciphertext_size,
85 size_t *arg10_ciphertext_length);
86#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) \
87 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)
88
89psa_status_t mbedtls_test_wrap_psa_aead_encrypt_setup(
90 psa_aead_operation_t *arg0_operation,
91 mbedtls_svc_key_id_t arg1_key,
92 psa_algorithm_t arg2_alg);
93#define psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
94 mbedtls_test_wrap_psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
95
96psa_status_t mbedtls_test_wrap_psa_aead_finish(
97 psa_aead_operation_t *arg0_operation,
98 uint8_t *arg1_ciphertext,
99 size_t arg2_ciphertext_size,
100 size_t *arg3_ciphertext_length,
101 uint8_t *arg4_tag,
102 size_t arg5_tag_size,
103 size_t *arg6_tag_length);
104#define psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length) \
105 mbedtls_test_wrap_psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length)
106
107psa_status_t mbedtls_test_wrap_psa_aead_generate_nonce(
108 psa_aead_operation_t *arg0_operation,
109 uint8_t *arg1_nonce,
110 size_t arg2_nonce_size,
111 size_t *arg3_nonce_length);
112#define psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length) \
113 mbedtls_test_wrap_psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length)
114
115psa_status_t mbedtls_test_wrap_psa_aead_set_lengths(
116 psa_aead_operation_t *arg0_operation,
117 size_t arg1_ad_length,
118 size_t arg2_plaintext_length);
119#define psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length) \
120 mbedtls_test_wrap_psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length)
121
122psa_status_t mbedtls_test_wrap_psa_aead_set_nonce(
123 psa_aead_operation_t *arg0_operation,
124 const uint8_t *arg1_nonce,
125 size_t arg2_nonce_length);
126#define psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length) \
127 mbedtls_test_wrap_psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length)
128
129psa_status_t mbedtls_test_wrap_psa_aead_update(
130 psa_aead_operation_t *arg0_operation,
131 const uint8_t *arg1_input,
132 size_t arg2_input_length,
133 uint8_t *arg3_output,
134 size_t arg4_output_size,
135 size_t *arg5_output_length);
136#define psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
137 mbedtls_test_wrap_psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
138
139psa_status_t mbedtls_test_wrap_psa_aead_update_ad(
140 psa_aead_operation_t *arg0_operation,
141 const uint8_t *arg1_input,
142 size_t arg2_input_length);
143#define psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length) \
144 mbedtls_test_wrap_psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length)
145
146psa_status_t mbedtls_test_wrap_psa_aead_verify(
147 psa_aead_operation_t *arg0_operation,
148 uint8_t *arg1_plaintext,
149 size_t arg2_plaintext_size,
150 size_t *arg3_plaintext_length,
151 const uint8_t *arg4_tag,
152 size_t arg5_tag_length);
153#define psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length) \
154 mbedtls_test_wrap_psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length)
155
156psa_status_t mbedtls_test_wrap_psa_asymmetric_decrypt(
157 mbedtls_svc_key_id_t arg0_key,
158 psa_algorithm_t arg1_alg,
159 const uint8_t *arg2_input,
160 size_t arg3_input_length,
161 const uint8_t *arg4_salt,
162 size_t arg5_salt_length,
163 uint8_t *arg6_output,
164 size_t arg7_output_size,
165 size_t *arg8_output_length);
166#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) \
167 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)
168
169psa_status_t mbedtls_test_wrap_psa_asymmetric_encrypt(
170 mbedtls_svc_key_id_t arg0_key,
171 psa_algorithm_t arg1_alg,
172 const uint8_t *arg2_input,
173 size_t arg3_input_length,
174 const uint8_t *arg4_salt,
175 size_t arg5_salt_length,
176 uint8_t *arg6_output,
177 size_t arg7_output_size,
178 size_t *arg8_output_length);
179#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) \
180 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)
181
182psa_status_t mbedtls_test_wrap_psa_cipher_abort(
183 psa_cipher_operation_t *arg0_operation);
184#define psa_cipher_abort(arg0_operation) \
185 mbedtls_test_wrap_psa_cipher_abort(arg0_operation)
186
187psa_status_t mbedtls_test_wrap_psa_cipher_decrypt(
188 mbedtls_svc_key_id_t arg0_key,
189 psa_algorithm_t arg1_alg,
190 const uint8_t *arg2_input,
191 size_t arg3_input_length,
192 uint8_t *arg4_output,
193 size_t arg5_output_size,
194 size_t *arg6_output_length);
195#define psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
196 mbedtls_test_wrap_psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
197
198psa_status_t mbedtls_test_wrap_psa_cipher_decrypt_setup(
199 psa_cipher_operation_t *arg0_operation,
200 mbedtls_svc_key_id_t arg1_key,
201 psa_algorithm_t arg2_alg);
202#define psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
203 mbedtls_test_wrap_psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
204
205psa_status_t mbedtls_test_wrap_psa_cipher_encrypt(
206 mbedtls_svc_key_id_t arg0_key,
207 psa_algorithm_t arg1_alg,
208 const uint8_t *arg2_input,
209 size_t arg3_input_length,
210 uint8_t *arg4_output,
211 size_t arg5_output_size,
212 size_t *arg6_output_length);
213#define psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
214 mbedtls_test_wrap_psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
215
216psa_status_t mbedtls_test_wrap_psa_cipher_encrypt_setup(
217 psa_cipher_operation_t *arg0_operation,
218 mbedtls_svc_key_id_t arg1_key,
219 psa_algorithm_t arg2_alg);
220#define psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
221 mbedtls_test_wrap_psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
222
223psa_status_t mbedtls_test_wrap_psa_cipher_finish(
224 psa_cipher_operation_t *arg0_operation,
225 uint8_t *arg1_output,
226 size_t arg2_output_size,
227 size_t *arg3_output_length);
228#define psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length) \
229 mbedtls_test_wrap_psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length)
230
231psa_status_t mbedtls_test_wrap_psa_cipher_generate_iv(
232 psa_cipher_operation_t *arg0_operation,
233 uint8_t *arg1_iv,
234 size_t arg2_iv_size,
235 size_t *arg3_iv_length);
236#define psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length) \
237 mbedtls_test_wrap_psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length)
238
239psa_status_t mbedtls_test_wrap_psa_cipher_set_iv(
240 psa_cipher_operation_t *arg0_operation,
241 const uint8_t *arg1_iv,
242 size_t arg2_iv_length);
243#define psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length) \
244 mbedtls_test_wrap_psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length)
245
246psa_status_t mbedtls_test_wrap_psa_cipher_update(
247 psa_cipher_operation_t *arg0_operation,
248 const uint8_t *arg1_input,
249 size_t arg2_input_length,
250 uint8_t *arg3_output,
251 size_t arg4_output_size,
252 size_t *arg5_output_length);
253#define psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
254 mbedtls_test_wrap_psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
255
256psa_status_t mbedtls_test_wrap_psa_copy_key(
257 mbedtls_svc_key_id_t arg0_source_key,
258 const psa_key_attributes_t *arg1_attributes,
259 mbedtls_svc_key_id_t *arg2_target_key);
260#define psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key) \
261 mbedtls_test_wrap_psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key)
262
263psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(
264 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
265 psa_pake_cipher_suite_t *arg1_cipher_suite);
266#define psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite) \
267 mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite)
268
269psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password(
270 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
271 uint8_t *arg1_buffer,
272 size_t arg2_buffer_size,
273 size_t *arg3_buffer_length);
274#define psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length) \
275 mbedtls_test_wrap_psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length)
276
277psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(
278 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
279 size_t *arg1_password_len);
280#define psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len) \
281 mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len)
282
283psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(
284 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
285 uint8_t *arg1_peer_id,
286 size_t arg2_peer_id_size,
287 size_t *arg3_peer_id_length);
288#define psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length) \
289 mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length)
290
291psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(
292 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
293 size_t *arg1_peer_len);
294#define psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len) \
295 mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len)
296
297psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user(
298 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
299 uint8_t *arg1_user_id,
300 size_t arg2_user_id_size,
301 size_t *arg3_user_id_len);
302#define psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len) \
303 mbedtls_test_wrap_psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len)
304
305psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(
306 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
307 size_t *arg1_user_len);
308#define psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len) \
309 mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len)
310
311psa_status_t mbedtls_test_wrap_psa_crypto_init(void);
312#define psa_crypto_init() \
313 mbedtls_test_wrap_psa_crypto_init()
314
315psa_status_t mbedtls_test_wrap_psa_destroy_key(
316 mbedtls_svc_key_id_t arg0_key);
317#define psa_destroy_key(arg0_key) \
318 mbedtls_test_wrap_psa_destroy_key(arg0_key)
319
320psa_status_t mbedtls_test_wrap_psa_export_key(
321 mbedtls_svc_key_id_t arg0_key,
322 uint8_t *arg1_data,
323 size_t arg2_data_size,
324 size_t *arg3_data_length);
325#define psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
326 mbedtls_test_wrap_psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
327
328psa_status_t mbedtls_test_wrap_psa_export_public_key(
329 mbedtls_svc_key_id_t arg0_key,
330 uint8_t *arg1_data,
331 size_t arg2_data_size,
332 size_t *arg3_data_length);
333#define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
334 mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
335
336psa_status_t mbedtls_test_wrap_psa_generate_key(
337 const psa_key_attributes_t *arg0_attributes,
338 mbedtls_svc_key_id_t *arg1_key);
339#define psa_generate_key(arg0_attributes, arg1_key) \
340 mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key)
341
342psa_status_t mbedtls_test_wrap_psa_generate_random(
343 uint8_t *arg0_output,
344 size_t arg1_output_size);
345#define psa_generate_random(arg0_output, arg1_output_size) \
346 mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size)
347
348psa_status_t mbedtls_test_wrap_psa_get_key_attributes(
349 mbedtls_svc_key_id_t arg0_key,
350 psa_key_attributes_t *arg1_attributes);
351#define psa_get_key_attributes(arg0_key, arg1_attributes) \
352 mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes)
353
354psa_status_t mbedtls_test_wrap_psa_hash_abort(
355 psa_hash_operation_t *arg0_operation);
356#define psa_hash_abort(arg0_operation) \
357 mbedtls_test_wrap_psa_hash_abort(arg0_operation)
358
359psa_status_t mbedtls_test_wrap_psa_hash_clone(
360 const psa_hash_operation_t *arg0_source_operation,
361 psa_hash_operation_t *arg1_target_operation);
362#define psa_hash_clone(arg0_source_operation, arg1_target_operation) \
363 mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation)
364
365psa_status_t mbedtls_test_wrap_psa_hash_compare(
366 psa_algorithm_t arg0_alg,
367 const uint8_t *arg1_input,
368 size_t arg2_input_length,
369 const uint8_t *arg3_hash,
370 size_t arg4_hash_length);
371#define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \
372 mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length)
373
374psa_status_t mbedtls_test_wrap_psa_hash_compute(
375 psa_algorithm_t arg0_alg,
376 const uint8_t *arg1_input,
377 size_t arg2_input_length,
378 uint8_t *arg3_hash,
379 size_t arg4_hash_size,
380 size_t *arg5_hash_length);
381#define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \
382 mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length)
383
384psa_status_t mbedtls_test_wrap_psa_hash_finish(
385 psa_hash_operation_t *arg0_operation,
386 uint8_t *arg1_hash,
387 size_t arg2_hash_size,
388 size_t *arg3_hash_length);
389#define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \
390 mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length)
391
392psa_status_t mbedtls_test_wrap_psa_hash_setup(
393 psa_hash_operation_t *arg0_operation,
394 psa_algorithm_t arg1_alg);
395#define psa_hash_setup(arg0_operation, arg1_alg) \
396 mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg)
397
398psa_status_t mbedtls_test_wrap_psa_hash_update(
399 psa_hash_operation_t *arg0_operation,
400 const uint8_t *arg1_input,
401 size_t arg2_input_length);
402#define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \
403 mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length)
404
405psa_status_t mbedtls_test_wrap_psa_hash_verify(
406 psa_hash_operation_t *arg0_operation,
407 const uint8_t *arg1_hash,
408 size_t arg2_hash_length);
409#define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \
410 mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length)
411
412psa_status_t mbedtls_test_wrap_psa_import_key(
413 const psa_key_attributes_t *arg0_attributes,
414 const uint8_t *arg1_data,
415 size_t arg2_data_length,
416 mbedtls_svc_key_id_t *arg3_key);
417#define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \
418 mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key)
419
420psa_status_t mbedtls_test_wrap_psa_key_derivation_abort(
421 psa_key_derivation_operation_t *arg0_operation);
422#define psa_key_derivation_abort(arg0_operation) \
423 mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation)
424
425psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity(
426 const psa_key_derivation_operation_t *arg0_operation,
427 size_t *arg1_capacity);
428#define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \
429 mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity)
430
431psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes(
432 psa_key_derivation_operation_t *arg0_operation,
433 psa_key_derivation_step_t arg1_step,
434 const uint8_t *arg2_data,
435 size_t arg3_data_length);
436#define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \
437 mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length)
438
439psa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer(
440 psa_key_derivation_operation_t *arg0_operation,
441 psa_key_derivation_step_t arg1_step,
442 uint64_t arg2_value);
443#define psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) \
444 mbedtls_test_wrap_psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value)
445
446psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key(
447 psa_key_derivation_operation_t *arg0_operation,
448 psa_key_derivation_step_t arg1_step,
449 mbedtls_svc_key_id_t arg2_key);
450#define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \
451 mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key)
452
453psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement(
454 psa_key_derivation_operation_t *arg0_operation,
455 psa_key_derivation_step_t arg1_step,
456 mbedtls_svc_key_id_t arg2_private_key,
457 const uint8_t *arg3_peer_key,
458 size_t arg4_peer_key_length);
459#define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \
460 mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length)
461
462psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes(
463 psa_key_derivation_operation_t *arg0_operation,
464 uint8_t *arg1_output,
465 size_t arg2_output_length);
466#define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \
467 mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length)
468
469psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key(
470 const psa_key_attributes_t *arg0_attributes,
471 psa_key_derivation_operation_t *arg1_operation,
472 mbedtls_svc_key_id_t *arg2_key);
473#define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \
474 mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key)
475
476psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity(
477 psa_key_derivation_operation_t *arg0_operation,
478 size_t arg1_capacity);
479#define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \
480 mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity)
481
482psa_status_t mbedtls_test_wrap_psa_key_derivation_setup(
483 psa_key_derivation_operation_t *arg0_operation,
484 psa_algorithm_t arg1_alg);
485#define psa_key_derivation_setup(arg0_operation, arg1_alg) \
486 mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg)
487
488psa_status_t mbedtls_test_wrap_psa_mac_abort(
489 psa_mac_operation_t *arg0_operation);
490#define psa_mac_abort(arg0_operation) \
491 mbedtls_test_wrap_psa_mac_abort(arg0_operation)
492
493psa_status_t mbedtls_test_wrap_psa_mac_compute(
494 mbedtls_svc_key_id_t arg0_key,
495 psa_algorithm_t arg1_alg,
496 const uint8_t *arg2_input,
497 size_t arg3_input_length,
498 uint8_t *arg4_mac,
499 size_t arg5_mac_size,
500 size_t *arg6_mac_length);
501#define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \
502 mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length)
503
504psa_status_t mbedtls_test_wrap_psa_mac_sign_finish(
505 psa_mac_operation_t *arg0_operation,
506 uint8_t *arg1_mac,
507 size_t arg2_mac_size,
508 size_t *arg3_mac_length);
509#define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \
510 mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length)
511
512psa_status_t mbedtls_test_wrap_psa_mac_sign_setup(
513 psa_mac_operation_t *arg0_operation,
514 mbedtls_svc_key_id_t arg1_key,
515 psa_algorithm_t arg2_alg);
516#define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \
517 mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg)
518
519psa_status_t mbedtls_test_wrap_psa_mac_update(
520 psa_mac_operation_t *arg0_operation,
521 const uint8_t *arg1_input,
522 size_t arg2_input_length);
523#define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \
524 mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length)
525
526psa_status_t mbedtls_test_wrap_psa_mac_verify(
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 const uint8_t *arg4_mac,
532 size_t arg5_mac_length);
533#define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \
534 mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length)
535
536psa_status_t mbedtls_test_wrap_psa_mac_verify_finish(
537 psa_mac_operation_t *arg0_operation,
538 const uint8_t *arg1_mac,
539 size_t arg2_mac_length);
540#define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \
541 mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length)
542
543psa_status_t mbedtls_test_wrap_psa_mac_verify_setup(
544 psa_mac_operation_t *arg0_operation,
545 mbedtls_svc_key_id_t arg1_key,
546 psa_algorithm_t arg2_alg);
547#define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \
548 mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg)
549
550psa_status_t mbedtls_test_wrap_psa_pake_abort(
551 psa_pake_operation_t *arg0_operation);
552#define psa_pake_abort(arg0_operation) \
553 mbedtls_test_wrap_psa_pake_abort(arg0_operation)
554
555psa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key(
556 psa_pake_operation_t *arg0_operation,
557 psa_key_derivation_operation_t *arg1_output);
558#define psa_pake_get_implicit_key(arg0_operation, arg1_output) \
559 mbedtls_test_wrap_psa_pake_get_implicit_key(arg0_operation, arg1_output)
560
561psa_status_t mbedtls_test_wrap_psa_pake_input(
562 psa_pake_operation_t *arg0_operation,
563 psa_pake_step_t arg1_step,
564 const uint8_t *arg2_input,
565 size_t arg3_input_length);
566#define psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) \
567 mbedtls_test_wrap_psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length)
568
569psa_status_t mbedtls_test_wrap_psa_pake_output(
570 psa_pake_operation_t *arg0_operation,
571 psa_pake_step_t arg1_step,
572 uint8_t *arg2_output,
573 size_t arg3_output_size,
574 size_t *arg4_output_length);
575#define psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) \
576 mbedtls_test_wrap_psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length)
577
578psa_status_t mbedtls_test_wrap_psa_pake_set_password_key(
579 psa_pake_operation_t *arg0_operation,
580 mbedtls_svc_key_id_t arg1_password);
581#define psa_pake_set_password_key(arg0_operation, arg1_password) \
582 mbedtls_test_wrap_psa_pake_set_password_key(arg0_operation, arg1_password)
583
584psa_status_t mbedtls_test_wrap_psa_pake_set_peer(
585 psa_pake_operation_t *arg0_operation,
586 const uint8_t *arg1_peer_id,
587 size_t arg2_peer_id_len);
588#define psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) \
589 mbedtls_test_wrap_psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len)
590
591psa_status_t mbedtls_test_wrap_psa_pake_set_role(
592 psa_pake_operation_t *arg0_operation,
593 psa_pake_role_t arg1_role);
594#define psa_pake_set_role(arg0_operation, arg1_role) \
595 mbedtls_test_wrap_psa_pake_set_role(arg0_operation, arg1_role)
596
597psa_status_t mbedtls_test_wrap_psa_pake_set_user(
598 psa_pake_operation_t *arg0_operation,
599 const uint8_t *arg1_user_id,
600 size_t arg2_user_id_len);
601#define psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) \
602 mbedtls_test_wrap_psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len)
603
604psa_status_t mbedtls_test_wrap_psa_pake_setup(
605 psa_pake_operation_t *arg0_operation,
606 const psa_pake_cipher_suite_t *arg1_cipher_suite);
607#define psa_pake_setup(arg0_operation, arg1_cipher_suite) \
608 mbedtls_test_wrap_psa_pake_setup(arg0_operation, arg1_cipher_suite)
609
610psa_status_t mbedtls_test_wrap_psa_purge_key(
611 mbedtls_svc_key_id_t arg0_key);
612#define psa_purge_key(arg0_key) \
613 mbedtls_test_wrap_psa_purge_key(arg0_key)
614
615psa_status_t mbedtls_test_wrap_psa_raw_key_agreement(
616 psa_algorithm_t arg0_alg,
617 mbedtls_svc_key_id_t arg1_private_key,
618 const uint8_t *arg2_peer_key,
619 size_t arg3_peer_key_length,
620 uint8_t *arg4_output,
621 size_t arg5_output_size,
622 size_t *arg6_output_length);
623#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) \
624 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)
625
626psa_status_t mbedtls_test_wrap_psa_sign_hash(
627 mbedtls_svc_key_id_t arg0_key,
628 psa_algorithm_t arg1_alg,
629 const uint8_t *arg2_hash,
630 size_t arg3_hash_length,
631 uint8_t *arg4_signature,
632 size_t arg5_signature_size,
633 size_t *arg6_signature_length);
634#define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
635 mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length)
636
637psa_status_t mbedtls_test_wrap_psa_sign_hash_abort(
638 psa_sign_hash_interruptible_operation_t *arg0_operation);
639#define psa_sign_hash_abort(arg0_operation) \
640 mbedtls_test_wrap_psa_sign_hash_abort(arg0_operation)
641
642psa_status_t mbedtls_test_wrap_psa_sign_hash_complete(
643 psa_sign_hash_interruptible_operation_t *arg0_operation,
644 uint8_t *arg1_signature,
645 size_t arg2_signature_size,
646 size_t *arg3_signature_length);
647#define psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) \
648 mbedtls_test_wrap_psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length)
649
650psa_status_t mbedtls_test_wrap_psa_sign_hash_start(
651 psa_sign_hash_interruptible_operation_t *arg0_operation,
652 mbedtls_svc_key_id_t arg1_key,
653 psa_algorithm_t arg2_alg,
654 const uint8_t *arg3_hash,
655 size_t arg4_hash_length);
656#define psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) \
657 mbedtls_test_wrap_psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length)
658
659psa_status_t mbedtls_test_wrap_psa_sign_message(
660 mbedtls_svc_key_id_t arg0_key,
661 psa_algorithm_t arg1_alg,
662 const uint8_t *arg2_input,
663 size_t arg3_input_length,
664 uint8_t *arg4_signature,
665 size_t arg5_signature_size,
666 size_t *arg6_signature_length);
667#define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
668 mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length)
669
670psa_status_t mbedtls_test_wrap_psa_verify_hash(
671 mbedtls_svc_key_id_t arg0_key,
672 psa_algorithm_t arg1_alg,
673 const uint8_t *arg2_hash,
674 size_t arg3_hash_length,
675 const uint8_t *arg4_signature,
676 size_t arg5_signature_length);
677#define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \
678 mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length)
679
680psa_status_t mbedtls_test_wrap_psa_verify_hash_abort(
681 psa_verify_hash_interruptible_operation_t *arg0_operation);
682#define psa_verify_hash_abort(arg0_operation) \
683 mbedtls_test_wrap_psa_verify_hash_abort(arg0_operation)
684
685psa_status_t mbedtls_test_wrap_psa_verify_hash_complete(
686 psa_verify_hash_interruptible_operation_t *arg0_operation);
687#define psa_verify_hash_complete(arg0_operation) \
688 mbedtls_test_wrap_psa_verify_hash_complete(arg0_operation)
689
690psa_status_t mbedtls_test_wrap_psa_verify_hash_start(
691 psa_verify_hash_interruptible_operation_t *arg0_operation,
692 mbedtls_svc_key_id_t arg1_key,
693 psa_algorithm_t arg2_alg,
694 const uint8_t *arg3_hash,
695 size_t arg4_hash_length,
696 const uint8_t *arg5_signature,
697 size_t arg6_signature_length);
698#define psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) \
699 mbedtls_test_wrap_psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length)
700
701psa_status_t mbedtls_test_wrap_psa_verify_message(
702 mbedtls_svc_key_id_t arg0_key,
703 psa_algorithm_t arg1_alg,
704 const uint8_t *arg2_input,
705 size_t arg3_input_length,
706 const uint8_t *arg4_signature,
707 size_t arg5_signature_length);
708#define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \
709 mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length)
710
711#endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) */
712
713#ifdef __cplusplus
714}
715#endif
716
717#endif /* TEST_PSA_TEST_WRAPPERS_H */
718
719/* End of automatically generated file. */