blob: 7ab2bea6b958ef6fed989acd2dcbfc23a45811c5 [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
351psa_status_t mbedtls_test_wrap_psa_generate_key(
352 const psa_key_attributes_t *arg0_attributes,
353 mbedtls_svc_key_id_t *arg1_key);
354#define psa_generate_key(arg0_attributes, arg1_key) \
355 mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key)
356
Gilles Peskineb45af2f2024-06-07 08:29:44 +0200357psa_status_t mbedtls_test_wrap_psa_generate_key_custom(
358 const psa_key_attributes_t *arg0_attributes,
359 const psa_custom_key_parameters_t *arg1_custom,
360 const uint8_t *arg2_custom_data,
361 size_t arg3_custom_data_length,
362 mbedtls_svc_key_id_t *arg4_key);
363#define psa_generate_key_custom(arg0_attributes, arg1_custom, arg2_custom_data, arg3_custom_data_length, arg4_key) \
364 mbedtls_test_wrap_psa_generate_key_custom(arg0_attributes, arg1_custom, arg2_custom_data, arg3_custom_data_length, arg4_key)
365
Paul Elliott2dc5fa32024-07-19 17:32:42 +0100366psa_status_t mbedtls_test_wrap_psa_generate_key_iop_abort(
367 psa_generate_key_iop_t *arg0_operation);
368#define psa_generate_key_iop_abort(arg0_operation) \
369 mbedtls_test_wrap_psa_generate_key_iop_abort(arg0_operation)
370
371psa_status_t mbedtls_test_wrap_psa_generate_key_iop_complete(
372 psa_generate_key_iop_t *arg0_operation,
373 psa_key_id_t *arg1_key);
374#define psa_generate_key_iop_complete(arg0_operation, arg1_key) \
375 mbedtls_test_wrap_psa_generate_key_iop_complete(arg0_operation, arg1_key)
376
377psa_status_t mbedtls_test_wrap_psa_generate_key_iop_setup(
378 psa_generate_key_iop_t *arg0_operation,
379 const psa_key_attributes_t *arg1_attributes);
380#define psa_generate_key_iop_setup(arg0_operation, arg1_attributes) \
381 mbedtls_test_wrap_psa_generate_key_iop_setup(arg0_operation, arg1_attributes)
382
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100383psa_status_t mbedtls_test_wrap_psa_generate_random(
384 uint8_t *arg0_output,
385 size_t arg1_output_size);
386#define psa_generate_random(arg0_output, arg1_output_size) \
387 mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size)
388
389psa_status_t mbedtls_test_wrap_psa_get_key_attributes(
390 mbedtls_svc_key_id_t arg0_key,
391 psa_key_attributes_t *arg1_attributes);
392#define psa_get_key_attributes(arg0_key, arg1_attributes) \
393 mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes)
394
395psa_status_t mbedtls_test_wrap_psa_hash_abort(
396 psa_hash_operation_t *arg0_operation);
397#define psa_hash_abort(arg0_operation) \
398 mbedtls_test_wrap_psa_hash_abort(arg0_operation)
399
400psa_status_t mbedtls_test_wrap_psa_hash_clone(
401 const psa_hash_operation_t *arg0_source_operation,
402 psa_hash_operation_t *arg1_target_operation);
403#define psa_hash_clone(arg0_source_operation, arg1_target_operation) \
404 mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation)
405
406psa_status_t mbedtls_test_wrap_psa_hash_compare(
407 psa_algorithm_t arg0_alg,
408 const uint8_t *arg1_input,
409 size_t arg2_input_length,
410 const uint8_t *arg3_hash,
411 size_t arg4_hash_length);
412#define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \
413 mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length)
414
415psa_status_t mbedtls_test_wrap_psa_hash_compute(
416 psa_algorithm_t arg0_alg,
417 const uint8_t *arg1_input,
418 size_t arg2_input_length,
419 uint8_t *arg3_hash,
420 size_t arg4_hash_size,
421 size_t *arg5_hash_length);
422#define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \
423 mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length)
424
425psa_status_t mbedtls_test_wrap_psa_hash_finish(
426 psa_hash_operation_t *arg0_operation,
427 uint8_t *arg1_hash,
428 size_t arg2_hash_size,
429 size_t *arg3_hash_length);
430#define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \
431 mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length)
432
433psa_status_t mbedtls_test_wrap_psa_hash_setup(
434 psa_hash_operation_t *arg0_operation,
435 psa_algorithm_t arg1_alg);
436#define psa_hash_setup(arg0_operation, arg1_alg) \
437 mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg)
438
439psa_status_t mbedtls_test_wrap_psa_hash_update(
440 psa_hash_operation_t *arg0_operation,
441 const uint8_t *arg1_input,
442 size_t arg2_input_length);
443#define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \
444 mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length)
445
446psa_status_t mbedtls_test_wrap_psa_hash_verify(
447 psa_hash_operation_t *arg0_operation,
448 const uint8_t *arg1_hash,
449 size_t arg2_hash_length);
450#define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \
451 mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length)
452
453psa_status_t mbedtls_test_wrap_psa_import_key(
454 const psa_key_attributes_t *arg0_attributes,
455 const uint8_t *arg1_data,
456 size_t arg2_data_length,
457 mbedtls_svc_key_id_t *arg3_key);
458#define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \
459 mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key)
460
Waleed Elmelegybdf2c982024-08-08 21:09:05 +0100461psa_status_t mbedtls_test_wrap_psa_key_agreement(
462 mbedtls_svc_key_id_t arg0_private_key,
463 const uint8_t *arg1_peer_key,
464 size_t arg2_peer_key_length,
465 psa_algorithm_t arg3_alg,
466 const psa_key_attributes_t *arg4_attributes,
467 mbedtls_svc_key_id_t *arg5_key);
468#define psa_key_agreement(arg0_private_key, arg1_peer_key, arg2_peer_key_length, arg3_alg, arg4_attributes, arg5_key) \
469 mbedtls_test_wrap_psa_key_agreement(arg0_private_key, arg1_peer_key, arg2_peer_key_length, arg3_alg, arg4_attributes, arg5_key)
470
Paul Elliottc884b292024-07-19 17:32:42 +0100471psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_abort(
472 psa_key_agreement_iop_t *arg0_operation);
473#define psa_key_agreement_iop_abort(arg0_operation) \
474 mbedtls_test_wrap_psa_key_agreement_iop_abort(arg0_operation)
475
476psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_complete(
477 psa_key_agreement_iop_t *arg0_operation,
478 psa_key_id_t *arg1_key);
479#define psa_key_agreement_iop_complete(arg0_operation, arg1_key) \
480 mbedtls_test_wrap_psa_key_agreement_iop_complete(arg0_operation, arg1_key)
481
482psa_status_t mbedtls_test_wrap_psa_key_agreement_iop_setup(
483 psa_key_agreement_iop_t *arg0_operation,
484 psa_key_id_t arg1_private_key,
485 const uint8_t *arg2_peer_key,
486 size_t arg3_peer_key_length,
487 psa_algorithm_t arg4_alg,
488 const psa_key_attributes_t *arg5_attributes);
489#define psa_key_agreement_iop_setup(arg0_operation, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_alg, arg5_attributes) \
490 mbedtls_test_wrap_psa_key_agreement_iop_setup(arg0_operation, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_alg, arg5_attributes)
491
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100492psa_status_t mbedtls_test_wrap_psa_key_derivation_abort(
493 psa_key_derivation_operation_t *arg0_operation);
494#define psa_key_derivation_abort(arg0_operation) \
495 mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation)
496
497psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity(
498 const psa_key_derivation_operation_t *arg0_operation,
499 size_t *arg1_capacity);
500#define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \
501 mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity)
502
503psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes(
504 psa_key_derivation_operation_t *arg0_operation,
505 psa_key_derivation_step_t arg1_step,
506 const uint8_t *arg2_data,
507 size_t arg3_data_length);
508#define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \
509 mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length)
510
511psa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer(
512 psa_key_derivation_operation_t *arg0_operation,
513 psa_key_derivation_step_t arg1_step,
514 uint64_t arg2_value);
515#define psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) \
516 mbedtls_test_wrap_psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value)
517
518psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key(
519 psa_key_derivation_operation_t *arg0_operation,
520 psa_key_derivation_step_t arg1_step,
521 mbedtls_svc_key_id_t arg2_key);
522#define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \
523 mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key)
524
525psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement(
526 psa_key_derivation_operation_t *arg0_operation,
527 psa_key_derivation_step_t arg1_step,
528 mbedtls_svc_key_id_t arg2_private_key,
529 const uint8_t *arg3_peer_key,
530 size_t arg4_peer_key_length);
531#define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \
532 mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length)
533
534psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes(
535 psa_key_derivation_operation_t *arg0_operation,
536 uint8_t *arg1_output,
537 size_t arg2_output_length);
538#define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \
539 mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length)
540
541psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key(
542 const psa_key_attributes_t *arg0_attributes,
543 psa_key_derivation_operation_t *arg1_operation,
544 mbedtls_svc_key_id_t *arg2_key);
545#define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \
546 mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key)
547
Gilles Peskineb45af2f2024-06-07 08:29:44 +0200548psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key_custom(
549 const psa_key_attributes_t *arg0_attributes,
550 psa_key_derivation_operation_t *arg1_operation,
551 const psa_custom_key_parameters_t *arg2_custom,
552 const uint8_t *arg3_custom_data,
553 size_t arg4_custom_data_length,
554 mbedtls_svc_key_id_t *arg5_key);
555#define psa_key_derivation_output_key_custom(arg0_attributes, arg1_operation, arg2_custom, arg3_custom_data, arg4_custom_data_length, arg5_key) \
556 mbedtls_test_wrap_psa_key_derivation_output_key_custom(arg0_attributes, arg1_operation, arg2_custom, arg3_custom_data, arg4_custom_data_length, arg5_key)
557
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100558psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity(
559 psa_key_derivation_operation_t *arg0_operation,
560 size_t arg1_capacity);
561#define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \
562 mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity)
563
564psa_status_t mbedtls_test_wrap_psa_key_derivation_setup(
565 psa_key_derivation_operation_t *arg0_operation,
566 psa_algorithm_t arg1_alg);
567#define psa_key_derivation_setup(arg0_operation, arg1_alg) \
568 mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg)
569
570psa_status_t mbedtls_test_wrap_psa_mac_abort(
571 psa_mac_operation_t *arg0_operation);
572#define psa_mac_abort(arg0_operation) \
573 mbedtls_test_wrap_psa_mac_abort(arg0_operation)
574
575psa_status_t mbedtls_test_wrap_psa_mac_compute(
576 mbedtls_svc_key_id_t arg0_key,
577 psa_algorithm_t arg1_alg,
578 const uint8_t *arg2_input,
579 size_t arg3_input_length,
580 uint8_t *arg4_mac,
581 size_t arg5_mac_size,
582 size_t *arg6_mac_length);
583#define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \
584 mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length)
585
586psa_status_t mbedtls_test_wrap_psa_mac_sign_finish(
587 psa_mac_operation_t *arg0_operation,
588 uint8_t *arg1_mac,
589 size_t arg2_mac_size,
590 size_t *arg3_mac_length);
591#define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \
592 mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length)
593
594psa_status_t mbedtls_test_wrap_psa_mac_sign_setup(
595 psa_mac_operation_t *arg0_operation,
596 mbedtls_svc_key_id_t arg1_key,
597 psa_algorithm_t arg2_alg);
598#define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \
599 mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg)
600
601psa_status_t mbedtls_test_wrap_psa_mac_update(
602 psa_mac_operation_t *arg0_operation,
603 const uint8_t *arg1_input,
604 size_t arg2_input_length);
605#define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \
606 mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length)
607
608psa_status_t mbedtls_test_wrap_psa_mac_verify(
609 mbedtls_svc_key_id_t arg0_key,
610 psa_algorithm_t arg1_alg,
611 const uint8_t *arg2_input,
612 size_t arg3_input_length,
613 const uint8_t *arg4_mac,
614 size_t arg5_mac_length);
615#define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \
616 mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length)
617
618psa_status_t mbedtls_test_wrap_psa_mac_verify_finish(
619 psa_mac_operation_t *arg0_operation,
620 const uint8_t *arg1_mac,
621 size_t arg2_mac_length);
622#define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \
623 mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length)
624
625psa_status_t mbedtls_test_wrap_psa_mac_verify_setup(
626 psa_mac_operation_t *arg0_operation,
627 mbedtls_svc_key_id_t arg1_key,
628 psa_algorithm_t arg2_alg);
629#define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \
630 mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg)
631
Ronald Cron7062d3d2024-05-24 10:28:15 +0200632#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100633psa_status_t mbedtls_test_wrap_psa_pake_abort(
634 psa_pake_operation_t *arg0_operation);
635#define psa_pake_abort(arg0_operation) \
636 mbedtls_test_wrap_psa_pake_abort(arg0_operation)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200637#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100638
Ronald Cron7062d3d2024-05-24 10:28:15 +0200639#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100640psa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key(
641 psa_pake_operation_t *arg0_operation,
642 psa_key_derivation_operation_t *arg1_output);
643#define psa_pake_get_implicit_key(arg0_operation, arg1_output) \
644 mbedtls_test_wrap_psa_pake_get_implicit_key(arg0_operation, arg1_output)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200645#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100646
Ronald Cron7062d3d2024-05-24 10:28:15 +0200647#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100648psa_status_t mbedtls_test_wrap_psa_pake_input(
649 psa_pake_operation_t *arg0_operation,
650 psa_pake_step_t arg1_step,
651 const uint8_t *arg2_input,
652 size_t arg3_input_length);
653#define psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) \
654 mbedtls_test_wrap_psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length)
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_output(
659 psa_pake_operation_t *arg0_operation,
660 psa_pake_step_t arg1_step,
661 uint8_t *arg2_output,
662 size_t arg3_output_size,
663 size_t *arg4_output_length);
664#define psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) \
665 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 +0200666#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100667
Ronald Cron7062d3d2024-05-24 10:28:15 +0200668#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100669psa_status_t mbedtls_test_wrap_psa_pake_set_password_key(
670 psa_pake_operation_t *arg0_operation,
671 mbedtls_svc_key_id_t arg1_password);
672#define psa_pake_set_password_key(arg0_operation, arg1_password) \
673 mbedtls_test_wrap_psa_pake_set_password_key(arg0_operation, arg1_password)
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_set_peer(
678 psa_pake_operation_t *arg0_operation,
679 const uint8_t *arg1_peer_id,
680 size_t arg2_peer_id_len);
681#define psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) \
682 mbedtls_test_wrap_psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200683#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100684
Ronald Cron7062d3d2024-05-24 10:28:15 +0200685#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100686psa_status_t mbedtls_test_wrap_psa_pake_set_role(
687 psa_pake_operation_t *arg0_operation,
688 psa_pake_role_t arg1_role);
689#define psa_pake_set_role(arg0_operation, arg1_role) \
690 mbedtls_test_wrap_psa_pake_set_role(arg0_operation, arg1_role)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200691#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100692
Ronald Cron7062d3d2024-05-24 10:28:15 +0200693#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100694psa_status_t mbedtls_test_wrap_psa_pake_set_user(
695 psa_pake_operation_t *arg0_operation,
696 const uint8_t *arg1_user_id,
697 size_t arg2_user_id_len);
698#define psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) \
699 mbedtls_test_wrap_psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200700#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100701
Ronald Cron7062d3d2024-05-24 10:28:15 +0200702#if defined(PSA_WANT_ALG_SOME_PAKE)
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100703psa_status_t mbedtls_test_wrap_psa_pake_setup(
704 psa_pake_operation_t *arg0_operation,
705 const psa_pake_cipher_suite_t *arg1_cipher_suite);
706#define psa_pake_setup(arg0_operation, arg1_cipher_suite) \
707 mbedtls_test_wrap_psa_pake_setup(arg0_operation, arg1_cipher_suite)
Ronald Cron7062d3d2024-05-24 10:28:15 +0200708#endif /* defined(PSA_WANT_ALG_SOME_PAKE) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100709
710psa_status_t mbedtls_test_wrap_psa_purge_key(
711 mbedtls_svc_key_id_t arg0_key);
712#define psa_purge_key(arg0_key) \
713 mbedtls_test_wrap_psa_purge_key(arg0_key)
714
715psa_status_t mbedtls_test_wrap_psa_raw_key_agreement(
716 psa_algorithm_t arg0_alg,
717 mbedtls_svc_key_id_t arg1_private_key,
718 const uint8_t *arg2_peer_key,
719 size_t arg3_peer_key_length,
720 uint8_t *arg4_output,
721 size_t arg5_output_size,
722 size_t *arg6_output_length);
723#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) \
724 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)
725
726psa_status_t mbedtls_test_wrap_psa_sign_hash(
727 mbedtls_svc_key_id_t arg0_key,
728 psa_algorithm_t arg1_alg,
729 const uint8_t *arg2_hash,
730 size_t arg3_hash_length,
731 uint8_t *arg4_signature,
732 size_t arg5_signature_size,
733 size_t *arg6_signature_length);
734#define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
735 mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length)
736
737psa_status_t mbedtls_test_wrap_psa_sign_hash_abort(
738 psa_sign_hash_interruptible_operation_t *arg0_operation);
739#define psa_sign_hash_abort(arg0_operation) \
740 mbedtls_test_wrap_psa_sign_hash_abort(arg0_operation)
741
742psa_status_t mbedtls_test_wrap_psa_sign_hash_complete(
743 psa_sign_hash_interruptible_operation_t *arg0_operation,
744 uint8_t *arg1_signature,
745 size_t arg2_signature_size,
746 size_t *arg3_signature_length);
747#define psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) \
748 mbedtls_test_wrap_psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length)
749
750psa_status_t mbedtls_test_wrap_psa_sign_hash_start(
751 psa_sign_hash_interruptible_operation_t *arg0_operation,
752 mbedtls_svc_key_id_t arg1_key,
753 psa_algorithm_t arg2_alg,
754 const uint8_t *arg3_hash,
755 size_t arg4_hash_length);
756#define psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) \
757 mbedtls_test_wrap_psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length)
758
759psa_status_t mbedtls_test_wrap_psa_sign_message(
760 mbedtls_svc_key_id_t arg0_key,
761 psa_algorithm_t arg1_alg,
762 const uint8_t *arg2_input,
763 size_t arg3_input_length,
764 uint8_t *arg4_signature,
765 size_t arg5_signature_size,
766 size_t *arg6_signature_length);
767#define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
768 mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length)
769
770psa_status_t mbedtls_test_wrap_psa_verify_hash(
771 mbedtls_svc_key_id_t arg0_key,
772 psa_algorithm_t arg1_alg,
773 const uint8_t *arg2_hash,
774 size_t arg3_hash_length,
775 const uint8_t *arg4_signature,
776 size_t arg5_signature_length);
777#define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \
778 mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length)
779
780psa_status_t mbedtls_test_wrap_psa_verify_hash_abort(
781 psa_verify_hash_interruptible_operation_t *arg0_operation);
782#define psa_verify_hash_abort(arg0_operation) \
783 mbedtls_test_wrap_psa_verify_hash_abort(arg0_operation)
784
785psa_status_t mbedtls_test_wrap_psa_verify_hash_complete(
786 psa_verify_hash_interruptible_operation_t *arg0_operation);
787#define psa_verify_hash_complete(arg0_operation) \
788 mbedtls_test_wrap_psa_verify_hash_complete(arg0_operation)
789
790psa_status_t mbedtls_test_wrap_psa_verify_hash_start(
791 psa_verify_hash_interruptible_operation_t *arg0_operation,
792 mbedtls_svc_key_id_t arg1_key,
793 psa_algorithm_t arg2_alg,
794 const uint8_t *arg3_hash,
795 size_t arg4_hash_length,
796 const uint8_t *arg5_signature,
797 size_t arg6_signature_length);
798#define psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) \
799 mbedtls_test_wrap_psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length)
800
801psa_status_t mbedtls_test_wrap_psa_verify_message(
802 mbedtls_svc_key_id_t arg0_key,
803 psa_algorithm_t arg1_alg,
804 const uint8_t *arg2_input,
805 size_t arg3_input_length,
806 const uint8_t *arg4_signature,
807 size_t arg5_signature_length);
808#define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \
809 mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length)
810
Gilles Peskine4411c9c2024-01-04 20:51:38 +0100811#endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) && \
812 !defined(RECORD_PSA_STATUS_COVERAGE_LOG) */
Gilles Peskine6e4332c2024-01-04 16:42:40 +0100813
814#ifdef __cplusplus
815}
816#endif
817
818#endif /* TEST_PSA_TEST_WRAPPERS_H */
819
820/* End of automatically generated file. */