1a8e1175bSopenharmony_ci/* Automatically generated by generate_psa_wrappers.py, do not edit! */
2a8e1175bSopenharmony_ci
3a8e1175bSopenharmony_ci/* Copyright The Mbed TLS Contributors
4a8e1175bSopenharmony_ci * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5a8e1175bSopenharmony_ci */
6a8e1175bSopenharmony_ci
7a8e1175bSopenharmony_ci#ifndef TEST_PSA_TEST_WRAPPERS_H
8a8e1175bSopenharmony_ci#define TEST_PSA_TEST_WRAPPERS_H
9a8e1175bSopenharmony_ci
10a8e1175bSopenharmony_ci#ifdef __cplusplus
11a8e1175bSopenharmony_ciextern "C" {
12a8e1175bSopenharmony_ci#endif
13a8e1175bSopenharmony_ci
14a8e1175bSopenharmony_ci#include <mbedtls/build_info.h>
15a8e1175bSopenharmony_ci
16a8e1175bSopenharmony_ci#if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) && \
17a8e1175bSopenharmony_ci    !defined(RECORD_PSA_STATUS_COVERAGE_LOG)
18a8e1175bSopenharmony_ci
19a8e1175bSopenharmony_ci#include <psa/crypto.h>
20a8e1175bSopenharmony_ci
21a8e1175bSopenharmony_ci#include <test/memory.h>
22a8e1175bSopenharmony_ci#include <test/psa_crypto_helpers.h>
23a8e1175bSopenharmony_ci#include <test/psa_test_wrappers.h>
24a8e1175bSopenharmony_ci
25a8e1175bSopenharmony_ci#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
26a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy(
27a8e1175bSopenharmony_ci    const uint8_t *arg0_seed,
28a8e1175bSopenharmony_ci    size_t arg1_seed_size);
29a8e1175bSopenharmony_ci#define mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size) \
30a8e1175bSopenharmony_ci    mbedtls_test_wrap_mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size)
31a8e1175bSopenharmony_ci#endif /* defined(MBEDTLS_PSA_INJECT_ENTROPY) */
32a8e1175bSopenharmony_ci
33a8e1175bSopenharmony_ci#if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
34a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(
35a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key_id,
36a8e1175bSopenharmony_ci    psa_key_lifetime_t *arg1_lifetime,
37a8e1175bSopenharmony_ci    psa_drv_slot_number_t *arg2_slot_number);
38a8e1175bSopenharmony_ci#define mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number) \
39a8e1175bSopenharmony_ci    mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number)
40a8e1175bSopenharmony_ci#endif /* defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) */
41a8e1175bSopenharmony_ci
42a8e1175bSopenharmony_ci#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
43a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key(
44a8e1175bSopenharmony_ci    const psa_key_attributes_t *arg0_attributes);
45a8e1175bSopenharmony_ci#define mbedtls_psa_register_se_key(arg0_attributes) \
46a8e1175bSopenharmony_ci    mbedtls_test_wrap_mbedtls_psa_register_se_key(arg0_attributes)
47a8e1175bSopenharmony_ci#endif /* defined(MBEDTLS_PSA_CRYPTO_SE_C) */
48a8e1175bSopenharmony_ci
49a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_abort(
50a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation);
51a8e1175bSopenharmony_ci#define psa_aead_abort(arg0_operation) \
52a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_abort(arg0_operation)
53a8e1175bSopenharmony_ci
54a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_decrypt(
55a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
56a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
57a8e1175bSopenharmony_ci    const uint8_t *arg2_nonce,
58a8e1175bSopenharmony_ci    size_t arg3_nonce_length,
59a8e1175bSopenharmony_ci    const uint8_t *arg4_additional_data,
60a8e1175bSopenharmony_ci    size_t arg5_additional_data_length,
61a8e1175bSopenharmony_ci    const uint8_t *arg6_ciphertext,
62a8e1175bSopenharmony_ci    size_t arg7_ciphertext_length,
63a8e1175bSopenharmony_ci    uint8_t *arg8_plaintext,
64a8e1175bSopenharmony_ci    size_t arg9_plaintext_size,
65a8e1175bSopenharmony_ci    size_t *arg10_plaintext_length);
66a8e1175bSopenharmony_ci#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) \
67a8e1175bSopenharmony_ci    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)
68a8e1175bSopenharmony_ci
69a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_decrypt_setup(
70a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
71a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
72a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg);
73a8e1175bSopenharmony_ci#define psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
74a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
75a8e1175bSopenharmony_ci
76a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_encrypt(
77a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
78a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
79a8e1175bSopenharmony_ci    const uint8_t *arg2_nonce,
80a8e1175bSopenharmony_ci    size_t arg3_nonce_length,
81a8e1175bSopenharmony_ci    const uint8_t *arg4_additional_data,
82a8e1175bSopenharmony_ci    size_t arg5_additional_data_length,
83a8e1175bSopenharmony_ci    const uint8_t *arg6_plaintext,
84a8e1175bSopenharmony_ci    size_t arg7_plaintext_length,
85a8e1175bSopenharmony_ci    uint8_t *arg8_ciphertext,
86a8e1175bSopenharmony_ci    size_t arg9_ciphertext_size,
87a8e1175bSopenharmony_ci    size_t *arg10_ciphertext_length);
88a8e1175bSopenharmony_ci#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) \
89a8e1175bSopenharmony_ci    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)
90a8e1175bSopenharmony_ci
91a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_encrypt_setup(
92a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
93a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
94a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg);
95a8e1175bSopenharmony_ci#define psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
96a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
97a8e1175bSopenharmony_ci
98a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_finish(
99a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
100a8e1175bSopenharmony_ci    uint8_t *arg1_ciphertext,
101a8e1175bSopenharmony_ci    size_t arg2_ciphertext_size,
102a8e1175bSopenharmony_ci    size_t *arg3_ciphertext_length,
103a8e1175bSopenharmony_ci    uint8_t *arg4_tag,
104a8e1175bSopenharmony_ci    size_t arg5_tag_size,
105a8e1175bSopenharmony_ci    size_t *arg6_tag_length);
106a8e1175bSopenharmony_ci#define psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length) \
107a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_finish(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length)
108a8e1175bSopenharmony_ci
109a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_generate_nonce(
110a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
111a8e1175bSopenharmony_ci    uint8_t *arg1_nonce,
112a8e1175bSopenharmony_ci    size_t arg2_nonce_size,
113a8e1175bSopenharmony_ci    size_t *arg3_nonce_length);
114a8e1175bSopenharmony_ci#define psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length) \
115a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_generate_nonce(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length)
116a8e1175bSopenharmony_ci
117a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_set_lengths(
118a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
119a8e1175bSopenharmony_ci    size_t arg1_ad_length,
120a8e1175bSopenharmony_ci    size_t arg2_plaintext_length);
121a8e1175bSopenharmony_ci#define psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length) \
122a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_set_lengths(arg0_operation, arg1_ad_length, arg2_plaintext_length)
123a8e1175bSopenharmony_ci
124a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_set_nonce(
125a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
126a8e1175bSopenharmony_ci    const uint8_t *arg1_nonce,
127a8e1175bSopenharmony_ci    size_t arg2_nonce_length);
128a8e1175bSopenharmony_ci#define psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length) \
129a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_set_nonce(arg0_operation, arg1_nonce, arg2_nonce_length)
130a8e1175bSopenharmony_ci
131a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_update(
132a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
133a8e1175bSopenharmony_ci    const uint8_t *arg1_input,
134a8e1175bSopenharmony_ci    size_t arg2_input_length,
135a8e1175bSopenharmony_ci    uint8_t *arg3_output,
136a8e1175bSopenharmony_ci    size_t arg4_output_size,
137a8e1175bSopenharmony_ci    size_t *arg5_output_length);
138a8e1175bSopenharmony_ci#define psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
139a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
140a8e1175bSopenharmony_ci
141a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_update_ad(
142a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
143a8e1175bSopenharmony_ci    const uint8_t *arg1_input,
144a8e1175bSopenharmony_ci    size_t arg2_input_length);
145a8e1175bSopenharmony_ci#define psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length) \
146a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_update_ad(arg0_operation, arg1_input, arg2_input_length)
147a8e1175bSopenharmony_ci
148a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_aead_verify(
149a8e1175bSopenharmony_ci    psa_aead_operation_t *arg0_operation,
150a8e1175bSopenharmony_ci    uint8_t *arg1_plaintext,
151a8e1175bSopenharmony_ci    size_t arg2_plaintext_size,
152a8e1175bSopenharmony_ci    size_t *arg3_plaintext_length,
153a8e1175bSopenharmony_ci    const uint8_t *arg4_tag,
154a8e1175bSopenharmony_ci    size_t arg5_tag_length);
155a8e1175bSopenharmony_ci#define psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length) \
156a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_aead_verify(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length)
157a8e1175bSopenharmony_ci
158a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_asymmetric_decrypt(
159a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
160a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
161a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
162a8e1175bSopenharmony_ci    size_t arg3_input_length,
163a8e1175bSopenharmony_ci    const uint8_t *arg4_salt,
164a8e1175bSopenharmony_ci    size_t arg5_salt_length,
165a8e1175bSopenharmony_ci    uint8_t *arg6_output,
166a8e1175bSopenharmony_ci    size_t arg7_output_size,
167a8e1175bSopenharmony_ci    size_t *arg8_output_length);
168a8e1175bSopenharmony_ci#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) \
169a8e1175bSopenharmony_ci    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)
170a8e1175bSopenharmony_ci
171a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_asymmetric_encrypt(
172a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
173a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
174a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
175a8e1175bSopenharmony_ci    size_t arg3_input_length,
176a8e1175bSopenharmony_ci    const uint8_t *arg4_salt,
177a8e1175bSopenharmony_ci    size_t arg5_salt_length,
178a8e1175bSopenharmony_ci    uint8_t *arg6_output,
179a8e1175bSopenharmony_ci    size_t arg7_output_size,
180a8e1175bSopenharmony_ci    size_t *arg8_output_length);
181a8e1175bSopenharmony_ci#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) \
182a8e1175bSopenharmony_ci    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)
183a8e1175bSopenharmony_ci
184a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_abort(
185a8e1175bSopenharmony_ci    psa_cipher_operation_t *arg0_operation);
186a8e1175bSopenharmony_ci#define psa_cipher_abort(arg0_operation) \
187a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_abort(arg0_operation)
188a8e1175bSopenharmony_ci
189a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_decrypt(
190a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
191a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
192a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
193a8e1175bSopenharmony_ci    size_t arg3_input_length,
194a8e1175bSopenharmony_ci    uint8_t *arg4_output,
195a8e1175bSopenharmony_ci    size_t arg5_output_size,
196a8e1175bSopenharmony_ci    size_t *arg6_output_length);
197a8e1175bSopenharmony_ci#define psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
198a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
199a8e1175bSopenharmony_ci
200a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_decrypt_setup(
201a8e1175bSopenharmony_ci    psa_cipher_operation_t *arg0_operation,
202a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
203a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg);
204a8e1175bSopenharmony_ci#define psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \
205a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg)
206a8e1175bSopenharmony_ci
207a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_encrypt(
208a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
209a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
210a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
211a8e1175bSopenharmony_ci    size_t arg3_input_length,
212a8e1175bSopenharmony_ci    uint8_t *arg4_output,
213a8e1175bSopenharmony_ci    size_t arg5_output_size,
214a8e1175bSopenharmony_ci    size_t *arg6_output_length);
215a8e1175bSopenharmony_ci#define psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \
216a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length)
217a8e1175bSopenharmony_ci
218a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_encrypt_setup(
219a8e1175bSopenharmony_ci    psa_cipher_operation_t *arg0_operation,
220a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
221a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg);
222a8e1175bSopenharmony_ci#define psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \
223a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg)
224a8e1175bSopenharmony_ci
225a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_finish(
226a8e1175bSopenharmony_ci    psa_cipher_operation_t *arg0_operation,
227a8e1175bSopenharmony_ci    uint8_t *arg1_output,
228a8e1175bSopenharmony_ci    size_t arg2_output_size,
229a8e1175bSopenharmony_ci    size_t *arg3_output_length);
230a8e1175bSopenharmony_ci#define psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length) \
231a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length)
232a8e1175bSopenharmony_ci
233a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_generate_iv(
234a8e1175bSopenharmony_ci    psa_cipher_operation_t *arg0_operation,
235a8e1175bSopenharmony_ci    uint8_t *arg1_iv,
236a8e1175bSopenharmony_ci    size_t arg2_iv_size,
237a8e1175bSopenharmony_ci    size_t *arg3_iv_length);
238a8e1175bSopenharmony_ci#define psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length) \
239a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length)
240a8e1175bSopenharmony_ci
241a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_set_iv(
242a8e1175bSopenharmony_ci    psa_cipher_operation_t *arg0_operation,
243a8e1175bSopenharmony_ci    const uint8_t *arg1_iv,
244a8e1175bSopenharmony_ci    size_t arg2_iv_length);
245a8e1175bSopenharmony_ci#define psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length) \
246a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length)
247a8e1175bSopenharmony_ci
248a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_cipher_update(
249a8e1175bSopenharmony_ci    psa_cipher_operation_t *arg0_operation,
250a8e1175bSopenharmony_ci    const uint8_t *arg1_input,
251a8e1175bSopenharmony_ci    size_t arg2_input_length,
252a8e1175bSopenharmony_ci    uint8_t *arg3_output,
253a8e1175bSopenharmony_ci    size_t arg4_output_size,
254a8e1175bSopenharmony_ci    size_t *arg5_output_length);
255a8e1175bSopenharmony_ci#define psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \
256a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length)
257a8e1175bSopenharmony_ci
258a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_copy_key(
259a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_source_key,
260a8e1175bSopenharmony_ci    const psa_key_attributes_t *arg1_attributes,
261a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t *arg2_target_key);
262a8e1175bSopenharmony_ci#define psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key) \
263a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key)
264a8e1175bSopenharmony_ci
265a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(
266a8e1175bSopenharmony_ci    const psa_crypto_driver_pake_inputs_t *arg0_inputs,
267a8e1175bSopenharmony_ci    psa_pake_cipher_suite_t *arg1_cipher_suite);
268a8e1175bSopenharmony_ci#define psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite) \
269a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite)
270a8e1175bSopenharmony_ci
271a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password(
272a8e1175bSopenharmony_ci    const psa_crypto_driver_pake_inputs_t *arg0_inputs,
273a8e1175bSopenharmony_ci    uint8_t *arg1_buffer,
274a8e1175bSopenharmony_ci    size_t arg2_buffer_size,
275a8e1175bSopenharmony_ci    size_t *arg3_buffer_length);
276a8e1175bSopenharmony_ci#define psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length) \
277a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length)
278a8e1175bSopenharmony_ci
279a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(
280a8e1175bSopenharmony_ci    const psa_crypto_driver_pake_inputs_t *arg0_inputs,
281a8e1175bSopenharmony_ci    size_t *arg1_password_len);
282a8e1175bSopenharmony_ci#define psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len) \
283a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len)
284a8e1175bSopenharmony_ci
285a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(
286a8e1175bSopenharmony_ci    const psa_crypto_driver_pake_inputs_t *arg0_inputs,
287a8e1175bSopenharmony_ci    uint8_t *arg1_peer_id,
288a8e1175bSopenharmony_ci    size_t arg2_peer_id_size,
289a8e1175bSopenharmony_ci    size_t *arg3_peer_id_length);
290a8e1175bSopenharmony_ci#define psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length) \
291a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length)
292a8e1175bSopenharmony_ci
293a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(
294a8e1175bSopenharmony_ci    const psa_crypto_driver_pake_inputs_t *arg0_inputs,
295a8e1175bSopenharmony_ci    size_t *arg1_peer_len);
296a8e1175bSopenharmony_ci#define psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len) \
297a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len)
298a8e1175bSopenharmony_ci
299a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user(
300a8e1175bSopenharmony_ci    const psa_crypto_driver_pake_inputs_t *arg0_inputs,
301a8e1175bSopenharmony_ci    uint8_t *arg1_user_id,
302a8e1175bSopenharmony_ci    size_t arg2_user_id_size,
303a8e1175bSopenharmony_ci    size_t *arg3_user_id_len);
304a8e1175bSopenharmony_ci#define psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len) \
305a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len)
306a8e1175bSopenharmony_ci
307a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(
308a8e1175bSopenharmony_ci    const psa_crypto_driver_pake_inputs_t *arg0_inputs,
309a8e1175bSopenharmony_ci    size_t *arg1_user_len);
310a8e1175bSopenharmony_ci#define psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len) \
311a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len)
312a8e1175bSopenharmony_ci
313a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_crypto_init(void);
314a8e1175bSopenharmony_ci#define psa_crypto_init() \
315a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_crypto_init()
316a8e1175bSopenharmony_ci
317a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_destroy_key(
318a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key);
319a8e1175bSopenharmony_ci#define psa_destroy_key(arg0_key) \
320a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_destroy_key(arg0_key)
321a8e1175bSopenharmony_ci
322a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_export_key(
323a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
324a8e1175bSopenharmony_ci    uint8_t *arg1_data,
325a8e1175bSopenharmony_ci    size_t arg2_data_size,
326a8e1175bSopenharmony_ci    size_t *arg3_data_length);
327a8e1175bSopenharmony_ci#define psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
328a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
329a8e1175bSopenharmony_ci
330a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_export_public_key(
331a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
332a8e1175bSopenharmony_ci    uint8_t *arg1_data,
333a8e1175bSopenharmony_ci    size_t arg2_data_size,
334a8e1175bSopenharmony_ci    size_t *arg3_data_length);
335a8e1175bSopenharmony_ci#define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
336a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
337a8e1175bSopenharmony_ci
338a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_generate_key(
339a8e1175bSopenharmony_ci    const psa_key_attributes_t *arg0_attributes,
340a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t *arg1_key);
341a8e1175bSopenharmony_ci#define psa_generate_key(arg0_attributes, arg1_key) \
342a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key)
343a8e1175bSopenharmony_ci
344a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_generate_key_ext(
345a8e1175bSopenharmony_ci    const psa_key_attributes_t *arg0_attributes,
346a8e1175bSopenharmony_ci    const psa_key_production_parameters_t *arg1_params,
347a8e1175bSopenharmony_ci    size_t arg2_params_data_length,
348a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t *arg3_key);
349a8e1175bSopenharmony_ci#define psa_generate_key_ext(arg0_attributes, arg1_params, arg2_params_data_length, arg3_key) \
350a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_generate_key_ext(arg0_attributes, arg1_params, arg2_params_data_length, arg3_key)
351a8e1175bSopenharmony_ci
352a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_generate_random(
353a8e1175bSopenharmony_ci    uint8_t *arg0_output,
354a8e1175bSopenharmony_ci    size_t arg1_output_size);
355a8e1175bSopenharmony_ci#define psa_generate_random(arg0_output, arg1_output_size) \
356a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size)
357a8e1175bSopenharmony_ci
358a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_get_key_attributes(
359a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
360a8e1175bSopenharmony_ci    psa_key_attributes_t *arg1_attributes);
361a8e1175bSopenharmony_ci#define psa_get_key_attributes(arg0_key, arg1_attributes) \
362a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes)
363a8e1175bSopenharmony_ci
364a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_abort(
365a8e1175bSopenharmony_ci    psa_hash_operation_t *arg0_operation);
366a8e1175bSopenharmony_ci#define psa_hash_abort(arg0_operation) \
367a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_abort(arg0_operation)
368a8e1175bSopenharmony_ci
369a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_clone(
370a8e1175bSopenharmony_ci    const psa_hash_operation_t *arg0_source_operation,
371a8e1175bSopenharmony_ci    psa_hash_operation_t *arg1_target_operation);
372a8e1175bSopenharmony_ci#define psa_hash_clone(arg0_source_operation, arg1_target_operation) \
373a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation)
374a8e1175bSopenharmony_ci
375a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_compare(
376a8e1175bSopenharmony_ci    psa_algorithm_t arg0_alg,
377a8e1175bSopenharmony_ci    const uint8_t *arg1_input,
378a8e1175bSopenharmony_ci    size_t arg2_input_length,
379a8e1175bSopenharmony_ci    const uint8_t *arg3_hash,
380a8e1175bSopenharmony_ci    size_t arg4_hash_length);
381a8e1175bSopenharmony_ci#define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \
382a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length)
383a8e1175bSopenharmony_ci
384a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_compute(
385a8e1175bSopenharmony_ci    psa_algorithm_t arg0_alg,
386a8e1175bSopenharmony_ci    const uint8_t *arg1_input,
387a8e1175bSopenharmony_ci    size_t arg2_input_length,
388a8e1175bSopenharmony_ci    uint8_t *arg3_hash,
389a8e1175bSopenharmony_ci    size_t arg4_hash_size,
390a8e1175bSopenharmony_ci    size_t *arg5_hash_length);
391a8e1175bSopenharmony_ci#define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \
392a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length)
393a8e1175bSopenharmony_ci
394a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_finish(
395a8e1175bSopenharmony_ci    psa_hash_operation_t *arg0_operation,
396a8e1175bSopenharmony_ci    uint8_t *arg1_hash,
397a8e1175bSopenharmony_ci    size_t arg2_hash_size,
398a8e1175bSopenharmony_ci    size_t *arg3_hash_length);
399a8e1175bSopenharmony_ci#define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \
400a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length)
401a8e1175bSopenharmony_ci
402a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_setup(
403a8e1175bSopenharmony_ci    psa_hash_operation_t *arg0_operation,
404a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg);
405a8e1175bSopenharmony_ci#define psa_hash_setup(arg0_operation, arg1_alg) \
406a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg)
407a8e1175bSopenharmony_ci
408a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_update(
409a8e1175bSopenharmony_ci    psa_hash_operation_t *arg0_operation,
410a8e1175bSopenharmony_ci    const uint8_t *arg1_input,
411a8e1175bSopenharmony_ci    size_t arg2_input_length);
412a8e1175bSopenharmony_ci#define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \
413a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length)
414a8e1175bSopenharmony_ci
415a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_hash_verify(
416a8e1175bSopenharmony_ci    psa_hash_operation_t *arg0_operation,
417a8e1175bSopenharmony_ci    const uint8_t *arg1_hash,
418a8e1175bSopenharmony_ci    size_t arg2_hash_length);
419a8e1175bSopenharmony_ci#define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \
420a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length)
421a8e1175bSopenharmony_ci
422a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_import_key(
423a8e1175bSopenharmony_ci    const psa_key_attributes_t *arg0_attributes,
424a8e1175bSopenharmony_ci    const uint8_t *arg1_data,
425a8e1175bSopenharmony_ci    size_t arg2_data_length,
426a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t *arg3_key);
427a8e1175bSopenharmony_ci#define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \
428a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key)
429a8e1175bSopenharmony_ci
430a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_abort(
431a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation);
432a8e1175bSopenharmony_ci#define psa_key_derivation_abort(arg0_operation) \
433a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation)
434a8e1175bSopenharmony_ci
435a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity(
436a8e1175bSopenharmony_ci    const psa_key_derivation_operation_t *arg0_operation,
437a8e1175bSopenharmony_ci    size_t *arg1_capacity);
438a8e1175bSopenharmony_ci#define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \
439a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity)
440a8e1175bSopenharmony_ci
441a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes(
442a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation,
443a8e1175bSopenharmony_ci    psa_key_derivation_step_t arg1_step,
444a8e1175bSopenharmony_ci    const uint8_t *arg2_data,
445a8e1175bSopenharmony_ci    size_t arg3_data_length);
446a8e1175bSopenharmony_ci#define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \
447a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length)
448a8e1175bSopenharmony_ci
449a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer(
450a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation,
451a8e1175bSopenharmony_ci    psa_key_derivation_step_t arg1_step,
452a8e1175bSopenharmony_ci    uint64_t arg2_value);
453a8e1175bSopenharmony_ci#define psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) \
454a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value)
455a8e1175bSopenharmony_ci
456a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_input_key(
457a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation,
458a8e1175bSopenharmony_ci    psa_key_derivation_step_t arg1_step,
459a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg2_key);
460a8e1175bSopenharmony_ci#define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \
461a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key)
462a8e1175bSopenharmony_ci
463a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement(
464a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation,
465a8e1175bSopenharmony_ci    psa_key_derivation_step_t arg1_step,
466a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg2_private_key,
467a8e1175bSopenharmony_ci    const uint8_t *arg3_peer_key,
468a8e1175bSopenharmony_ci    size_t arg4_peer_key_length);
469a8e1175bSopenharmony_ci#define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \
470a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length)
471a8e1175bSopenharmony_ci
472a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes(
473a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation,
474a8e1175bSopenharmony_ci    uint8_t *arg1_output,
475a8e1175bSopenharmony_ci    size_t arg2_output_length);
476a8e1175bSopenharmony_ci#define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \
477a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length)
478a8e1175bSopenharmony_ci
479a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_output_key(
480a8e1175bSopenharmony_ci    const psa_key_attributes_t *arg0_attributes,
481a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg1_operation,
482a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t *arg2_key);
483a8e1175bSopenharmony_ci#define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \
484a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key)
485a8e1175bSopenharmony_ci
486a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_output_key_ext(
487a8e1175bSopenharmony_ci    const psa_key_attributes_t *arg0_attributes,
488a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg1_operation,
489a8e1175bSopenharmony_ci    const psa_key_production_parameters_t *arg2_params,
490a8e1175bSopenharmony_ci    size_t arg3_params_data_length,
491a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t *arg4_key);
492a8e1175bSopenharmony_ci#define psa_key_derivation_output_key_ext(arg0_attributes, arg1_operation, arg2_params, arg3_params_data_length, arg4_key) \
493a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_output_key_ext(arg0_attributes, arg1_operation, arg2_params, arg3_params_data_length, arg4_key)
494a8e1175bSopenharmony_ci
495a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity(
496a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation,
497a8e1175bSopenharmony_ci    size_t arg1_capacity);
498a8e1175bSopenharmony_ci#define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \
499a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity)
500a8e1175bSopenharmony_ci
501a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_key_derivation_setup(
502a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg0_operation,
503a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg);
504a8e1175bSopenharmony_ci#define psa_key_derivation_setup(arg0_operation, arg1_alg) \
505a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg)
506a8e1175bSopenharmony_ci
507a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_abort(
508a8e1175bSopenharmony_ci    psa_mac_operation_t *arg0_operation);
509a8e1175bSopenharmony_ci#define psa_mac_abort(arg0_operation) \
510a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_abort(arg0_operation)
511a8e1175bSopenharmony_ci
512a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_compute(
513a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
514a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
515a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
516a8e1175bSopenharmony_ci    size_t arg3_input_length,
517a8e1175bSopenharmony_ci    uint8_t *arg4_mac,
518a8e1175bSopenharmony_ci    size_t arg5_mac_size,
519a8e1175bSopenharmony_ci    size_t *arg6_mac_length);
520a8e1175bSopenharmony_ci#define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \
521a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length)
522a8e1175bSopenharmony_ci
523a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_sign_finish(
524a8e1175bSopenharmony_ci    psa_mac_operation_t *arg0_operation,
525a8e1175bSopenharmony_ci    uint8_t *arg1_mac,
526a8e1175bSopenharmony_ci    size_t arg2_mac_size,
527a8e1175bSopenharmony_ci    size_t *arg3_mac_length);
528a8e1175bSopenharmony_ci#define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \
529a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length)
530a8e1175bSopenharmony_ci
531a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_sign_setup(
532a8e1175bSopenharmony_ci    psa_mac_operation_t *arg0_operation,
533a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
534a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg);
535a8e1175bSopenharmony_ci#define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \
536a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg)
537a8e1175bSopenharmony_ci
538a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_update(
539a8e1175bSopenharmony_ci    psa_mac_operation_t *arg0_operation,
540a8e1175bSopenharmony_ci    const uint8_t *arg1_input,
541a8e1175bSopenharmony_ci    size_t arg2_input_length);
542a8e1175bSopenharmony_ci#define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \
543a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length)
544a8e1175bSopenharmony_ci
545a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_verify(
546a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
547a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
548a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
549a8e1175bSopenharmony_ci    size_t arg3_input_length,
550a8e1175bSopenharmony_ci    const uint8_t *arg4_mac,
551a8e1175bSopenharmony_ci    size_t arg5_mac_length);
552a8e1175bSopenharmony_ci#define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \
553a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length)
554a8e1175bSopenharmony_ci
555a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_verify_finish(
556a8e1175bSopenharmony_ci    psa_mac_operation_t *arg0_operation,
557a8e1175bSopenharmony_ci    const uint8_t *arg1_mac,
558a8e1175bSopenharmony_ci    size_t arg2_mac_length);
559a8e1175bSopenharmony_ci#define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \
560a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length)
561a8e1175bSopenharmony_ci
562a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_mac_verify_setup(
563a8e1175bSopenharmony_ci    psa_mac_operation_t *arg0_operation,
564a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
565a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg);
566a8e1175bSopenharmony_ci#define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \
567a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg)
568a8e1175bSopenharmony_ci
569a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_abort(
570a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation);
571a8e1175bSopenharmony_ci#define psa_pake_abort(arg0_operation) \
572a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_abort(arg0_operation)
573a8e1175bSopenharmony_ci
574a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key(
575a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
576a8e1175bSopenharmony_ci    psa_key_derivation_operation_t *arg1_output);
577a8e1175bSopenharmony_ci#define psa_pake_get_implicit_key(arg0_operation, arg1_output) \
578a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_get_implicit_key(arg0_operation, arg1_output)
579a8e1175bSopenharmony_ci
580a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_input(
581a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
582a8e1175bSopenharmony_ci    psa_pake_step_t arg1_step,
583a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
584a8e1175bSopenharmony_ci    size_t arg3_input_length);
585a8e1175bSopenharmony_ci#define psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) \
586a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length)
587a8e1175bSopenharmony_ci
588a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_output(
589a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
590a8e1175bSopenharmony_ci    psa_pake_step_t arg1_step,
591a8e1175bSopenharmony_ci    uint8_t *arg2_output,
592a8e1175bSopenharmony_ci    size_t arg3_output_size,
593a8e1175bSopenharmony_ci    size_t *arg4_output_length);
594a8e1175bSopenharmony_ci#define psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) \
595a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length)
596a8e1175bSopenharmony_ci
597a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_set_password_key(
598a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
599a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_password);
600a8e1175bSopenharmony_ci#define psa_pake_set_password_key(arg0_operation, arg1_password) \
601a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_set_password_key(arg0_operation, arg1_password)
602a8e1175bSopenharmony_ci
603a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_set_peer(
604a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
605a8e1175bSopenharmony_ci    const uint8_t *arg1_peer_id,
606a8e1175bSopenharmony_ci    size_t arg2_peer_id_len);
607a8e1175bSopenharmony_ci#define psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) \
608a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len)
609a8e1175bSopenharmony_ci
610a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_set_role(
611a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
612a8e1175bSopenharmony_ci    psa_pake_role_t arg1_role);
613a8e1175bSopenharmony_ci#define psa_pake_set_role(arg0_operation, arg1_role) \
614a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_set_role(arg0_operation, arg1_role)
615a8e1175bSopenharmony_ci
616a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_set_user(
617a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
618a8e1175bSopenharmony_ci    const uint8_t *arg1_user_id,
619a8e1175bSopenharmony_ci    size_t arg2_user_id_len);
620a8e1175bSopenharmony_ci#define psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) \
621a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len)
622a8e1175bSopenharmony_ci
623a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_pake_setup(
624a8e1175bSopenharmony_ci    psa_pake_operation_t *arg0_operation,
625a8e1175bSopenharmony_ci    const psa_pake_cipher_suite_t *arg1_cipher_suite);
626a8e1175bSopenharmony_ci#define psa_pake_setup(arg0_operation, arg1_cipher_suite) \
627a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_pake_setup(arg0_operation, arg1_cipher_suite)
628a8e1175bSopenharmony_ci
629a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_purge_key(
630a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key);
631a8e1175bSopenharmony_ci#define psa_purge_key(arg0_key) \
632a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_purge_key(arg0_key)
633a8e1175bSopenharmony_ci
634a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_raw_key_agreement(
635a8e1175bSopenharmony_ci    psa_algorithm_t arg0_alg,
636a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_private_key,
637a8e1175bSopenharmony_ci    const uint8_t *arg2_peer_key,
638a8e1175bSopenharmony_ci    size_t arg3_peer_key_length,
639a8e1175bSopenharmony_ci    uint8_t *arg4_output,
640a8e1175bSopenharmony_ci    size_t arg5_output_size,
641a8e1175bSopenharmony_ci    size_t *arg6_output_length);
642a8e1175bSopenharmony_ci#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) \
643a8e1175bSopenharmony_ci    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)
644a8e1175bSopenharmony_ci
645a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_sign_hash(
646a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
647a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
648a8e1175bSopenharmony_ci    const uint8_t *arg2_hash,
649a8e1175bSopenharmony_ci    size_t arg3_hash_length,
650a8e1175bSopenharmony_ci    uint8_t *arg4_signature,
651a8e1175bSopenharmony_ci    size_t arg5_signature_size,
652a8e1175bSopenharmony_ci    size_t *arg6_signature_length);
653a8e1175bSopenharmony_ci#define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
654a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length)
655a8e1175bSopenharmony_ci
656a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_sign_hash_abort(
657a8e1175bSopenharmony_ci    psa_sign_hash_interruptible_operation_t *arg0_operation);
658a8e1175bSopenharmony_ci#define psa_sign_hash_abort(arg0_operation) \
659a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_sign_hash_abort(arg0_operation)
660a8e1175bSopenharmony_ci
661a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_sign_hash_complete(
662a8e1175bSopenharmony_ci    psa_sign_hash_interruptible_operation_t *arg0_operation,
663a8e1175bSopenharmony_ci    uint8_t *arg1_signature,
664a8e1175bSopenharmony_ci    size_t arg2_signature_size,
665a8e1175bSopenharmony_ci    size_t *arg3_signature_length);
666a8e1175bSopenharmony_ci#define psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) \
667a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length)
668a8e1175bSopenharmony_ci
669a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_sign_hash_start(
670a8e1175bSopenharmony_ci    psa_sign_hash_interruptible_operation_t *arg0_operation,
671a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
672a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg,
673a8e1175bSopenharmony_ci    const uint8_t *arg3_hash,
674a8e1175bSopenharmony_ci    size_t arg4_hash_length);
675a8e1175bSopenharmony_ci#define psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) \
676a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length)
677a8e1175bSopenharmony_ci
678a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_sign_message(
679a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
680a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
681a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
682a8e1175bSopenharmony_ci    size_t arg3_input_length,
683a8e1175bSopenharmony_ci    uint8_t *arg4_signature,
684a8e1175bSopenharmony_ci    size_t arg5_signature_size,
685a8e1175bSopenharmony_ci    size_t *arg6_signature_length);
686a8e1175bSopenharmony_ci#define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \
687a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length)
688a8e1175bSopenharmony_ci
689a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_verify_hash(
690a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
691a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
692a8e1175bSopenharmony_ci    const uint8_t *arg2_hash,
693a8e1175bSopenharmony_ci    size_t arg3_hash_length,
694a8e1175bSopenharmony_ci    const uint8_t *arg4_signature,
695a8e1175bSopenharmony_ci    size_t arg5_signature_length);
696a8e1175bSopenharmony_ci#define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \
697a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length)
698a8e1175bSopenharmony_ci
699a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_verify_hash_abort(
700a8e1175bSopenharmony_ci    psa_verify_hash_interruptible_operation_t *arg0_operation);
701a8e1175bSopenharmony_ci#define psa_verify_hash_abort(arg0_operation) \
702a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_verify_hash_abort(arg0_operation)
703a8e1175bSopenharmony_ci
704a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_verify_hash_complete(
705a8e1175bSopenharmony_ci    psa_verify_hash_interruptible_operation_t *arg0_operation);
706a8e1175bSopenharmony_ci#define psa_verify_hash_complete(arg0_operation) \
707a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_verify_hash_complete(arg0_operation)
708a8e1175bSopenharmony_ci
709a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_verify_hash_start(
710a8e1175bSopenharmony_ci    psa_verify_hash_interruptible_operation_t *arg0_operation,
711a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg1_key,
712a8e1175bSopenharmony_ci    psa_algorithm_t arg2_alg,
713a8e1175bSopenharmony_ci    const uint8_t *arg3_hash,
714a8e1175bSopenharmony_ci    size_t arg4_hash_length,
715a8e1175bSopenharmony_ci    const uint8_t *arg5_signature,
716a8e1175bSopenharmony_ci    size_t arg6_signature_length);
717a8e1175bSopenharmony_ci#define psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) \
718a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length)
719a8e1175bSopenharmony_ci
720a8e1175bSopenharmony_cipsa_status_t mbedtls_test_wrap_psa_verify_message(
721a8e1175bSopenharmony_ci    mbedtls_svc_key_id_t arg0_key,
722a8e1175bSopenharmony_ci    psa_algorithm_t arg1_alg,
723a8e1175bSopenharmony_ci    const uint8_t *arg2_input,
724a8e1175bSopenharmony_ci    size_t arg3_input_length,
725a8e1175bSopenharmony_ci    const uint8_t *arg4_signature,
726a8e1175bSopenharmony_ci    size_t arg5_signature_length);
727a8e1175bSopenharmony_ci#define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \
728a8e1175bSopenharmony_ci    mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length)
729a8e1175bSopenharmony_ci
730a8e1175bSopenharmony_ci#endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) && \
731a8e1175bSopenharmony_ci    !defined(RECORD_PSA_STATUS_COVERAGE_LOG) */
732a8e1175bSopenharmony_ci
733a8e1175bSopenharmony_ci#ifdef __cplusplus
734a8e1175bSopenharmony_ci}
735a8e1175bSopenharmony_ci#endif
736a8e1175bSopenharmony_ci
737a8e1175bSopenharmony_ci#endif /* TEST_PSA_TEST_WRAPPERS_H */
738a8e1175bSopenharmony_ci
739a8e1175bSopenharmony_ci/* End of automatically generated file. */
740