Gilles Peskine | 6e4332c | 2024-01-04 16:42:40 +0100 | [diff] [blame] | 1 | /* 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 |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | #include <mbedtls/build_info.h> |
| 15 | |
| 16 | #if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) |
| 17 | |
| 18 | #include <psa/crypto.h> |
| 19 | |
Gilles Peskine | 90d14d7 | 2024-01-04 16:59:28 +0100 | [diff] [blame^] | 20 | #include <test/memory.h> |
Gilles Peskine | 6e4332c | 2024-01-04 16:42:40 +0100 | [diff] [blame] | 21 | #include <test/psa_crypto_helpers.h> |
| 22 | #include <test/psa_test_wrappers.h> |
| 23 | |
| 24 | #if defined(MBEDTLS_PSA_INJECT_ENTROPY) |
| 25 | psa_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) |
| 33 | psa_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) |
| 42 | psa_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 | |
| 48 | psa_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 | |
| 53 | psa_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 | |
| 68 | psa_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 | |
| 75 | psa_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 | |
| 90 | psa_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 | |
| 97 | psa_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 | |
| 108 | psa_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 | |
| 116 | psa_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 | |
| 123 | psa_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 | |
| 130 | psa_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 | |
| 140 | psa_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 | |
| 147 | psa_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 | |
| 157 | psa_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 | |
| 170 | psa_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 | |
| 183 | psa_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 | |
| 188 | psa_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 | |
| 199 | psa_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 | |
| 206 | psa_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 | |
| 217 | psa_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 | |
| 224 | psa_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 | |
| 232 | psa_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 | |
| 240 | psa_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 | |
| 247 | psa_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 | |
| 257 | psa_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 | |
| 264 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite( |
| 265 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 266 | psa_pake_cipher_suite_t *arg1_cipher_suite); |
| 267 | #define psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite) \ |
| 268 | mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite(arg0_inputs, arg1_cipher_suite) |
| 269 | |
| 270 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password( |
| 271 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 272 | uint8_t *arg1_buffer, |
| 273 | size_t arg2_buffer_size, |
| 274 | size_t *arg3_buffer_length); |
| 275 | #define psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length) \ |
| 276 | mbedtls_test_wrap_psa_crypto_driver_pake_get_password(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length) |
| 277 | |
| 278 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len( |
| 279 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 280 | size_t *arg1_password_len); |
| 281 | #define psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len) \ |
| 282 | mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len(arg0_inputs, arg1_password_len) |
| 283 | |
| 284 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer( |
| 285 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 286 | uint8_t *arg1_peer_id, |
| 287 | size_t arg2_peer_id_size, |
| 288 | size_t *arg3_peer_id_length); |
| 289 | #define psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length) \ |
| 290 | mbedtls_test_wrap_psa_crypto_driver_pake_get_peer(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length) |
| 291 | |
| 292 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len( |
| 293 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 294 | size_t *arg1_peer_len); |
| 295 | #define psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len) \ |
| 296 | mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len(arg0_inputs, arg1_peer_len) |
| 297 | |
| 298 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user( |
| 299 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 300 | uint8_t *arg1_user_id, |
| 301 | size_t arg2_user_id_size, |
| 302 | size_t *arg3_user_id_len); |
| 303 | #define psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len) \ |
| 304 | mbedtls_test_wrap_psa_crypto_driver_pake_get_user(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len) |
| 305 | |
| 306 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len( |
| 307 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 308 | size_t *arg1_user_len); |
| 309 | #define psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len) \ |
| 310 | mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len(arg0_inputs, arg1_user_len) |
| 311 | |
| 312 | psa_status_t mbedtls_test_wrap_psa_crypto_init(void); |
| 313 | #define psa_crypto_init() \ |
| 314 | mbedtls_test_wrap_psa_crypto_init() |
| 315 | |
| 316 | psa_status_t mbedtls_test_wrap_psa_destroy_key( |
| 317 | mbedtls_svc_key_id_t arg0_key); |
| 318 | #define psa_destroy_key(arg0_key) \ |
| 319 | mbedtls_test_wrap_psa_destroy_key(arg0_key) |
| 320 | |
| 321 | psa_status_t mbedtls_test_wrap_psa_export_key( |
| 322 | mbedtls_svc_key_id_t arg0_key, |
| 323 | uint8_t *arg1_data, |
| 324 | size_t arg2_data_size, |
| 325 | size_t *arg3_data_length); |
| 326 | #define psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \ |
| 327 | mbedtls_test_wrap_psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) |
| 328 | |
| 329 | psa_status_t mbedtls_test_wrap_psa_export_public_key( |
| 330 | mbedtls_svc_key_id_t arg0_key, |
| 331 | uint8_t *arg1_data, |
| 332 | size_t arg2_data_size, |
| 333 | size_t *arg3_data_length); |
| 334 | #define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \ |
| 335 | mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) |
| 336 | |
| 337 | psa_status_t mbedtls_test_wrap_psa_generate_key( |
| 338 | const psa_key_attributes_t *arg0_attributes, |
| 339 | mbedtls_svc_key_id_t *arg1_key); |
| 340 | #define psa_generate_key(arg0_attributes, arg1_key) \ |
| 341 | mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key) |
| 342 | |
| 343 | psa_status_t mbedtls_test_wrap_psa_generate_random( |
| 344 | uint8_t *arg0_output, |
| 345 | size_t arg1_output_size); |
| 346 | #define psa_generate_random(arg0_output, arg1_output_size) \ |
| 347 | mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size) |
| 348 | |
| 349 | psa_status_t mbedtls_test_wrap_psa_get_key_attributes( |
| 350 | mbedtls_svc_key_id_t arg0_key, |
| 351 | psa_key_attributes_t *arg1_attributes); |
| 352 | #define psa_get_key_attributes(arg0_key, arg1_attributes) \ |
| 353 | mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes) |
| 354 | |
| 355 | psa_status_t mbedtls_test_wrap_psa_hash_abort( |
| 356 | psa_hash_operation_t *arg0_operation); |
| 357 | #define psa_hash_abort(arg0_operation) \ |
| 358 | mbedtls_test_wrap_psa_hash_abort(arg0_operation) |
| 359 | |
| 360 | psa_status_t mbedtls_test_wrap_psa_hash_clone( |
| 361 | const psa_hash_operation_t *arg0_source_operation, |
| 362 | psa_hash_operation_t *arg1_target_operation); |
| 363 | #define psa_hash_clone(arg0_source_operation, arg1_target_operation) \ |
| 364 | mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation) |
| 365 | |
| 366 | psa_status_t mbedtls_test_wrap_psa_hash_compare( |
| 367 | psa_algorithm_t arg0_alg, |
| 368 | const uint8_t *arg1_input, |
| 369 | size_t arg2_input_length, |
| 370 | const uint8_t *arg3_hash, |
| 371 | size_t arg4_hash_length); |
| 372 | #define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \ |
| 373 | mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) |
| 374 | |
| 375 | psa_status_t mbedtls_test_wrap_psa_hash_compute( |
| 376 | psa_algorithm_t arg0_alg, |
| 377 | const uint8_t *arg1_input, |
| 378 | size_t arg2_input_length, |
| 379 | uint8_t *arg3_hash, |
| 380 | size_t arg4_hash_size, |
| 381 | size_t *arg5_hash_length); |
| 382 | #define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \ |
| 383 | mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) |
| 384 | |
| 385 | psa_status_t mbedtls_test_wrap_psa_hash_finish( |
| 386 | psa_hash_operation_t *arg0_operation, |
| 387 | uint8_t *arg1_hash, |
| 388 | size_t arg2_hash_size, |
| 389 | size_t *arg3_hash_length); |
| 390 | #define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \ |
| 391 | mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) |
| 392 | |
| 393 | psa_status_t mbedtls_test_wrap_psa_hash_setup( |
| 394 | psa_hash_operation_t *arg0_operation, |
| 395 | psa_algorithm_t arg1_alg); |
| 396 | #define psa_hash_setup(arg0_operation, arg1_alg) \ |
| 397 | mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg) |
| 398 | |
| 399 | psa_status_t mbedtls_test_wrap_psa_hash_update( |
| 400 | psa_hash_operation_t *arg0_operation, |
| 401 | const uint8_t *arg1_input, |
| 402 | size_t arg2_input_length); |
| 403 | #define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \ |
| 404 | mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length) |
| 405 | |
| 406 | psa_status_t mbedtls_test_wrap_psa_hash_verify( |
| 407 | psa_hash_operation_t *arg0_operation, |
| 408 | const uint8_t *arg1_hash, |
| 409 | size_t arg2_hash_length); |
| 410 | #define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \ |
| 411 | mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) |
| 412 | |
| 413 | psa_status_t mbedtls_test_wrap_psa_import_key( |
| 414 | const psa_key_attributes_t *arg0_attributes, |
| 415 | const uint8_t *arg1_data, |
| 416 | size_t arg2_data_length, |
| 417 | mbedtls_svc_key_id_t *arg3_key); |
| 418 | #define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \ |
| 419 | mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) |
| 420 | |
| 421 | psa_status_t mbedtls_test_wrap_psa_key_derivation_abort( |
| 422 | psa_key_derivation_operation_t *arg0_operation); |
| 423 | #define psa_key_derivation_abort(arg0_operation) \ |
| 424 | mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation) |
| 425 | |
| 426 | psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity( |
| 427 | const psa_key_derivation_operation_t *arg0_operation, |
| 428 | size_t *arg1_capacity); |
| 429 | #define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \ |
| 430 | mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) |
| 431 | |
| 432 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes( |
| 433 | psa_key_derivation_operation_t *arg0_operation, |
| 434 | psa_key_derivation_step_t arg1_step, |
| 435 | const uint8_t *arg2_data, |
| 436 | size_t arg3_data_length); |
| 437 | #define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \ |
| 438 | mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) |
| 439 | |
| 440 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer( |
| 441 | psa_key_derivation_operation_t *arg0_operation, |
| 442 | psa_key_derivation_step_t arg1_step, |
| 443 | uint64_t arg2_value); |
| 444 | #define psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) \ |
| 445 | mbedtls_test_wrap_psa_key_derivation_input_integer(arg0_operation, arg1_step, arg2_value) |
| 446 | |
| 447 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key( |
| 448 | psa_key_derivation_operation_t *arg0_operation, |
| 449 | psa_key_derivation_step_t arg1_step, |
| 450 | mbedtls_svc_key_id_t arg2_key); |
| 451 | #define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \ |
| 452 | mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) |
| 453 | |
| 454 | psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement( |
| 455 | psa_key_derivation_operation_t *arg0_operation, |
| 456 | psa_key_derivation_step_t arg1_step, |
| 457 | mbedtls_svc_key_id_t arg2_private_key, |
| 458 | const uint8_t *arg3_peer_key, |
| 459 | size_t arg4_peer_key_length); |
| 460 | #define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \ |
| 461 | mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) |
| 462 | |
| 463 | psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes( |
| 464 | psa_key_derivation_operation_t *arg0_operation, |
| 465 | uint8_t *arg1_output, |
| 466 | size_t arg2_output_length); |
| 467 | #define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \ |
| 468 | mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) |
| 469 | |
| 470 | psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key( |
| 471 | const psa_key_attributes_t *arg0_attributes, |
| 472 | psa_key_derivation_operation_t *arg1_operation, |
| 473 | mbedtls_svc_key_id_t *arg2_key); |
| 474 | #define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \ |
| 475 | mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) |
| 476 | |
| 477 | psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity( |
| 478 | psa_key_derivation_operation_t *arg0_operation, |
| 479 | size_t arg1_capacity); |
| 480 | #define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \ |
| 481 | mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) |
| 482 | |
| 483 | psa_status_t mbedtls_test_wrap_psa_key_derivation_setup( |
| 484 | psa_key_derivation_operation_t *arg0_operation, |
| 485 | psa_algorithm_t arg1_alg); |
| 486 | #define psa_key_derivation_setup(arg0_operation, arg1_alg) \ |
| 487 | mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg) |
| 488 | |
| 489 | psa_status_t mbedtls_test_wrap_psa_mac_abort( |
| 490 | psa_mac_operation_t *arg0_operation); |
| 491 | #define psa_mac_abort(arg0_operation) \ |
| 492 | mbedtls_test_wrap_psa_mac_abort(arg0_operation) |
| 493 | |
| 494 | psa_status_t mbedtls_test_wrap_psa_mac_compute( |
| 495 | mbedtls_svc_key_id_t arg0_key, |
| 496 | psa_algorithm_t arg1_alg, |
| 497 | const uint8_t *arg2_input, |
| 498 | size_t arg3_input_length, |
| 499 | uint8_t *arg4_mac, |
| 500 | size_t arg5_mac_size, |
| 501 | size_t *arg6_mac_length); |
| 502 | #define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \ |
| 503 | mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) |
| 504 | |
| 505 | psa_status_t mbedtls_test_wrap_psa_mac_sign_finish( |
| 506 | psa_mac_operation_t *arg0_operation, |
| 507 | uint8_t *arg1_mac, |
| 508 | size_t arg2_mac_size, |
| 509 | size_t *arg3_mac_length); |
| 510 | #define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \ |
| 511 | mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) |
| 512 | |
| 513 | psa_status_t mbedtls_test_wrap_psa_mac_sign_setup( |
| 514 | psa_mac_operation_t *arg0_operation, |
| 515 | mbedtls_svc_key_id_t arg1_key, |
| 516 | psa_algorithm_t arg2_alg); |
| 517 | #define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \ |
| 518 | mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) |
| 519 | |
| 520 | psa_status_t mbedtls_test_wrap_psa_mac_update( |
| 521 | psa_mac_operation_t *arg0_operation, |
| 522 | const uint8_t *arg1_input, |
| 523 | size_t arg2_input_length); |
| 524 | #define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \ |
| 525 | mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length) |
| 526 | |
| 527 | psa_status_t mbedtls_test_wrap_psa_mac_verify( |
| 528 | mbedtls_svc_key_id_t arg0_key, |
| 529 | psa_algorithm_t arg1_alg, |
| 530 | const uint8_t *arg2_input, |
| 531 | size_t arg3_input_length, |
| 532 | const uint8_t *arg4_mac, |
| 533 | size_t arg5_mac_length); |
| 534 | #define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \ |
| 535 | mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) |
| 536 | |
| 537 | psa_status_t mbedtls_test_wrap_psa_mac_verify_finish( |
| 538 | psa_mac_operation_t *arg0_operation, |
| 539 | const uint8_t *arg1_mac, |
| 540 | size_t arg2_mac_length); |
| 541 | #define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \ |
| 542 | mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) |
| 543 | |
| 544 | psa_status_t mbedtls_test_wrap_psa_mac_verify_setup( |
| 545 | psa_mac_operation_t *arg0_operation, |
| 546 | mbedtls_svc_key_id_t arg1_key, |
| 547 | psa_algorithm_t arg2_alg); |
| 548 | #define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \ |
| 549 | mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) |
| 550 | |
| 551 | psa_status_t mbedtls_test_wrap_psa_pake_abort( |
| 552 | psa_pake_operation_t *arg0_operation); |
| 553 | #define psa_pake_abort(arg0_operation) \ |
| 554 | mbedtls_test_wrap_psa_pake_abort(arg0_operation) |
| 555 | |
| 556 | psa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key( |
| 557 | psa_pake_operation_t *arg0_operation, |
| 558 | psa_key_derivation_operation_t *arg1_output); |
| 559 | #define psa_pake_get_implicit_key(arg0_operation, arg1_output) \ |
| 560 | mbedtls_test_wrap_psa_pake_get_implicit_key(arg0_operation, arg1_output) |
| 561 | |
| 562 | psa_status_t mbedtls_test_wrap_psa_pake_input( |
| 563 | psa_pake_operation_t *arg0_operation, |
| 564 | psa_pake_step_t arg1_step, |
| 565 | const uint8_t *arg2_input, |
| 566 | size_t arg3_input_length); |
| 567 | #define psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) \ |
| 568 | mbedtls_test_wrap_psa_pake_input(arg0_operation, arg1_step, arg2_input, arg3_input_length) |
| 569 | |
| 570 | psa_status_t mbedtls_test_wrap_psa_pake_output( |
| 571 | psa_pake_operation_t *arg0_operation, |
| 572 | psa_pake_step_t arg1_step, |
| 573 | uint8_t *arg2_output, |
| 574 | size_t arg3_output_size, |
| 575 | size_t *arg4_output_length); |
| 576 | #define psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) \ |
| 577 | mbedtls_test_wrap_psa_pake_output(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length) |
| 578 | |
| 579 | psa_status_t mbedtls_test_wrap_psa_pake_set_password_key( |
| 580 | psa_pake_operation_t *arg0_operation, |
| 581 | mbedtls_svc_key_id_t arg1_password); |
| 582 | #define psa_pake_set_password_key(arg0_operation, arg1_password) \ |
| 583 | mbedtls_test_wrap_psa_pake_set_password_key(arg0_operation, arg1_password) |
| 584 | |
| 585 | psa_status_t mbedtls_test_wrap_psa_pake_set_peer( |
| 586 | psa_pake_operation_t *arg0_operation, |
| 587 | const uint8_t *arg1_peer_id, |
| 588 | size_t arg2_peer_id_len); |
| 589 | #define psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) \ |
| 590 | mbedtls_test_wrap_psa_pake_set_peer(arg0_operation, arg1_peer_id, arg2_peer_id_len) |
| 591 | |
| 592 | psa_status_t mbedtls_test_wrap_psa_pake_set_role( |
| 593 | psa_pake_operation_t *arg0_operation, |
| 594 | psa_pake_role_t arg1_role); |
| 595 | #define psa_pake_set_role(arg0_operation, arg1_role) \ |
| 596 | mbedtls_test_wrap_psa_pake_set_role(arg0_operation, arg1_role) |
| 597 | |
| 598 | psa_status_t mbedtls_test_wrap_psa_pake_set_user( |
| 599 | psa_pake_operation_t *arg0_operation, |
| 600 | const uint8_t *arg1_user_id, |
| 601 | size_t arg2_user_id_len); |
| 602 | #define psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) \ |
| 603 | mbedtls_test_wrap_psa_pake_set_user(arg0_operation, arg1_user_id, arg2_user_id_len) |
| 604 | |
| 605 | psa_status_t mbedtls_test_wrap_psa_pake_setup( |
| 606 | psa_pake_operation_t *arg0_operation, |
| 607 | const psa_pake_cipher_suite_t *arg1_cipher_suite); |
| 608 | #define psa_pake_setup(arg0_operation, arg1_cipher_suite) \ |
| 609 | mbedtls_test_wrap_psa_pake_setup(arg0_operation, arg1_cipher_suite) |
| 610 | |
| 611 | psa_status_t mbedtls_test_wrap_psa_purge_key( |
| 612 | mbedtls_svc_key_id_t arg0_key); |
| 613 | #define psa_purge_key(arg0_key) \ |
| 614 | mbedtls_test_wrap_psa_purge_key(arg0_key) |
| 615 | |
| 616 | psa_status_t mbedtls_test_wrap_psa_raw_key_agreement( |
| 617 | psa_algorithm_t arg0_alg, |
| 618 | mbedtls_svc_key_id_t arg1_private_key, |
| 619 | const uint8_t *arg2_peer_key, |
| 620 | size_t arg3_peer_key_length, |
| 621 | uint8_t *arg4_output, |
| 622 | size_t arg5_output_size, |
| 623 | size_t *arg6_output_length); |
| 624 | #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) \ |
| 625 | 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) |
| 626 | |
| 627 | psa_status_t mbedtls_test_wrap_psa_sign_hash( |
| 628 | mbedtls_svc_key_id_t arg0_key, |
| 629 | psa_algorithm_t arg1_alg, |
| 630 | const uint8_t *arg2_hash, |
| 631 | size_t arg3_hash_length, |
| 632 | uint8_t *arg4_signature, |
| 633 | size_t arg5_signature_size, |
| 634 | size_t *arg6_signature_length); |
| 635 | #define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \ |
| 636 | mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) |
| 637 | |
| 638 | psa_status_t mbedtls_test_wrap_psa_sign_hash_abort( |
| 639 | psa_sign_hash_interruptible_operation_t *arg0_operation); |
| 640 | #define psa_sign_hash_abort(arg0_operation) \ |
| 641 | mbedtls_test_wrap_psa_sign_hash_abort(arg0_operation) |
| 642 | |
| 643 | psa_status_t mbedtls_test_wrap_psa_sign_hash_complete( |
| 644 | psa_sign_hash_interruptible_operation_t *arg0_operation, |
| 645 | uint8_t *arg1_signature, |
| 646 | size_t arg2_signature_size, |
| 647 | size_t *arg3_signature_length); |
| 648 | #define psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) \ |
| 649 | mbedtls_test_wrap_psa_sign_hash_complete(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length) |
| 650 | |
| 651 | psa_status_t mbedtls_test_wrap_psa_sign_hash_start( |
| 652 | psa_sign_hash_interruptible_operation_t *arg0_operation, |
| 653 | mbedtls_svc_key_id_t arg1_key, |
| 654 | psa_algorithm_t arg2_alg, |
| 655 | const uint8_t *arg3_hash, |
| 656 | size_t arg4_hash_length); |
| 657 | #define psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) \ |
| 658 | mbedtls_test_wrap_psa_sign_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length) |
| 659 | |
| 660 | psa_status_t mbedtls_test_wrap_psa_sign_message( |
| 661 | mbedtls_svc_key_id_t arg0_key, |
| 662 | psa_algorithm_t arg1_alg, |
| 663 | const uint8_t *arg2_input, |
| 664 | size_t arg3_input_length, |
| 665 | uint8_t *arg4_signature, |
| 666 | size_t arg5_signature_size, |
| 667 | size_t *arg6_signature_length); |
| 668 | #define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \ |
| 669 | mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) |
| 670 | |
| 671 | psa_status_t mbedtls_test_wrap_psa_verify_hash( |
| 672 | mbedtls_svc_key_id_t arg0_key, |
| 673 | psa_algorithm_t arg1_alg, |
| 674 | const uint8_t *arg2_hash, |
| 675 | size_t arg3_hash_length, |
| 676 | const uint8_t *arg4_signature, |
| 677 | size_t arg5_signature_length); |
| 678 | #define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \ |
| 679 | mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) |
| 680 | |
| 681 | psa_status_t mbedtls_test_wrap_psa_verify_hash_abort( |
| 682 | psa_verify_hash_interruptible_operation_t *arg0_operation); |
| 683 | #define psa_verify_hash_abort(arg0_operation) \ |
| 684 | mbedtls_test_wrap_psa_verify_hash_abort(arg0_operation) |
| 685 | |
| 686 | psa_status_t mbedtls_test_wrap_psa_verify_hash_complete( |
| 687 | psa_verify_hash_interruptible_operation_t *arg0_operation); |
| 688 | #define psa_verify_hash_complete(arg0_operation) \ |
| 689 | mbedtls_test_wrap_psa_verify_hash_complete(arg0_operation) |
| 690 | |
| 691 | psa_status_t mbedtls_test_wrap_psa_verify_hash_start( |
| 692 | psa_verify_hash_interruptible_operation_t *arg0_operation, |
| 693 | mbedtls_svc_key_id_t arg1_key, |
| 694 | psa_algorithm_t arg2_alg, |
| 695 | const uint8_t *arg3_hash, |
| 696 | size_t arg4_hash_length, |
| 697 | const uint8_t *arg5_signature, |
| 698 | size_t arg6_signature_length); |
| 699 | #define psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) \ |
| 700 | mbedtls_test_wrap_psa_verify_hash_start(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length) |
| 701 | |
| 702 | psa_status_t mbedtls_test_wrap_psa_verify_message( |
| 703 | mbedtls_svc_key_id_t arg0_key, |
| 704 | psa_algorithm_t arg1_alg, |
| 705 | const uint8_t *arg2_input, |
| 706 | size_t arg3_input_length, |
| 707 | const uint8_t *arg4_signature, |
| 708 | size_t arg5_signature_length); |
| 709 | #define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \ |
| 710 | mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) |
| 711 | |
| 712 | #endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) */ |
| 713 | |
| 714 | #ifdef __cplusplus |
| 715 | } |
| 716 | #endif |
| 717 | |
| 718 | #endif /* TEST_PSA_TEST_WRAPPERS_H */ |
| 719 | |
| 720 | /* End of automatically generated file. */ |