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