blob: c0ffb415b61471a7521436f3d86b19f2df39b27a [file] [log] [blame]
Gilles Peskined5e5e6d2024-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#if !defined(MBEDTLS_CONFIG_FILE)
15#include "mbedtls/config.h"
16#else
17#include MBEDTLS_CONFIG_FILE
18#endif
19
20#if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS)
21
22#include <psa/crypto.h>
23
Gilles Peskine42fa8ea2024-01-04 16:59:28 +010024#include <test/memory.h>
Gilles Peskined5e5e6d2024-01-04 16:42:40 +010025#include <test/psa_crypto_helpers.h>
26#include <test/psa_test_wrappers.h>
27
28#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
29psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy(
30 const uint8_t *arg0_seed,
31 size_t arg1_seed_size);
32#define mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size) \
33 mbedtls_test_wrap_mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size)
34#endif /* defined(MBEDTLS_PSA_INJECT_ENTROPY) */
35
36#if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
37psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(
38 mbedtls_svc_key_id_t arg0_key_id,
39 psa_key_lifetime_t *arg1_lifetime,
40 psa_drv_slot_number_t *arg2_slot_number);
41#define mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number) \
42 mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number)
43#endif /* defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) */
44
45#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
46psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key(
47 const psa_key_attributes_t *arg0_attributes);
48#define mbedtls_psa_register_se_key(arg0_attributes) \
49 mbedtls_test_wrap_mbedtls_psa_register_se_key(arg0_attributes)
50#endif /* defined(MBEDTLS_PSA_CRYPTO_SE_C) */
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_encrypt(
68 mbedtls_svc_key_id_t arg0_key,
69 psa_algorithm_t arg1_alg,
70 const uint8_t *arg2_nonce,
71 size_t arg3_nonce_length,
72 const uint8_t *arg4_additional_data,
73 size_t arg5_additional_data_length,
74 const uint8_t *arg6_plaintext,
75 size_t arg7_plaintext_length,
76 uint8_t *arg8_ciphertext,
77 size_t arg9_ciphertext_size,
78 size_t *arg10_ciphertext_length);
79#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) \
80 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)
81
82psa_status_t mbedtls_test_wrap_psa_asymmetric_decrypt(
83 mbedtls_svc_key_id_t arg0_key,
84 psa_algorithm_t arg1_alg,
85 const uint8_t *arg2_input,
86 size_t arg3_input_length,
87 const uint8_t *arg4_salt,
88 size_t arg5_salt_length,
89 uint8_t *arg6_output,
90 size_t arg7_output_size,
91 size_t *arg8_output_length);
92#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) \
93 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)
94
95psa_status_t mbedtls_test_wrap_psa_asymmetric_encrypt(
96 mbedtls_svc_key_id_t arg0_key,
97 psa_algorithm_t arg1_alg,
98 const uint8_t *arg2_input,
99 size_t arg3_input_length,
100 const uint8_t *arg4_salt,
101 size_t arg5_salt_length,
102 uint8_t *arg6_output,
103 size_t arg7_output_size,
104 size_t *arg8_output_length);
105#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) \
106 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)
107
108psa_status_t mbedtls_test_wrap_psa_cipher_abort(
109 psa_cipher_operation_t *arg0_operation);
110#define psa_cipher_abort(arg0_operation) \
111 mbedtls_test_wrap_psa_cipher_abort(arg0_operation)
112
113psa_status_t mbedtls_test_wrap_psa_cipher_decrypt(
114 mbedtls_svc_key_id_t arg0_key,
115 psa_algorithm_t arg1_alg,
116 const uint8_t *arg2_input,
117 size_t arg3_input_length,
118 uint8_t *arg4_output,
119 size_t arg5_output_size,
120 size_t *arg6_output_length);
121#define psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
122 mbedtls_test_wrap_psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
123
124psa_status_t mbedtls_test_wrap_psa_cipher_decrypt_setup(
125 psa_cipher_operation_t *arg0_operation,
126 mbedtls_svc_key_id_t arg1_key,
127 psa_algorithm_t arg2_alg);
128#define psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
129 mbedtls_test_wrap_psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
130
131psa_status_t mbedtls_test_wrap_psa_cipher_encrypt(
132 mbedtls_svc_key_id_t arg0_key,
133 psa_algorithm_t arg1_alg,
134 const uint8_t *arg2_input,
135 size_t arg3_input_length,
136 uint8_t *arg4_output,
137 size_t arg5_output_size,
138 size_t *arg6_output_length);
139#define psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
140 mbedtls_test_wrap_psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
141
142psa_status_t mbedtls_test_wrap_psa_cipher_encrypt_setup(
143 psa_cipher_operation_t *arg0_operation,
144 mbedtls_svc_key_id_t arg1_key,
145 psa_algorithm_t arg2_alg);
146#define psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
147 mbedtls_test_wrap_psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
148
149psa_status_t mbedtls_test_wrap_psa_cipher_finish(
150 psa_cipher_operation_t *arg0_operation,
151 uint8_t *arg1_output,
152 size_t arg2_output_size,
153 size_t *arg3_output_length);
154#define psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length) \
155 mbedtls_test_wrap_psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length)
156
157psa_status_t mbedtls_test_wrap_psa_cipher_generate_iv(
158 psa_cipher_operation_t *arg0_operation,
159 uint8_t *arg1_iv,
160 size_t arg2_iv_size,
161 size_t *arg3_iv_length);
162#define psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length) \
163 mbedtls_test_wrap_psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length)
164
165psa_status_t mbedtls_test_wrap_psa_cipher_set_iv(
166 psa_cipher_operation_t *arg0_operation,
167 const uint8_t *arg1_iv,
168 size_t arg2_iv_length);
169#define psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length) \
170 mbedtls_test_wrap_psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length)
171
172psa_status_t mbedtls_test_wrap_psa_cipher_update(
173 psa_cipher_operation_t *arg0_operation,
174 const uint8_t *arg1_input,
175 size_t arg2_input_length,
176 uint8_t *arg3_output,
177 size_t arg4_output_size,
178 size_t *arg5_output_length);
179#define psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
180 mbedtls_test_wrap_psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
181
182psa_status_t mbedtls_test_wrap_psa_copy_key(
183 mbedtls_svc_key_id_t arg0_source_key,
184 const psa_key_attributes_t *arg1_attributes,
185 mbedtls_svc_key_id_t *arg2_target_key);
186#define psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key) \
187 mbedtls_test_wrap_psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key)
188
189psa_status_t mbedtls_test_wrap_psa_crypto_init(void);
190#define psa_crypto_init() \
191 mbedtls_test_wrap_psa_crypto_init()
192
193psa_status_t mbedtls_test_wrap_psa_destroy_key(
194 mbedtls_svc_key_id_t arg0_key);
195#define psa_destroy_key(arg0_key) \
196 mbedtls_test_wrap_psa_destroy_key(arg0_key)
197
198psa_status_t mbedtls_test_wrap_psa_export_key(
199 mbedtls_svc_key_id_t arg0_key,
200 uint8_t *arg1_data,
201 size_t arg2_data_size,
202 size_t *arg3_data_length);
203#define psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
204 mbedtls_test_wrap_psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
205
206psa_status_t mbedtls_test_wrap_psa_export_public_key(
207 mbedtls_svc_key_id_t arg0_key,
208 uint8_t *arg1_data,
209 size_t arg2_data_size,
210 size_t *arg3_data_length);
211#define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
212 mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
213
214psa_status_t mbedtls_test_wrap_psa_generate_key(
215 const psa_key_attributes_t *arg0_attributes,
216 mbedtls_svc_key_id_t *arg1_key);
217#define psa_generate_key(arg0_attributes, arg1_key) \
218 mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key)
219
220psa_status_t mbedtls_test_wrap_psa_generate_random(
221 uint8_t *arg0_output,
222 size_t arg1_output_size);
223#define psa_generate_random(arg0_output, arg1_output_size) \
224 mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size)
225
226psa_status_t mbedtls_test_wrap_psa_get_key_attributes(
227 mbedtls_svc_key_id_t arg0_key,
228 psa_key_attributes_t *arg1_attributes);
229#define psa_get_key_attributes(arg0_key, arg1_attributes) \
230 mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes)
231
232psa_status_t mbedtls_test_wrap_psa_hash_abort(
233 psa_hash_operation_t *arg0_operation);
234#define psa_hash_abort(arg0_operation) \
235 mbedtls_test_wrap_psa_hash_abort(arg0_operation)
236
237psa_status_t mbedtls_test_wrap_psa_hash_clone(
238 const psa_hash_operation_t *arg0_source_operation,
239 psa_hash_operation_t *arg1_target_operation);
240#define psa_hash_clone(arg0_source_operation, arg1_target_operation) \
241 mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation)
242
243psa_status_t mbedtls_test_wrap_psa_hash_compare(
244 psa_algorithm_t arg0_alg,
245 const uint8_t *arg1_input,
246 size_t arg2_input_length,
247 const uint8_t *arg3_hash,
248 size_t arg4_hash_length);
249#define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \
250 mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length)
251
252psa_status_t mbedtls_test_wrap_psa_hash_compute(
253 psa_algorithm_t arg0_alg,
254 const uint8_t *arg1_input,
255 size_t arg2_input_length,
256 uint8_t *arg3_hash,
257 size_t arg4_hash_size,
258 size_t *arg5_hash_length);
259#define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \
260 mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length)
261
262psa_status_t mbedtls_test_wrap_psa_hash_finish(
263 psa_hash_operation_t *arg0_operation,
264 uint8_t *arg1_hash,
265 size_t arg2_hash_size,
266 size_t *arg3_hash_length);
267#define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \
268 mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length)
269
270psa_status_t mbedtls_test_wrap_psa_hash_setup(
271 psa_hash_operation_t *arg0_operation,
272 psa_algorithm_t arg1_alg);
273#define psa_hash_setup(arg0_operation, arg1_alg) \
274 mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg)
275
276psa_status_t mbedtls_test_wrap_psa_hash_update(
277 psa_hash_operation_t *arg0_operation,
278 const uint8_t *arg1_input,
279 size_t arg2_input_length);
280#define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \
281 mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length)
282
283psa_status_t mbedtls_test_wrap_psa_hash_verify(
284 psa_hash_operation_t *arg0_operation,
285 const uint8_t *arg1_hash,
286 size_t arg2_hash_length);
287#define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \
288 mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length)
289
290psa_status_t mbedtls_test_wrap_psa_import_key(
291 const psa_key_attributes_t *arg0_attributes,
292 const uint8_t *arg1_data,
293 size_t arg2_data_length,
294 mbedtls_svc_key_id_t *arg3_key);
295#define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \
296 mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key)
297
298psa_status_t mbedtls_test_wrap_psa_key_derivation_abort(
299 psa_key_derivation_operation_t *arg0_operation);
300#define psa_key_derivation_abort(arg0_operation) \
301 mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation)
302
303psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity(
304 const psa_key_derivation_operation_t *arg0_operation,
305 size_t *arg1_capacity);
306#define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \
307 mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity)
308
309psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes(
310 psa_key_derivation_operation_t *arg0_operation,
311 psa_key_derivation_step_t arg1_step,
312 const uint8_t *arg2_data,
313 size_t arg3_data_length);
314#define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \
315 mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length)
316
317psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key(
318 psa_key_derivation_operation_t *arg0_operation,
319 psa_key_derivation_step_t arg1_step,
320 mbedtls_svc_key_id_t arg2_key);
321#define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \
322 mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key)
323
324psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement(
325 psa_key_derivation_operation_t *arg0_operation,
326 psa_key_derivation_step_t arg1_step,
327 mbedtls_svc_key_id_t arg2_private_key,
328 const uint8_t *arg3_peer_key,
329 size_t arg4_peer_key_length);
330#define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \
331 mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length)
332
333psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes(
334 psa_key_derivation_operation_t *arg0_operation,
335 uint8_t *arg1_output,
336 size_t arg2_output_length);
337#define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \
338 mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length)
339
340psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key(
341 const psa_key_attributes_t *arg0_attributes,
342 psa_key_derivation_operation_t *arg1_operation,
343 mbedtls_svc_key_id_t *arg2_key);
344#define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \
345 mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key)
346
347psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity(
348 psa_key_derivation_operation_t *arg0_operation,
349 size_t arg1_capacity);
350#define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \
351 mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity)
352
353psa_status_t mbedtls_test_wrap_psa_key_derivation_setup(
354 psa_key_derivation_operation_t *arg0_operation,
355 psa_algorithm_t arg1_alg);
356#define psa_key_derivation_setup(arg0_operation, arg1_alg) \
357 mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg)
358
359psa_status_t mbedtls_test_wrap_psa_mac_abort(
360 psa_mac_operation_t *arg0_operation);
361#define psa_mac_abort(arg0_operation) \
362 mbedtls_test_wrap_psa_mac_abort(arg0_operation)
363
364psa_status_t mbedtls_test_wrap_psa_mac_compute(
365 mbedtls_svc_key_id_t arg0_key,
366 psa_algorithm_t arg1_alg,
367 const uint8_t *arg2_input,
368 size_t arg3_input_length,
369 uint8_t *arg4_mac,
370 size_t arg5_mac_size,
371 size_t *arg6_mac_length);
372#define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \
373 mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length)
374
375psa_status_t mbedtls_test_wrap_psa_mac_sign_finish(
376 psa_mac_operation_t *arg0_operation,
377 uint8_t *arg1_mac,
378 size_t arg2_mac_size,
379 size_t *arg3_mac_length);
380#define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \
381 mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length)
382
383psa_status_t mbedtls_test_wrap_psa_mac_sign_setup(
384 psa_mac_operation_t *arg0_operation,
385 mbedtls_svc_key_id_t arg1_key,
386 psa_algorithm_t arg2_alg);
387#define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \
388 mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg)
389
390psa_status_t mbedtls_test_wrap_psa_mac_update(
391 psa_mac_operation_t *arg0_operation,
392 const uint8_t *arg1_input,
393 size_t arg2_input_length);
394#define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \
395 mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length)
396
397psa_status_t mbedtls_test_wrap_psa_mac_verify(
398 mbedtls_svc_key_id_t arg0_key,
399 psa_algorithm_t arg1_alg,
400 const uint8_t *arg2_input,
401 size_t arg3_input_length,
402 const uint8_t *arg4_mac,
403 size_t arg5_mac_length);
404#define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \
405 mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length)
406
407psa_status_t mbedtls_test_wrap_psa_mac_verify_finish(
408 psa_mac_operation_t *arg0_operation,
409 const uint8_t *arg1_mac,
410 size_t arg2_mac_length);
411#define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \
412 mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length)
413
414psa_status_t mbedtls_test_wrap_psa_mac_verify_setup(
415 psa_mac_operation_t *arg0_operation,
416 mbedtls_svc_key_id_t arg1_key,
417 psa_algorithm_t arg2_alg);
418#define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \
419 mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg)
420
421psa_status_t mbedtls_test_wrap_psa_purge_key(
422 mbedtls_svc_key_id_t arg0_key);
423#define psa_purge_key(arg0_key) \
424 mbedtls_test_wrap_psa_purge_key(arg0_key)
425
426psa_status_t mbedtls_test_wrap_psa_raw_key_agreement(
427 psa_algorithm_t arg0_alg,
428 mbedtls_svc_key_id_t arg1_private_key,
429 const uint8_t *arg2_peer_key,
430 size_t arg3_peer_key_length,
431 uint8_t *arg4_output,
432 size_t arg5_output_size,
433 size_t *arg6_output_length);
434#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) \
435 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)
436
437psa_status_t mbedtls_test_wrap_psa_sign_hash(
438 mbedtls_svc_key_id_t arg0_key,
439 psa_algorithm_t arg1_alg,
440 const uint8_t *arg2_hash,
441 size_t arg3_hash_length,
442 uint8_t *arg4_signature,
443 size_t arg5_signature_size,
444 size_t *arg6_signature_length);
445#define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
446 mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length)
447
448psa_status_t mbedtls_test_wrap_psa_sign_message(
449 mbedtls_svc_key_id_t arg0_key,
450 psa_algorithm_t arg1_alg,
451 const uint8_t *arg2_input,
452 size_t arg3_input_length,
453 uint8_t *arg4_signature,
454 size_t arg5_signature_size,
455 size_t *arg6_signature_length);
456#define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
457 mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length)
458
459psa_status_t mbedtls_test_wrap_psa_verify_hash(
460 mbedtls_svc_key_id_t arg0_key,
461 psa_algorithm_t arg1_alg,
462 const uint8_t *arg2_hash,
463 size_t arg3_hash_length,
464 const uint8_t *arg4_signature,
465 size_t arg5_signature_length);
466#define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \
467 mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length)
468
469psa_status_t mbedtls_test_wrap_psa_verify_message(
470 mbedtls_svc_key_id_t arg0_key,
471 psa_algorithm_t arg1_alg,
472 const uint8_t *arg2_input,
473 size_t arg3_input_length,
474 const uint8_t *arg4_signature,
475 size_t arg5_signature_length);
476#define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \
477 mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length)
478
479#endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) */
480
481#ifdef __cplusplus
482}
483#endif
484
485#endif /* TEST_PSA_TEST_WRAPPERS_H */
486
487/* End of automatically generated file. */