blob: f1f92aadee19992debd7ff781f8f00292da9baf9 [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>
Gilles Peskine90d14d72024-01-04 16:59:28 +010020#include <test/memory.h>
Gilles Peskine6e4332c2024-01-04 16:42:40 +010021#include <test/psa_crypto_helpers.h>
22#include <test/psa_test_wrappers.h>
23
24#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
25psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy(
26 const uint8_t *arg0_seed,
27 size_t arg1_seed_size);
28#define mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size) \
29 mbedtls_test_wrap_mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size)
30#endif /* defined(MBEDTLS_PSA_INJECT_ENTROPY) */
31
32#if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
33psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(
34 mbedtls_svc_key_id_t arg0_key_id,
35 psa_key_lifetime_t *arg1_lifetime,
36 psa_drv_slot_number_t *arg2_slot_number);
37#define mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number) \
38 mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number)
39#endif /* defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) */
40
41#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
42psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key(
43 const psa_key_attributes_t *arg0_attributes);
44#define mbedtls_psa_register_se_key(arg0_attributes) \
45 mbedtls_test_wrap_mbedtls_psa_register_se_key(arg0_attributes)
46#endif /* defined(MBEDTLS_PSA_CRYPTO_SE_C) */
47
48psa_status_t mbedtls_test_wrap_psa_aead_abort(
49 psa_aead_operation_t *arg0_operation);
50#define psa_aead_abort(arg0_operation) \
51 mbedtls_test_wrap_psa_aead_abort(arg0_operation)
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_decrypt_setup(
69 psa_aead_operation_t *arg0_operation,
70 mbedtls_svc_key_id_t arg1_key,
71 psa_algorithm_t arg2_alg);
72#define psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
73 mbedtls_test_wrap_psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
74
75psa_status_t mbedtls_test_wrap_psa_aead_encrypt(
76 mbedtls_svc_key_id_t arg0_key,
77 psa_algorithm_t arg1_alg,
78 const uint8_t *arg2_nonce,
79 size_t arg3_nonce_length,
80 const uint8_t *arg4_additional_data,
81 size_t arg5_additional_data_length,
82 const uint8_t *arg6_plaintext,
83 size_t arg7_plaintext_length,
84 uint8_t *arg8_ciphertext,
85 size_t arg9_ciphertext_size,
86 size_t *arg10_ciphertext_length);
87#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) \
88 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)
89
90psa_status_t mbedtls_test_wrap_psa_aead_encrypt_setup(
91 psa_aead_operation_t *arg0_operation,
92 mbedtls_svc_key_id_t arg1_key,
93 psa_algorithm_t arg2_alg);
94#define psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
95 mbedtls_test_wrap_psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
96
97psa_status_t mbedtls_test_wrap_psa_aead_finish(
98 psa_aead_operation_t *arg0_operation,
99 uint8_t *arg1_ciphertext,
100 size_t arg2_ciphertext_size,
101 size_t *arg3_ciphertext_length,
102 uint8_t *arg4_tag,
103 size_t arg5_tag_size,
104 size_t *arg6_tag_length);
105#define psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length) \
106 mbedtls_test_wrap_psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length)
107
108psa_status_t mbedtls_test_wrap_psa_aead_generate_nonce(
109 psa_aead_operation_t *arg0_operation,
110 uint8_t *arg1_nonce,
111 size_t arg2_nonce_size,
112 size_t *arg3_nonce_length);
113#define psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length) \
114 mbedtls_test_wrap_psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length)
115
116psa_status_t mbedtls_test_wrap_psa_aead_set_lengths(
117 psa_aead_operation_t *arg0_operation,
118 size_t arg1_ad_length,
119 size_t arg2_plaintext_length);
120#define psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length) \
121 mbedtls_test_wrap_psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length)
122
123psa_status_t mbedtls_test_wrap_psa_aead_set_nonce(
124 psa_aead_operation_t *arg0_operation,
125 const uint8_t *arg1_nonce,
126 size_t arg2_nonce_length);
127#define psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length) \
128 mbedtls_test_wrap_psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length)
129
130psa_status_t mbedtls_test_wrap_psa_aead_update(
131 psa_aead_operation_t *arg0_operation,
132 const uint8_t *arg1_input,
133 size_t arg2_input_length,
134 uint8_t *arg3_output,
135 size_t arg4_output_size,
136 size_t *arg5_output_length);
137#define psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
138 mbedtls_test_wrap_psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
139
140psa_status_t mbedtls_test_wrap_psa_aead_update_ad(
141 psa_aead_operation_t *arg0_operation,
142 const uint8_t *arg1_input,
143 size_t arg2_input_length);
144#define psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length) \
145 mbedtls_test_wrap_psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length)
146
147psa_status_t mbedtls_test_wrap_psa_aead_verify(
148 psa_aead_operation_t *arg0_operation,
149 uint8_t *arg1_plaintext,
150 size_t arg2_plaintext_size,
151 size_t *arg3_plaintext_length,
152 const uint8_t *arg4_tag,
153 size_t arg5_tag_length);
154#define psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length) \
155 mbedtls_test_wrap_psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length)
156
157psa_status_t mbedtls_test_wrap_psa_asymmetric_decrypt(
158 mbedtls_svc_key_id_t arg0_key,
159 psa_algorithm_t arg1_alg,
160 const uint8_t *arg2_input,
161 size_t arg3_input_length,
162 const uint8_t *arg4_salt,
163 size_t arg5_salt_length,
164 uint8_t *arg6_output,
165 size_t arg7_output_size,
166 size_t *arg8_output_length);
167#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) \
168 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)
169
170psa_status_t mbedtls_test_wrap_psa_asymmetric_encrypt(
171 mbedtls_svc_key_id_t arg0_key,
172 psa_algorithm_t arg1_alg,
173 const uint8_t *arg2_input,
174 size_t arg3_input_length,
175 const uint8_t *arg4_salt,
176 size_t arg5_salt_length,
177 uint8_t *arg6_output,
178 size_t arg7_output_size,
179 size_t *arg8_output_length);
180#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) \
181 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)
182
183psa_status_t mbedtls_test_wrap_psa_cipher_abort(
184 psa_cipher_operation_t *arg0_operation);
185#define psa_cipher_abort(arg0_operation) \
186 mbedtls_test_wrap_psa_cipher_abort(arg0_operation)
187
188psa_status_t mbedtls_test_wrap_psa_cipher_decrypt(
189 mbedtls_svc_key_id_t arg0_key,
190 psa_algorithm_t arg1_alg,
191 const uint8_t *arg2_input,
192 size_t arg3_input_length,
193 uint8_t *arg4_output,
194 size_t arg5_output_size,
195 size_t *arg6_output_length);
196#define psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
197 mbedtls_test_wrap_psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
198
199psa_status_t mbedtls_test_wrap_psa_cipher_decrypt_setup(
200 psa_cipher_operation_t *arg0_operation,
201 mbedtls_svc_key_id_t arg1_key,
202 psa_algorithm_t arg2_alg);
203#define psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
204 mbedtls_test_wrap_psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
205
206psa_status_t mbedtls_test_wrap_psa_cipher_encrypt(
207 mbedtls_svc_key_id_t arg0_key,
208 psa_algorithm_t arg1_alg,
209 const uint8_t *arg2_input,
210 size_t arg3_input_length,
211 uint8_t *arg4_output,
212 size_t arg5_output_size,
213 size_t *arg6_output_length);
214#define psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
215 mbedtls_test_wrap_psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
216
217psa_status_t mbedtls_test_wrap_psa_cipher_encrypt_setup(
218 psa_cipher_operation_t *arg0_operation,
219 mbedtls_svc_key_id_t arg1_key,
220 psa_algorithm_t arg2_alg);
221#define psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
222 mbedtls_test_wrap_psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
223
224psa_status_t mbedtls_test_wrap_psa_cipher_finish(
225 psa_cipher_operation_t *arg0_operation,
226 uint8_t *arg1_output,
227 size_t arg2_output_size,
228 size_t *arg3_output_length);
229#define psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length) \
230 mbedtls_test_wrap_psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length)
231
232psa_status_t mbedtls_test_wrap_psa_cipher_generate_iv(
233 psa_cipher_operation_t *arg0_operation,
234 uint8_t *arg1_iv,
235 size_t arg2_iv_size,
236 size_t *arg3_iv_length);
237#define psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length) \
238 mbedtls_test_wrap_psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length)
239
240psa_status_t mbedtls_test_wrap_psa_cipher_set_iv(
241 psa_cipher_operation_t *arg0_operation,
242 const uint8_t *arg1_iv,
243 size_t arg2_iv_length);
244#define psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length) \
245 mbedtls_test_wrap_psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length)
246
247psa_status_t mbedtls_test_wrap_psa_cipher_update(
248 psa_cipher_operation_t *arg0_operation,
249 const uint8_t *arg1_input,
250 size_t arg2_input_length,
251 uint8_t *arg3_output,
252 size_t arg4_output_size,
253 size_t *arg5_output_length);
254#define psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
255 mbedtls_test_wrap_psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
256
257psa_status_t mbedtls_test_wrap_psa_copy_key(
258 mbedtls_svc_key_id_t arg0_source_key,
259 const psa_key_attributes_t *arg1_attributes,
260 mbedtls_svc_key_id_t *arg2_target_key);
261#define psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key) \
262 mbedtls_test_wrap_psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key)
263
Ronald Cron7062d3d2024-05-24 10:28:15 +0200264#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100265psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(
266 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
267 psa_pake_cipher_suite_t *arg1_cipher_suite);
268#define psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite) \
269 mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200270#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100271
Ronald Cron7062d3d2024-05-24 10:28:15 +0200272#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100273psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password(
274 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
275 uint8_t *arg1_buffer,
276 size_t arg2_buffer_size,
277 size_t *arg3_buffer_length);
278#define psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length) \
279 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 +0200280#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100281
Ronald Cron7062d3d2024-05-24 10:28:15 +0200282#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100283psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(
284 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
285 size_t *arg1_password_len);
286#define psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len) \
287 mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200288#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100289
Ronald Cron7062d3d2024-05-24 10:28:15 +0200290#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100291psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(
292 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
293 uint8_t *arg1_peer_id,
294 size_t arg2_peer_id_size,
295 size_t *arg3_peer_id_length);
296#define psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length) \
297 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 +0200298#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100299
Ronald Cron7062d3d2024-05-24 10:28:15 +0200300#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100301psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(
302 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
303 size_t *arg1_peer_len);
304#define psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len) \
305 mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200306#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100307
Ronald Cron7062d3d2024-05-24 10:28:15 +0200308#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100309psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user(
310 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
311 uint8_t *arg1_user_id,
312 size_t arg2_user_id_size,
313 size_t *arg3_user_id_len);
314#define psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len) \
315 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 +0200316#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100317
Ronald Cron7062d3d2024-05-24 10:28:15 +0200318#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100319psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(
320 const psa_crypto_driver_pake_inputs_t *arg0_inputs,
321 size_t *arg1_user_len);
322#define psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len) \
323 mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200324#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100325
326psa_status_t mbedtls_test_wrap_psa_crypto_init(void);
327#define psa_crypto_init() \
328 mbedtls_test_wrap_psa_crypto_init()
329
330psa_status_t mbedtls_test_wrap_psa_destroy_key(
331 mbedtls_svc_key_id_t arg0_key);
332#define psa_destroy_key(arg0_key) \
333 mbedtls_test_wrap_psa_destroy_key(arg0_key)
334
335psa_status_t mbedtls_test_wrap_psa_export_key(
336 mbedtls_svc_key_id_t arg0_key,
337 uint8_t *arg1_data,
338 size_t arg2_data_size,
339 size_t *arg3_data_length);
340#define psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
341 mbedtls_test_wrap_psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
342
343psa_status_t mbedtls_test_wrap_psa_export_public_key(
344 mbedtls_svc_key_id_t arg0_key,
345 uint8_t *arg1_data,
346 size_t arg2_data_size,
347 size_t *arg3_data_length);
348#define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
349 mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
350
Waleed Elmelegyfad77f12024-11-15 17:27:36 +0000351psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_abort(
352 psa_export_public_key_iop_t *arg0_operation);
353#define psa_export_public_key_iop_abort(arg0_operation) \
354 mbedtls_test_wrap_psa_export_public_key_iop_abort(arg0_operation)
355
356psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_complete(
357 psa_export_public_key_iop_t *arg0_operation,
358 uint8_t *arg1_data,
359 size_t arg2_data_size,
360 size_t *arg3_data_length);
361#define psa_export_public_key_iop_complete(arg0_operation, arg1_data, arg2_data_size, arg3_data_length) \
362 mbedtls_test_wrap_psa_export_public_key_iop_complete(arg0_operation, arg1_data, arg2_data_size, arg3_data_length)
363
364psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_setup(
365 psa_export_public_key_iop_t *arg0_operation,
366 psa_key_id_t arg1_key);
367#define psa_export_public_key_iop_setup(arg0_operation, arg1_key) \
368 mbedtls_test_wrap_psa_export_public_key_iop_setup(arg0_operation, arg1_key)
369
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100370psa_status_t mbedtls_test_wrap_psa_generate_key(
371 const psa_key_attributes_t *arg0_attributes,
372 mbedtls_svc_key_id_t *arg1_key);
373#define psa_generate_key(arg0_attributes, arg1_key) \
374 mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key)
375
Gilles Peskineb45af2f2024-06-07 08:29:44 +0200376psa_status_t mbedtls_test_wrap_psa_generate_key_custom(
377 const psa_key_attributes_t *arg0_attributes,
378 const psa_custom_key_parameters_t *arg1_custom,
379 const uint8_t *arg2_custom_data,
380 size_t arg3_custom_data_length,
381 mbedtls_svc_key_id_t *arg4_key);
382#define psa_generate_key_custom(arg0_attributes, arg1_custom, arg2_custom_data, arg3_custom_data_length, arg4_key) \
383 mbedtls_test_wrap_psa_generate_key_custom(arg0_attributes, arg1_custom, arg2_custom_data, arg3_custom_data_length, arg4_key)
384
Paul Elliott2dc5fa32024-07-19 17:32:42 +0100385psa_status_t mbedtls_test_wrap_psa_generate_key_iop_abort(
386 psa_generate_key_iop_t *arg0_operation);
387#define psa_generate_key_iop_abort(arg0_operation) \
388 mbedtls_test_wrap_psa_generate_key_iop_abort(arg0_operation)
389
390psa_status_t mbedtls_test_wrap_psa_generate_key_iop_complete(
391 psa_generate_key_iop_t *arg0_operation,
392 psa_key_id_t *arg1_key);
393#define psa_generate_key_iop_complete(arg0_operation, arg1_key) \
394 mbedtls_test_wrap_psa_generate_key_iop_complete(arg0_operation, arg1_key)
395
396psa_status_t mbedtls_test_wrap_psa_generate_key_iop_setup(
397 psa_generate_key_iop_t *arg0_operation,
398 const psa_key_attributes_t *arg1_attributes);
399#define psa_generate_key_iop_setup(arg0_operation, arg1_attributes) \
400 mbedtls_test_wrap_psa_generate_key_iop_setup(arg0_operation, arg1_attributes)
401
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100402psa_status_t mbedtls_test_wrap_psa_generate_random(
403 uint8_t *arg0_output,
404 size_t arg1_output_size);
405#define psa_generate_random(arg0_output, arg1_output_size) \
406 mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size)
407
408psa_status_t mbedtls_test_wrap_psa_get_key_attributes(
409 mbedtls_svc_key_id_t arg0_key,
410 psa_key_attributes_t *arg1_attributes);
411#define psa_get_key_attributes(arg0_key, arg1_attributes) \
412 mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes)
413
414psa_status_t mbedtls_test_wrap_psa_hash_abort(
415 psa_hash_operation_t *arg0_operation);
416#define psa_hash_abort(arg0_operation) \
417 mbedtls_test_wrap_psa_hash_abort(arg0_operation)
418
419psa_status_t mbedtls_test_wrap_psa_hash_clone(
420 const psa_hash_operation_t *arg0_source_operation,
421 psa_hash_operation_t *arg1_target_operation);
422#define psa_hash_clone(arg0_source_operation, arg1_target_operation) \
423 mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation)
424
425psa_status_t mbedtls_test_wrap_psa_hash_compare(
426 psa_algorithm_t arg0_alg,
427 const uint8_t *arg1_input,
428 size_t arg2_input_length,
429 const uint8_t *arg3_hash,
430 size_t arg4_hash_length);
431#define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \
432 mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length)
433
434psa_status_t mbedtls_test_wrap_psa_hash_compute(
435 psa_algorithm_t arg0_alg,
436 const uint8_t *arg1_input,
437 size_t arg2_input_length,
438 uint8_t *arg3_hash,
439 size_t arg4_hash_size,
440 size_t *arg5_hash_length);
441#define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \
442 mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length)
443
444psa_status_t mbedtls_test_wrap_psa_hash_finish(
445 psa_hash_operation_t *arg0_operation,
446 uint8_t *arg1_hash,
447 size_t arg2_hash_size,
448 size_t *arg3_hash_length);
449#define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \
450 mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length)
451
452psa_status_t mbedtls_test_wrap_psa_hash_setup(
453 psa_hash_operation_t *arg0_operation,
454 psa_algorithm_t arg1_alg);
455#define psa_hash_setup(arg0_operation, arg1_alg) \
456 mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg)
457
458psa_status_t mbedtls_test_wrap_psa_hash_update(
459 psa_hash_operation_t *arg0_operation,
460 const uint8_t *arg1_input,
461 size_t arg2_input_length);
462#define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \
463 mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length)
464
465psa_status_t mbedtls_test_wrap_psa_hash_verify(
466 psa_hash_operation_t *arg0_operation,
467 const uint8_t *arg1_hash,
468 size_t arg2_hash_length);
469#define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \
470 mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length)
471
472psa_status_t mbedtls_test_wrap_psa_import_key(
473 const psa_key_attributes_t *arg0_attributes,
474 const uint8_t *arg1_data,
475 size_t arg2_data_length,
476 mbedtls_svc_key_id_t *arg3_key);
477#define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \
478 mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key)
479
Waleed Elmelegybdf2c982024-08-08 21:09:05 +0100480psa_status_t mbedtls_test_wrap_psa_key_agreement(
481 mbedtls_svc_key_id_t arg0_private_key,
482 const uint8_t *arg1_peer_key,
483 size_t arg2_peer_key_length,
484 psa_algorithm_t arg3_alg,
485 const psa_key_attributes_t *arg4_attributes,
486 mbedtls_svc_key_id_t *arg5_key);
487#define psa_key_agreement(arg0_private_key, arg1_peer_key, arg2_peer_key_length, arg3_alg, arg4_attributes, arg5_key) \
488 mbedtls_test_wrap_psa_key_agreement(arg0_private_key, arg1_peer_key, arg2_peer_key_length, arg3_alg, arg4_attributes, arg5_key)
489
Paul Elliottc884b292024-07-19 17:32:42 +0100490psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_abort(
491 psa_key_agreement_iop_t *arg0_operation);
492#define psa_key_agreement_iop_abort(arg0_operation) \
493 mbedtls_test_wrap_psa_key_agreement_iop_abort(arg0_operation)
494
495psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_complete(
496 psa_key_agreement_iop_t *arg0_operation,
Waleed Elmelegya2891a92024-08-06 10:55:09 +0100497 mbedtls_svc_key_id_t *arg1_key);
Paul Elliottc884b292024-07-19 17:32:42 +0100498#define psa_key_agreement_iop_complete(arg0_operation, arg1_key) \
499 mbedtls_test_wrap_psa_key_agreement_iop_complete(arg0_operation, arg1_key)
500
501psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_setup(
502 psa_key_agreement_iop_t *arg0_operation,
Waleed Elmelegya2891a92024-08-06 10:55:09 +0100503 mbedtls_svc_key_id_t arg1_private_key,
Paul Elliottc884b292024-07-19 17:32:42 +0100504 const uint8_t *arg2_peer_key,
505 size_t arg3_peer_key_length,
506 psa_algorithm_t arg4_alg,
507 const psa_key_attributes_t *arg5_attributes);
508#define psa_key_agreement_iop_setup(arg0_operation, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_alg, arg5_attributes) \
509 mbedtls_test_wrap_psa_key_agreement_iop_setup(arg0_operation, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_alg, arg5_attributes)
510
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100511psa_status_t mbedtls_test_wrap_psa_key_derivation_abort(
512 psa_key_derivation_operation_t *arg0_operation);
513#define psa_key_derivation_abort(arg0_operation) \
514 mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation)
515
516psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity(
517 const psa_key_derivation_operation_t *arg0_operation,
518 size_t *arg1_capacity);
519#define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \
520 mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity)
521
522psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes(
523 psa_key_derivation_operation_t *arg0_operation,
524 psa_key_derivation_step_t arg1_step,
525 const uint8_t *arg2_data,
526 size_t arg3_data_length);
527#define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \
528 mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length)
529
530psa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer(
531 psa_key_derivation_operation_t *arg0_operation,
532 psa_key_derivation_step_t arg1_step,
533 uint64_t arg2_value);
534#define psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) \
535 mbedtls_test_wrap_psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value)
536
537psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key(
538 psa_key_derivation_operation_t *arg0_operation,
539 psa_key_derivation_step_t arg1_step,
540 mbedtls_svc_key_id_t arg2_key);
541#define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \
542 mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key)
543
544psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement(
545 psa_key_derivation_operation_t *arg0_operation,
546 psa_key_derivation_step_t arg1_step,
547 mbedtls_svc_key_id_t arg2_private_key,
548 const uint8_t *arg3_peer_key,
549 size_t arg4_peer_key_length);
550#define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \
551 mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length)
552
553psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes(
554 psa_key_derivation_operation_t *arg0_operation,
555 uint8_t *arg1_output,
556 size_t arg2_output_length);
557#define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \
558 mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length)
559
560psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key(
561 const psa_key_attributes_t *arg0_attributes,
562 psa_key_derivation_operation_t *arg1_operation,
563 mbedtls_svc_key_id_t *arg2_key);
564#define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \
565 mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key)
566
Gilles Peskineb45af2f2024-06-07 08:29:44 +0200567psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key_custom(
568 const psa_key_attributes_t *arg0_attributes,
569 psa_key_derivation_operation_t *arg1_operation,
570 const psa_custom_key_parameters_t *arg2_custom,
571 const uint8_t *arg3_custom_data,
572 size_t arg4_custom_data_length,
573 mbedtls_svc_key_id_t *arg5_key);
574#define psa_key_derivation_output_key_custom(arg0_attributes, arg1_operation, arg2_custom, arg3_custom_data, arg4_custom_data_length, arg5_key) \
575 mbedtls_test_wrap_psa_key_derivation_output_key_custom(arg0_attributes, arg1_operation, arg2_custom, arg3_custom_data, arg4_custom_data_length, arg5_key)
576
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100577psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity(
578 psa_key_derivation_operation_t *arg0_operation,
579 size_t arg1_capacity);
580#define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \
581 mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity)
582
583psa_status_t mbedtls_test_wrap_psa_key_derivation_setup(
584 psa_key_derivation_operation_t *arg0_operation,
585 psa_algorithm_t arg1_alg);
586#define psa_key_derivation_setup(arg0_operation, arg1_alg) \
587 mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg)
588
589psa_status_t mbedtls_test_wrap_psa_mac_abort(
590 psa_mac_operation_t *arg0_operation);
591#define psa_mac_abort(arg0_operation) \
592 mbedtls_test_wrap_psa_mac_abort(arg0_operation)
593
594psa_status_t mbedtls_test_wrap_psa_mac_compute(
595 mbedtls_svc_key_id_t arg0_key,
596 psa_algorithm_t arg1_alg,
597 const uint8_t *arg2_input,
598 size_t arg3_input_length,
599 uint8_t *arg4_mac,
600 size_t arg5_mac_size,
601 size_t *arg6_mac_length);
602#define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \
603 mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length)
604
605psa_status_t mbedtls_test_wrap_psa_mac_sign_finish(
606 psa_mac_operation_t *arg0_operation,
607 uint8_t *arg1_mac,
608 size_t arg2_mac_size,
609 size_t *arg3_mac_length);
610#define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \
611 mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length)
612
613psa_status_t mbedtls_test_wrap_psa_mac_sign_setup(
614 psa_mac_operation_t *arg0_operation,
615 mbedtls_svc_key_id_t arg1_key,
616 psa_algorithm_t arg2_alg);
617#define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \
618 mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg)
619
620psa_status_t mbedtls_test_wrap_psa_mac_update(
621 psa_mac_operation_t *arg0_operation,
622 const uint8_t *arg1_input,
623 size_t arg2_input_length);
624#define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \
625 mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length)
626
627psa_status_t mbedtls_test_wrap_psa_mac_verify(
628 mbedtls_svc_key_id_t arg0_key,
629 psa_algorithm_t arg1_alg,
630 const uint8_t *arg2_input,
631 size_t arg3_input_length,
632 const uint8_t *arg4_mac,
633 size_t arg5_mac_length);
634#define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \
635 mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length)
636
637psa_status_t mbedtls_test_wrap_psa_mac_verify_finish(
638 psa_mac_operation_t *arg0_operation,
639 const uint8_t *arg1_mac,
640 size_t arg2_mac_length);
641#define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \
642 mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length)
643
644psa_status_t mbedtls_test_wrap_psa_mac_verify_setup(
645 psa_mac_operation_t *arg0_operation,
646 mbedtls_svc_key_id_t arg1_key,
647 psa_algorithm_t arg2_alg);
648#define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \
649 mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg)
650
Ronald Cron7062d3d2024-05-24 10:28:15 +0200651#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100652psa_status_t mbedtls_test_wrap_psa_pake_abort(
653 psa_pake_operation_t *arg0_operation);
654#define psa_pake_abort(arg0_operation) \
655 mbedtls_test_wrap_psa_pake_abort(arg0_operation)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200656#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100657
Ronald Cron7062d3d2024-05-24 10:28:15 +0200658#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100659psa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key(
660 psa_pake_operation_t *arg0_operation,
661 psa_key_derivation_operation_t *arg1_output);
662#define psa_pake_get_implicit_key(arg0_operation, arg1_output) \
663 mbedtls_test_wrap_psa_pake_get_implicit_key(arg0_operation, arg1_output)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200664#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100665
Ronald Cron7062d3d2024-05-24 10:28:15 +0200666#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100667psa_status_t mbedtls_test_wrap_psa_pake_input(
668 psa_pake_operation_t *arg0_operation,
669 psa_pake_step_t arg1_step,
670 const uint8_t *arg2_input,
671 size_t arg3_input_length);
672#define psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) \
673 mbedtls_test_wrap_psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200674#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100675
Ronald Cron7062d3d2024-05-24 10:28:15 +0200676#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100677psa_status_t mbedtls_test_wrap_psa_pake_output(
678 psa_pake_operation_t *arg0_operation,
679 psa_pake_step_t arg1_step,
680 uint8_t *arg2_output,
681 size_t arg3_output_size,
682 size_t *arg4_output_length);
683#define psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) \
684 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 +0200685#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100686
Ronald Cron7062d3d2024-05-24 10:28:15 +0200687#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100688psa_status_t mbedtls_test_wrap_psa_pake_set_password_key(
689 psa_pake_operation_t *arg0_operation,
690 mbedtls_svc_key_id_t arg1_password);
691#define psa_pake_set_password_key(arg0_operation, arg1_password) \
692 mbedtls_test_wrap_psa_pake_set_password_key(arg0_operation, arg1_password)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200693#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100694
Ronald Cron7062d3d2024-05-24 10:28:15 +0200695#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100696psa_status_t mbedtls_test_wrap_psa_pake_set_peer(
697 psa_pake_operation_t *arg0_operation,
698 const uint8_t *arg1_peer_id,
699 size_t arg2_peer_id_len);
700#define psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) \
701 mbedtls_test_wrap_psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200702#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100703
Ronald Cron7062d3d2024-05-24 10:28:15 +0200704#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100705psa_status_t mbedtls_test_wrap_psa_pake_set_role(
706 psa_pake_operation_t *arg0_operation,
707 psa_pake_role_t arg1_role);
708#define psa_pake_set_role(arg0_operation, arg1_role) \
709 mbedtls_test_wrap_psa_pake_set_role(arg0_operation, arg1_role)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200710#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100711
Ronald Cron7062d3d2024-05-24 10:28:15 +0200712#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100713psa_status_t mbedtls_test_wrap_psa_pake_set_user(
714 psa_pake_operation_t *arg0_operation,
715 const uint8_t *arg1_user_id,
716 size_t arg2_user_id_len);
717#define psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) \
718 mbedtls_test_wrap_psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200719#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100720
Ronald Cron7062d3d2024-05-24 10:28:15 +0200721#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100722psa_status_t mbedtls_test_wrap_psa_pake_setup(
723 psa_pake_operation_t *arg0_operation,
724 const psa_pake_cipher_suite_t *arg1_cipher_suite);
725#define psa_pake_setup(arg0_operation, arg1_cipher_suite) \
726 mbedtls_test_wrap_psa_pake_setup(arg0_operation, arg1_cipher_suite)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200727#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100728
729psa_status_t mbedtls_test_wrap_psa_purge_key(
730 mbedtls_svc_key_id_t arg0_key);
731#define psa_purge_key(arg0_key) \
732 mbedtls_test_wrap_psa_purge_key(arg0_key)
733
734psa_status_t mbedtls_test_wrap_psa_raw_key_agreement(
735 psa_algorithm_t arg0_alg,
736 mbedtls_svc_key_id_t arg1_private_key,
737 const uint8_t *arg2_peer_key,
738 size_t arg3_peer_key_length,
739 uint8_t *arg4_output,
740 size_t arg5_output_size,
741 size_t *arg6_output_length);
742#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) \
743 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)
744
745psa_status_t mbedtls_test_wrap_psa_sign_hash(
746 mbedtls_svc_key_id_t arg0_key,
747 psa_algorithm_t arg1_alg,
748 const uint8_t *arg2_hash,
749 size_t arg3_hash_length,
750 uint8_t *arg4_signature,
751 size_t arg5_signature_size,
752 size_t *arg6_signature_length);
753#define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
754 mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length)
755
756psa_status_t mbedtls_test_wrap_psa_sign_hash_abort(
757 psa_sign_hash_interruptible_operation_t *arg0_operation);
758#define psa_sign_hash_abort(arg0_operation) \
759 mbedtls_test_wrap_psa_sign_hash_abort(arg0_operation)
760
761psa_status_t mbedtls_test_wrap_psa_sign_hash_complete(
762 psa_sign_hash_interruptible_operation_t *arg0_operation,
763 uint8_t *arg1_signature,
764 size_t arg2_signature_size,
765 size_t *arg3_signature_length);
766#define psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) \
767 mbedtls_test_wrap_psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length)
768
769psa_status_t mbedtls_test_wrap_psa_sign_hash_start(
770 psa_sign_hash_interruptible_operation_t *arg0_operation,
771 mbedtls_svc_key_id_t arg1_key,
772 psa_algorithm_t arg2_alg,
773 const uint8_t *arg3_hash,
774 size_t arg4_hash_length);
775#define psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) \
776 mbedtls_test_wrap_psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length)
777
778psa_status_t mbedtls_test_wrap_psa_sign_message(
779 mbedtls_svc_key_id_t arg0_key,
780 psa_algorithm_t arg1_alg,
781 const uint8_t *arg2_input,
782 size_t arg3_input_length,
783 uint8_t *arg4_signature,
784 size_t arg5_signature_size,
785 size_t *arg6_signature_length);
786#define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
787 mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length)
788
789psa_status_t mbedtls_test_wrap_psa_verify_hash(
790 mbedtls_svc_key_id_t arg0_key,
791 psa_algorithm_t arg1_alg,
792 const uint8_t *arg2_hash,
793 size_t arg3_hash_length,
794 const uint8_t *arg4_signature,
795 size_t arg5_signature_length);
796#define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \
797 mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length)
798
799psa_status_t mbedtls_test_wrap_psa_verify_hash_abort(
800 psa_verify_hash_interruptible_operation_t *arg0_operation);
801#define psa_verify_hash_abort(arg0_operation) \
802 mbedtls_test_wrap_psa_verify_hash_abort(arg0_operation)
803
804psa_status_t mbedtls_test_wrap_psa_verify_hash_complete(
805 psa_verify_hash_interruptible_operation_t *arg0_operation);
806#define psa_verify_hash_complete(arg0_operation) \
807 mbedtls_test_wrap_psa_verify_hash_complete(arg0_operation)
808
809psa_status_t mbedtls_test_wrap_psa_verify_hash_start(
810 psa_verify_hash_interruptible_operation_t *arg0_operation,
811 mbedtls_svc_key_id_t arg1_key,
812 psa_algorithm_t arg2_alg,
813 const uint8_t *arg3_hash,
814 size_t arg4_hash_length,
815 const uint8_t *arg5_signature,
816 size_t arg6_signature_length);
817#define psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) \
818 mbedtls_test_wrap_psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length)
819
820psa_status_t mbedtls_test_wrap_psa_verify_message(
821 mbedtls_svc_key_id_t arg0_key,
822 psa_algorithm_t arg1_alg,
823 const uint8_t *arg2_input,
824 size_t arg3_input_length,
825 const uint8_t *arg4_signature,
826 size_t arg5_signature_length);
827#define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \
828 mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length)
829
Gilles Peskine4411c9c2024-01-04 20:51:38 +0100830#endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) && \
831 !defined(RECORD_PSA_STATUS_COVERAGE_LOG) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100832
833#ifdef __cplusplus
834}
835#endif
836
837#endif /* TEST_PSA_TEST_WRAPPERS_H */
838
839/* End of automatically generated file. */