blob: 50744392e5ca898636a18916491f09496efbf9aa [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 Cron7062d3d2024-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 Cron7062d3d2024-05-24 10:28:15 +0200271#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100272
Ronald Cron7062d3d2024-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 Cron7062d3d2024-05-24 10:28:15 +0200281#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100282
Ronald Cron7062d3d2024-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 Cron7062d3d2024-05-24 10:28:15 +0200289#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100290
Ronald Cron7062d3d2024-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 Cron7062d3d2024-05-24 10:28:15 +0200299#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100300
Ronald Cron7062d3d2024-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 Cron7062d3d2024-05-24 10:28:15 +0200307#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100308
Ronald Cron7062d3d2024-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 Cron7062d3d2024-05-24 10:28:15 +0200317#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100318
Ronald Cron7062d3d2024-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 Cron7062d3d2024-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
Paul Elliottc884b292024-07-19 17:32:42 +0100444psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_abort(
445 psa_key_agreement_iop_t *arg0_operation);
446#define psa_key_agreement_iop_abort(arg0_operation) \
447 mbedtls_test_wrap_psa_key_agreement_iop_abort(arg0_operation)
448
449psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_complete(
450 psa_key_agreement_iop_t *arg0_operation,
451 psa_key_id_t *arg1_key);
452#define psa_key_agreement_iop_complete(arg0_operation, arg1_key) \
453 mbedtls_test_wrap_psa_key_agreement_iop_complete(arg0_operation, arg1_key)
454
455psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_setup(
456 psa_key_agreement_iop_t *arg0_operation,
457 psa_key_id_t arg1_private_key,
458 const uint8_t *arg2_peer_key,
459 size_t arg3_peer_key_length,
460 psa_algorithm_t arg4_alg,
461 const psa_key_attributes_t *arg5_attributes);
462#define psa_key_agreement_iop_setup(arg0_operation, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_alg, arg5_attributes) \
463 mbedtls_test_wrap_psa_key_agreement_iop_setup(arg0_operation, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_alg, arg5_attributes)
464
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100465psa_status_t mbedtls_test_wrap_psa_key_derivation_abort(
466 psa_key_derivation_operation_t *arg0_operation);
467#define psa_key_derivation_abort(arg0_operation) \
468 mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation)
469
470psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity(
471 const psa_key_derivation_operation_t *arg0_operation,
472 size_t *arg1_capacity);
473#define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \
474 mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity)
475
476psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes(
477 psa_key_derivation_operation_t *arg0_operation,
478 psa_key_derivation_step_t arg1_step,
479 const uint8_t *arg2_data,
480 size_t arg3_data_length);
481#define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \
482 mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length)
483
484psa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer(
485 psa_key_derivation_operation_t *arg0_operation,
486 psa_key_derivation_step_t arg1_step,
487 uint64_t arg2_value);
488#define psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) \
489 mbedtls_test_wrap_psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value)
490
491psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key(
492 psa_key_derivation_operation_t *arg0_operation,
493 psa_key_derivation_step_t arg1_step,
494 mbedtls_svc_key_id_t arg2_key);
495#define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \
496 mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key)
497
498psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement(
499 psa_key_derivation_operation_t *arg0_operation,
500 psa_key_derivation_step_t arg1_step,
501 mbedtls_svc_key_id_t arg2_private_key,
502 const uint8_t *arg3_peer_key,
503 size_t arg4_peer_key_length);
504#define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \
505 mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length)
506
507psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes(
508 psa_key_derivation_operation_t *arg0_operation,
509 uint8_t *arg1_output,
510 size_t arg2_output_length);
511#define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \
512 mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length)
513
514psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key(
515 const psa_key_attributes_t *arg0_attributes,
516 psa_key_derivation_operation_t *arg1_operation,
517 mbedtls_svc_key_id_t *arg2_key);
518#define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \
519 mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key)
520
David Horstmann80a5dbd2024-03-12 17:02:48 +0000521psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key_ext(
522 const psa_key_attributes_t *arg0_attributes,
523 psa_key_derivation_operation_t *arg1_operation,
524 const psa_key_production_parameters_t *arg2_params,
525 size_t arg3_params_data_length,
526 mbedtls_svc_key_id_t *arg4_key);
527#define psa_key_derivation_output_key_ext(arg0_attributes, arg1_operation, arg2_params, arg3_params_data_length, arg4_key) \
528 mbedtls_test_wrap_psa_key_derivation_output_key_ext(arg0_attributes, arg1_operation, arg2_params, arg3_params_data_length, arg4_key)
529
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100530psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity(
531 psa_key_derivation_operation_t *arg0_operation,
532 size_t arg1_capacity);
533#define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \
534 mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity)
535
536psa_status_t mbedtls_test_wrap_psa_key_derivation_setup(
537 psa_key_derivation_operation_t *arg0_operation,
538 psa_algorithm_t arg1_alg);
539#define psa_key_derivation_setup(arg0_operation, arg1_alg) \
540 mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg)
541
542psa_status_t mbedtls_test_wrap_psa_mac_abort(
543 psa_mac_operation_t *arg0_operation);
544#define psa_mac_abort(arg0_operation) \
545 mbedtls_test_wrap_psa_mac_abort(arg0_operation)
546
547psa_status_t mbedtls_test_wrap_psa_mac_compute(
548 mbedtls_svc_key_id_t arg0_key,
549 psa_algorithm_t arg1_alg,
550 const uint8_t *arg2_input,
551 size_t arg3_input_length,
552 uint8_t *arg4_mac,
553 size_t arg5_mac_size,
554 size_t *arg6_mac_length);
555#define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \
556 mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length)
557
558psa_status_t mbedtls_test_wrap_psa_mac_sign_finish(
559 psa_mac_operation_t *arg0_operation,
560 uint8_t *arg1_mac,
561 size_t arg2_mac_size,
562 size_t *arg3_mac_length);
563#define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \
564 mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length)
565
566psa_status_t mbedtls_test_wrap_psa_mac_sign_setup(
567 psa_mac_operation_t *arg0_operation,
568 mbedtls_svc_key_id_t arg1_key,
569 psa_algorithm_t arg2_alg);
570#define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \
571 mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg)
572
573psa_status_t mbedtls_test_wrap_psa_mac_update(
574 psa_mac_operation_t *arg0_operation,
575 const uint8_t *arg1_input,
576 size_t arg2_input_length);
577#define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \
578 mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length)
579
580psa_status_t mbedtls_test_wrap_psa_mac_verify(
581 mbedtls_svc_key_id_t arg0_key,
582 psa_algorithm_t arg1_alg,
583 const uint8_t *arg2_input,
584 size_t arg3_input_length,
585 const uint8_t *arg4_mac,
586 size_t arg5_mac_length);
587#define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \
588 mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length)
589
590psa_status_t mbedtls_test_wrap_psa_mac_verify_finish(
591 psa_mac_operation_t *arg0_operation,
592 const uint8_t *arg1_mac,
593 size_t arg2_mac_length);
594#define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \
595 mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length)
596
597psa_status_t mbedtls_test_wrap_psa_mac_verify_setup(
598 psa_mac_operation_t *arg0_operation,
599 mbedtls_svc_key_id_t arg1_key,
600 psa_algorithm_t arg2_alg);
601#define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \
602 mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg)
603
Ronald Cron7062d3d2024-05-24 10:28:15 +0200604#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100605psa_status_t mbedtls_test_wrap_psa_pake_abort(
606 psa_pake_operation_t *arg0_operation);
607#define psa_pake_abort(arg0_operation) \
608 mbedtls_test_wrap_psa_pake_abort(arg0_operation)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200609#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100610
Ronald Cron7062d3d2024-05-24 10:28:15 +0200611#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100612psa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key(
613 psa_pake_operation_t *arg0_operation,
614 psa_key_derivation_operation_t *arg1_output);
615#define psa_pake_get_implicit_key(arg0_operation, arg1_output) \
616 mbedtls_test_wrap_psa_pake_get_implicit_key(arg0_operation, arg1_output)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200617#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100618
Ronald Cron7062d3d2024-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_input(
621 psa_pake_operation_t *arg0_operation,
622 psa_pake_step_t arg1_step,
623 const uint8_t *arg2_input,
624 size_t arg3_input_length);
625#define psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) \
626 mbedtls_test_wrap_psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200627#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100628
Ronald Cron7062d3d2024-05-24 10:28:15 +0200629#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100630psa_status_t mbedtls_test_wrap_psa_pake_output(
631 psa_pake_operation_t *arg0_operation,
632 psa_pake_step_t arg1_step,
633 uint8_t *arg2_output,
634 size_t arg3_output_size,
635 size_t *arg4_output_length);
636#define psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) \
637 mbedtls_test_wrap_psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200638#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100639
Ronald Cron7062d3d2024-05-24 10:28:15 +0200640#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100641psa_status_t mbedtls_test_wrap_psa_pake_set_password_key(
642 psa_pake_operation_t *arg0_operation,
643 mbedtls_svc_key_id_t arg1_password);
644#define psa_pake_set_password_key(arg0_operation, arg1_password) \
645 mbedtls_test_wrap_psa_pake_set_password_key(arg0_operation, arg1_password)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200646#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100647
Ronald Cron7062d3d2024-05-24 10:28:15 +0200648#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100649psa_status_t mbedtls_test_wrap_psa_pake_set_peer(
650 psa_pake_operation_t *arg0_operation,
651 const uint8_t *arg1_peer_id,
652 size_t arg2_peer_id_len);
653#define psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) \
654 mbedtls_test_wrap_psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200655#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100656
Ronald Cron7062d3d2024-05-24 10:28:15 +0200657#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100658psa_status_t mbedtls_test_wrap_psa_pake_set_role(
659 psa_pake_operation_t *arg0_operation,
660 psa_pake_role_t arg1_role);
661#define psa_pake_set_role(arg0_operation, arg1_role) \
662 mbedtls_test_wrap_psa_pake_set_role(arg0_operation, arg1_role)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200663#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100664
Ronald Cron7062d3d2024-05-24 10:28:15 +0200665#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100666psa_status_t mbedtls_test_wrap_psa_pake_set_user(
667 psa_pake_operation_t *arg0_operation,
668 const uint8_t *arg1_user_id,
669 size_t arg2_user_id_len);
670#define psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) \
671 mbedtls_test_wrap_psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200672#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100673
Ronald Cron7062d3d2024-05-24 10:28:15 +0200674#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100675psa_status_t mbedtls_test_wrap_psa_pake_setup(
676 psa_pake_operation_t *arg0_operation,
677 const psa_pake_cipher_suite_t *arg1_cipher_suite);
678#define psa_pake_setup(arg0_operation, arg1_cipher_suite) \
679 mbedtls_test_wrap_psa_pake_setup(arg0_operation, arg1_cipher_suite)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200680#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100681
682psa_status_t mbedtls_test_wrap_psa_purge_key(
683 mbedtls_svc_key_id_t arg0_key);
684#define psa_purge_key(arg0_key) \
685 mbedtls_test_wrap_psa_purge_key(arg0_key)
686
687psa_status_t mbedtls_test_wrap_psa_raw_key_agreement(
688 psa_algorithm_t arg0_alg,
689 mbedtls_svc_key_id_t arg1_private_key,
690 const uint8_t *arg2_peer_key,
691 size_t arg3_peer_key_length,
692 uint8_t *arg4_output,
693 size_t arg5_output_size,
694 size_t *arg6_output_length);
695#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) \
696 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)
697
698psa_status_t mbedtls_test_wrap_psa_sign_hash(
699 mbedtls_svc_key_id_t arg0_key,
700 psa_algorithm_t arg1_alg,
701 const uint8_t *arg2_hash,
702 size_t arg3_hash_length,
703 uint8_t *arg4_signature,
704 size_t arg5_signature_size,
705 size_t *arg6_signature_length);
706#define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
707 mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length)
708
709psa_status_t mbedtls_test_wrap_psa_sign_hash_abort(
710 psa_sign_hash_interruptible_operation_t *arg0_operation);
711#define psa_sign_hash_abort(arg0_operation) \
712 mbedtls_test_wrap_psa_sign_hash_abort(arg0_operation)
713
714psa_status_t mbedtls_test_wrap_psa_sign_hash_complete(
715 psa_sign_hash_interruptible_operation_t *arg0_operation,
716 uint8_t *arg1_signature,
717 size_t arg2_signature_size,
718 size_t *arg3_signature_length);
719#define psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) \
720 mbedtls_test_wrap_psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length)
721
722psa_status_t mbedtls_test_wrap_psa_sign_hash_start(
723 psa_sign_hash_interruptible_operation_t *arg0_operation,
724 mbedtls_svc_key_id_t arg1_key,
725 psa_algorithm_t arg2_alg,
726 const uint8_t *arg3_hash,
727 size_t arg4_hash_length);
728#define psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) \
729 mbedtls_test_wrap_psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length)
730
731psa_status_t mbedtls_test_wrap_psa_sign_message(
732 mbedtls_svc_key_id_t arg0_key,
733 psa_algorithm_t arg1_alg,
734 const uint8_t *arg2_input,
735 size_t arg3_input_length,
736 uint8_t *arg4_signature,
737 size_t arg5_signature_size,
738 size_t *arg6_signature_length);
739#define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
740 mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length)
741
742psa_status_t mbedtls_test_wrap_psa_verify_hash(
743 mbedtls_svc_key_id_t arg0_key,
744 psa_algorithm_t arg1_alg,
745 const uint8_t *arg2_hash,
746 size_t arg3_hash_length,
747 const uint8_t *arg4_signature,
748 size_t arg5_signature_length);
749#define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \
750 mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length)
751
752psa_status_t mbedtls_test_wrap_psa_verify_hash_abort(
753 psa_verify_hash_interruptible_operation_t *arg0_operation);
754#define psa_verify_hash_abort(arg0_operation) \
755 mbedtls_test_wrap_psa_verify_hash_abort(arg0_operation)
756
757psa_status_t mbedtls_test_wrap_psa_verify_hash_complete(
758 psa_verify_hash_interruptible_operation_t *arg0_operation);
759#define psa_verify_hash_complete(arg0_operation) \
760 mbedtls_test_wrap_psa_verify_hash_complete(arg0_operation)
761
762psa_status_t mbedtls_test_wrap_psa_verify_hash_start(
763 psa_verify_hash_interruptible_operation_t *arg0_operation,
764 mbedtls_svc_key_id_t arg1_key,
765 psa_algorithm_t arg2_alg,
766 const uint8_t *arg3_hash,
767 size_t arg4_hash_length,
768 const uint8_t *arg5_signature,
769 size_t arg6_signature_length);
770#define psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) \
771 mbedtls_test_wrap_psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length)
772
773psa_status_t mbedtls_test_wrap_psa_verify_message(
774 mbedtls_svc_key_id_t arg0_key,
775 psa_algorithm_t arg1_alg,
776 const uint8_t *arg2_input,
777 size_t arg3_input_length,
778 const uint8_t *arg4_signature,
779 size_t arg5_signature_length);
780#define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \
781 mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length)
782
Gilles Peskine4411c9c2024-01-04 20:51:38 +0100783#endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) && \
784 !defined(RECORD_PSA_STATUS_COVERAGE_LOG) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100785
786#ifdef __cplusplus
787}
788#endif
789
790#endif /* TEST_PSA_TEST_WRAPPERS_H */
791
792/* End of automatically generated file. */