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 | #include <mbedtls/build_info.h> |
| 8 | |
| 9 | #if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) |
| 10 | |
| 11 | #include <psa/crypto.h> |
| 12 | |
| 13 | #include <test/psa_crypto_helpers.h> |
| 14 | #include <test/psa_test_wrappers.h> |
| 15 | |
| 16 | /* Wrapper for mbedtls_psa_inject_entropy */ |
| 17 | #if defined(MBEDTLS_PSA_INJECT_ENTROPY) |
| 18 | psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy( |
| 19 | const uint8_t *arg0_seed, |
| 20 | size_t arg1_seed_size) |
| 21 | { |
| 22 | psa_status_t status = (mbedtls_psa_inject_entropy)(arg0_seed, arg1_seed_size); |
| 23 | return status; |
| 24 | } |
| 25 | #endif /* defined(MBEDTLS_PSA_INJECT_ENTROPY) */ |
| 26 | |
| 27 | /* Wrapper for mbedtls_psa_platform_get_builtin_key */ |
| 28 | #if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) |
| 29 | psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key( |
| 30 | mbedtls_svc_key_id_t arg0_key_id, |
| 31 | psa_key_lifetime_t *arg1_lifetime, |
| 32 | psa_drv_slot_number_t *arg2_slot_number) |
| 33 | { |
| 34 | psa_status_t status = (mbedtls_psa_platform_get_builtin_key)(arg0_key_id, arg1_lifetime, arg2_slot_number); |
| 35 | return status; |
| 36 | } |
| 37 | #endif /* defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) */ |
| 38 | |
| 39 | /* Wrapper for mbedtls_psa_register_se_key */ |
| 40 | #if defined(MBEDTLS_PSA_CRYPTO_SE_C) |
| 41 | psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key( |
| 42 | const psa_key_attributes_t *arg0_attributes) |
| 43 | { |
| 44 | psa_status_t status = (mbedtls_psa_register_se_key)(arg0_attributes); |
| 45 | return status; |
| 46 | } |
| 47 | #endif /* defined(MBEDTLS_PSA_CRYPTO_SE_C) */ |
| 48 | |
| 49 | /* Wrapper for psa_aead_abort */ |
| 50 | psa_status_t mbedtls_test_wrap_psa_aead_abort( |
| 51 | psa_aead_operation_t *arg0_operation) |
| 52 | { |
| 53 | psa_status_t status = (psa_aead_abort)(arg0_operation); |
| 54 | return status; |
| 55 | } |
| 56 | |
| 57 | /* Wrapper for psa_aead_decrypt */ |
| 58 | psa_status_t mbedtls_test_wrap_psa_aead_decrypt( |
| 59 | mbedtls_svc_key_id_t arg0_key, |
| 60 | psa_algorithm_t arg1_alg, |
| 61 | const uint8_t *arg2_nonce, |
| 62 | size_t arg3_nonce_length, |
| 63 | const uint8_t *arg4_additional_data, |
| 64 | size_t arg5_additional_data_length, |
| 65 | const uint8_t *arg6_ciphertext, |
| 66 | size_t arg7_ciphertext_length, |
| 67 | uint8_t *arg8_plaintext, |
| 68 | size_t arg9_plaintext_size, |
| 69 | size_t *arg10_plaintext_length) |
| 70 | { |
| 71 | psa_status_t status = (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); |
| 72 | return status; |
| 73 | } |
| 74 | |
| 75 | /* Wrapper for psa_aead_decrypt_setup */ |
| 76 | psa_status_t mbedtls_test_wrap_psa_aead_decrypt_setup( |
| 77 | psa_aead_operation_t *arg0_operation, |
| 78 | mbedtls_svc_key_id_t arg1_key, |
| 79 | psa_algorithm_t arg2_alg) |
| 80 | { |
| 81 | psa_status_t status = (psa_aead_decrypt_setup)(arg0_operation, arg1_key, arg2_alg); |
| 82 | return status; |
| 83 | } |
| 84 | |
| 85 | /* Wrapper for psa_aead_encrypt */ |
| 86 | psa_status_t mbedtls_test_wrap_psa_aead_encrypt( |
| 87 | mbedtls_svc_key_id_t arg0_key, |
| 88 | psa_algorithm_t arg1_alg, |
| 89 | const uint8_t *arg2_nonce, |
| 90 | size_t arg3_nonce_length, |
| 91 | const uint8_t *arg4_additional_data, |
| 92 | size_t arg5_additional_data_length, |
| 93 | const uint8_t *arg6_plaintext, |
| 94 | size_t arg7_plaintext_length, |
| 95 | uint8_t *arg8_ciphertext, |
| 96 | size_t arg9_ciphertext_size, |
| 97 | size_t *arg10_ciphertext_length) |
| 98 | { |
| 99 | psa_status_t status = (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); |
| 100 | return status; |
| 101 | } |
| 102 | |
| 103 | /* Wrapper for psa_aead_encrypt_setup */ |
| 104 | psa_status_t mbedtls_test_wrap_psa_aead_encrypt_setup( |
| 105 | psa_aead_operation_t *arg0_operation, |
| 106 | mbedtls_svc_key_id_t arg1_key, |
| 107 | psa_algorithm_t arg2_alg) |
| 108 | { |
| 109 | psa_status_t status = (psa_aead_encrypt_setup)(arg0_operation, arg1_key, arg2_alg); |
| 110 | return status; |
| 111 | } |
| 112 | |
| 113 | /* Wrapper for psa_aead_finish */ |
| 114 | psa_status_t mbedtls_test_wrap_psa_aead_finish( |
| 115 | psa_aead_operation_t *arg0_operation, |
| 116 | uint8_t *arg1_ciphertext, |
| 117 | size_t arg2_ciphertext_size, |
| 118 | size_t *arg3_ciphertext_length, |
| 119 | uint8_t *arg4_tag, |
| 120 | size_t arg5_tag_size, |
| 121 | size_t *arg6_tag_length) |
| 122 | { |
| 123 | psa_status_t status = (psa_aead_finish)(arg0_operation, arg1_ciphertext, arg2_ciphertext_size, arg3_ciphertext_length, arg4_tag, arg5_tag_size, arg6_tag_length); |
| 124 | return status; |
| 125 | } |
| 126 | |
| 127 | /* Wrapper for psa_aead_generate_nonce */ |
| 128 | psa_status_t mbedtls_test_wrap_psa_aead_generate_nonce( |
| 129 | psa_aead_operation_t *arg0_operation, |
| 130 | uint8_t *arg1_nonce, |
| 131 | size_t arg2_nonce_size, |
| 132 | size_t *arg3_nonce_length) |
| 133 | { |
| 134 | psa_status_t status = (psa_aead_generate_nonce)(arg0_operation, arg1_nonce, arg2_nonce_size, arg3_nonce_length); |
| 135 | return status; |
| 136 | } |
| 137 | |
| 138 | /* Wrapper for psa_aead_set_lengths */ |
| 139 | psa_status_t mbedtls_test_wrap_psa_aead_set_lengths( |
| 140 | psa_aead_operation_t *arg0_operation, |
| 141 | size_t arg1_ad_length, |
| 142 | size_t arg2_plaintext_length) |
| 143 | { |
| 144 | psa_status_t status = (psa_aead_set_lengths)(arg0_operation, arg1_ad_length, arg2_plaintext_length); |
| 145 | return status; |
| 146 | } |
| 147 | |
| 148 | /* Wrapper for psa_aead_set_nonce */ |
| 149 | psa_status_t mbedtls_test_wrap_psa_aead_set_nonce( |
| 150 | psa_aead_operation_t *arg0_operation, |
| 151 | const uint8_t *arg1_nonce, |
| 152 | size_t arg2_nonce_length) |
| 153 | { |
| 154 | psa_status_t status = (psa_aead_set_nonce)(arg0_operation, arg1_nonce, arg2_nonce_length); |
| 155 | return status; |
| 156 | } |
| 157 | |
| 158 | /* Wrapper for psa_aead_update */ |
| 159 | psa_status_t mbedtls_test_wrap_psa_aead_update( |
| 160 | psa_aead_operation_t *arg0_operation, |
| 161 | const uint8_t *arg1_input, |
| 162 | size_t arg2_input_length, |
| 163 | uint8_t *arg3_output, |
| 164 | size_t arg4_output_size, |
| 165 | size_t *arg5_output_length) |
| 166 | { |
| 167 | psa_status_t status = (psa_aead_update)(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length); |
| 168 | return status; |
| 169 | } |
| 170 | |
| 171 | /* Wrapper for psa_aead_update_ad */ |
| 172 | psa_status_t mbedtls_test_wrap_psa_aead_update_ad( |
| 173 | psa_aead_operation_t *arg0_operation, |
| 174 | const uint8_t *arg1_input, |
| 175 | size_t arg2_input_length) |
| 176 | { |
| 177 | psa_status_t status = (psa_aead_update_ad)(arg0_operation, arg1_input, arg2_input_length); |
| 178 | return status; |
| 179 | } |
| 180 | |
| 181 | /* Wrapper for psa_aead_verify */ |
| 182 | psa_status_t mbedtls_test_wrap_psa_aead_verify( |
| 183 | psa_aead_operation_t *arg0_operation, |
| 184 | uint8_t *arg1_plaintext, |
| 185 | size_t arg2_plaintext_size, |
| 186 | size_t *arg3_plaintext_length, |
| 187 | const uint8_t *arg4_tag, |
| 188 | size_t arg5_tag_length) |
| 189 | { |
| 190 | psa_status_t status = (psa_aead_verify)(arg0_operation, arg1_plaintext, arg2_plaintext_size, arg3_plaintext_length, arg4_tag, arg5_tag_length); |
| 191 | return status; |
| 192 | } |
| 193 | |
| 194 | /* Wrapper for psa_asymmetric_decrypt */ |
| 195 | psa_status_t mbedtls_test_wrap_psa_asymmetric_decrypt( |
| 196 | mbedtls_svc_key_id_t arg0_key, |
| 197 | psa_algorithm_t arg1_alg, |
| 198 | const uint8_t *arg2_input, |
| 199 | size_t arg3_input_length, |
| 200 | const uint8_t *arg4_salt, |
| 201 | size_t arg5_salt_length, |
| 202 | uint8_t *arg6_output, |
| 203 | size_t arg7_output_size, |
| 204 | size_t *arg8_output_length) |
| 205 | { |
| 206 | psa_status_t status = (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); |
| 207 | return status; |
| 208 | } |
| 209 | |
| 210 | /* Wrapper for psa_asymmetric_encrypt */ |
| 211 | psa_status_t mbedtls_test_wrap_psa_asymmetric_encrypt( |
| 212 | mbedtls_svc_key_id_t arg0_key, |
| 213 | psa_algorithm_t arg1_alg, |
| 214 | const uint8_t *arg2_input, |
| 215 | size_t arg3_input_length, |
| 216 | const uint8_t *arg4_salt, |
| 217 | size_t arg5_salt_length, |
| 218 | uint8_t *arg6_output, |
| 219 | size_t arg7_output_size, |
| 220 | size_t *arg8_output_length) |
| 221 | { |
| 222 | psa_status_t status = (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); |
| 223 | return status; |
| 224 | } |
| 225 | |
| 226 | /* Wrapper for psa_cipher_abort */ |
| 227 | psa_status_t mbedtls_test_wrap_psa_cipher_abort( |
| 228 | psa_cipher_operation_t *arg0_operation) |
| 229 | { |
| 230 | psa_status_t status = (psa_cipher_abort)(arg0_operation); |
| 231 | return status; |
| 232 | } |
| 233 | |
| 234 | /* Wrapper for psa_cipher_decrypt */ |
| 235 | psa_status_t mbedtls_test_wrap_psa_cipher_decrypt( |
| 236 | mbedtls_svc_key_id_t arg0_key, |
| 237 | psa_algorithm_t arg1_alg, |
| 238 | const uint8_t *arg2_input, |
| 239 | size_t arg3_input_length, |
| 240 | uint8_t *arg4_output, |
| 241 | size_t arg5_output_size, |
| 242 | size_t *arg6_output_length) |
| 243 | { |
| 244 | psa_status_t status = (psa_cipher_decrypt)(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length); |
| 245 | return status; |
| 246 | } |
| 247 | |
| 248 | /* Wrapper for psa_cipher_decrypt_setup */ |
| 249 | psa_status_t mbedtls_test_wrap_psa_cipher_decrypt_setup( |
| 250 | psa_cipher_operation_t *arg0_operation, |
| 251 | mbedtls_svc_key_id_t arg1_key, |
| 252 | psa_algorithm_t arg2_alg) |
| 253 | { |
| 254 | psa_status_t status = (psa_cipher_decrypt_setup)(arg0_operation, arg1_key, arg2_alg); |
| 255 | return status; |
| 256 | } |
| 257 | |
| 258 | /* Wrapper for psa_cipher_encrypt */ |
| 259 | psa_status_t mbedtls_test_wrap_psa_cipher_encrypt( |
| 260 | mbedtls_svc_key_id_t arg0_key, |
| 261 | psa_algorithm_t arg1_alg, |
| 262 | const uint8_t *arg2_input, |
| 263 | size_t arg3_input_length, |
| 264 | uint8_t *arg4_output, |
| 265 | size_t arg5_output_size, |
| 266 | size_t *arg6_output_length) |
| 267 | { |
| 268 | psa_status_t status = (psa_cipher_encrypt)(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length); |
| 269 | return status; |
| 270 | } |
| 271 | |
| 272 | /* Wrapper for psa_cipher_encrypt_setup */ |
| 273 | psa_status_t mbedtls_test_wrap_psa_cipher_encrypt_setup( |
| 274 | psa_cipher_operation_t *arg0_operation, |
| 275 | mbedtls_svc_key_id_t arg1_key, |
| 276 | psa_algorithm_t arg2_alg) |
| 277 | { |
| 278 | psa_status_t status = (psa_cipher_encrypt_setup)(arg0_operation, arg1_key, arg2_alg); |
| 279 | return status; |
| 280 | } |
| 281 | |
| 282 | /* Wrapper for psa_cipher_finish */ |
| 283 | psa_status_t mbedtls_test_wrap_psa_cipher_finish( |
| 284 | psa_cipher_operation_t *arg0_operation, |
| 285 | uint8_t *arg1_output, |
| 286 | size_t arg2_output_size, |
| 287 | size_t *arg3_output_length) |
| 288 | { |
| 289 | psa_status_t status = (psa_cipher_finish)(arg0_operation, arg1_output, arg2_output_size, arg3_output_length); |
| 290 | return status; |
| 291 | } |
| 292 | |
| 293 | /* Wrapper for psa_cipher_generate_iv */ |
| 294 | psa_status_t mbedtls_test_wrap_psa_cipher_generate_iv( |
| 295 | psa_cipher_operation_t *arg0_operation, |
| 296 | uint8_t *arg1_iv, |
| 297 | size_t arg2_iv_size, |
| 298 | size_t *arg3_iv_length) |
| 299 | { |
| 300 | psa_status_t status = (psa_cipher_generate_iv)(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length); |
| 301 | return status; |
| 302 | } |
| 303 | |
| 304 | /* Wrapper for psa_cipher_set_iv */ |
| 305 | psa_status_t mbedtls_test_wrap_psa_cipher_set_iv( |
| 306 | psa_cipher_operation_t *arg0_operation, |
| 307 | const uint8_t *arg1_iv, |
| 308 | size_t arg2_iv_length) |
| 309 | { |
| 310 | psa_status_t status = (psa_cipher_set_iv)(arg0_operation, arg1_iv, arg2_iv_length); |
| 311 | return status; |
| 312 | } |
| 313 | |
| 314 | /* Wrapper for psa_cipher_update */ |
| 315 | psa_status_t mbedtls_test_wrap_psa_cipher_update( |
| 316 | psa_cipher_operation_t *arg0_operation, |
| 317 | const uint8_t *arg1_input, |
| 318 | size_t arg2_input_length, |
| 319 | uint8_t *arg3_output, |
| 320 | size_t arg4_output_size, |
| 321 | size_t *arg5_output_length) |
| 322 | { |
| 323 | psa_status_t status = (psa_cipher_update)(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length); |
| 324 | return status; |
| 325 | } |
| 326 | |
| 327 | /* Wrapper for psa_copy_key */ |
| 328 | psa_status_t mbedtls_test_wrap_psa_copy_key( |
| 329 | mbedtls_svc_key_id_t arg0_source_key, |
| 330 | const psa_key_attributes_t *arg1_attributes, |
| 331 | mbedtls_svc_key_id_t *arg2_target_key) |
| 332 | { |
| 333 | psa_status_t status = (psa_copy_key)(arg0_source_key, arg1_attributes, arg2_target_key); |
| 334 | return status; |
| 335 | } |
| 336 | |
| 337 | /* Wrapper for psa_crypto_driver_pake_get_cipher_suite */ |
| 338 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_cipher_suite( |
| 339 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 340 | psa_pake_cipher_suite_t *arg1_cipher_suite) |
| 341 | { |
| 342 | psa_status_t status = (psa_crypto_driver_pake_get_cipher_suite)(arg0_inputs, arg1_cipher_suite); |
| 343 | return status; |
| 344 | } |
| 345 | |
| 346 | /* Wrapper for psa_crypto_driver_pake_get_password */ |
| 347 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password( |
| 348 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 349 | uint8_t *arg1_buffer, |
| 350 | size_t arg2_buffer_size, |
| 351 | size_t *arg3_buffer_length) |
| 352 | { |
| 353 | psa_status_t status = (psa_crypto_driver_pake_get_password)(arg0_inputs, arg1_buffer, arg2_buffer_size, arg3_buffer_length); |
| 354 | return status; |
| 355 | } |
| 356 | |
| 357 | /* Wrapper for psa_crypto_driver_pake_get_password_len */ |
| 358 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_password_len( |
| 359 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 360 | size_t *arg1_password_len) |
| 361 | { |
| 362 | psa_status_t status = (psa_crypto_driver_pake_get_password_len)(arg0_inputs, arg1_password_len); |
| 363 | return status; |
| 364 | } |
| 365 | |
| 366 | /* Wrapper for psa_crypto_driver_pake_get_peer */ |
| 367 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer( |
| 368 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 369 | uint8_t *arg1_peer_id, |
| 370 | size_t arg2_peer_id_size, |
| 371 | size_t *arg3_peer_id_length) |
| 372 | { |
| 373 | psa_status_t status = (psa_crypto_driver_pake_get_peer)(arg0_inputs, arg1_peer_id, arg2_peer_id_size, arg3_peer_id_length); |
| 374 | return status; |
| 375 | } |
| 376 | |
| 377 | /* Wrapper for psa_crypto_driver_pake_get_peer_len */ |
| 378 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_peer_len( |
| 379 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 380 | size_t *arg1_peer_len) |
| 381 | { |
| 382 | psa_status_t status = (psa_crypto_driver_pake_get_peer_len)(arg0_inputs, arg1_peer_len); |
| 383 | return status; |
| 384 | } |
| 385 | |
| 386 | /* Wrapper for psa_crypto_driver_pake_get_user */ |
| 387 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user( |
| 388 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 389 | uint8_t *arg1_user_id, |
| 390 | size_t arg2_user_id_size, |
| 391 | size_t *arg3_user_id_len) |
| 392 | { |
| 393 | psa_status_t status = (psa_crypto_driver_pake_get_user)(arg0_inputs, arg1_user_id, arg2_user_id_size, arg3_user_id_len); |
| 394 | return status; |
| 395 | } |
| 396 | |
| 397 | /* Wrapper for psa_crypto_driver_pake_get_user_len */ |
| 398 | psa_status_t mbedtls_test_wrap_psa_crypto_driver_pake_get_user_len( |
| 399 | const psa_crypto_driver_pake_inputs_t *arg0_inputs, |
| 400 | size_t *arg1_user_len) |
| 401 | { |
| 402 | psa_status_t status = (psa_crypto_driver_pake_get_user_len)(arg0_inputs, arg1_user_len); |
| 403 | return status; |
| 404 | } |
| 405 | |
| 406 | /* Wrapper for psa_crypto_init */ |
| 407 | psa_status_t mbedtls_test_wrap_psa_crypto_init(void) |
| 408 | { |
| 409 | psa_status_t status = (psa_crypto_init)(); |
| 410 | return status; |
| 411 | } |
| 412 | |
| 413 | /* Wrapper for psa_destroy_key */ |
| 414 | psa_status_t mbedtls_test_wrap_psa_destroy_key( |
| 415 | mbedtls_svc_key_id_t arg0_key) |
| 416 | { |
| 417 | psa_status_t status = (psa_destroy_key)(arg0_key); |
| 418 | return status; |
| 419 | } |
| 420 | |
| 421 | /* Wrapper for psa_export_key */ |
| 422 | psa_status_t mbedtls_test_wrap_psa_export_key( |
| 423 | mbedtls_svc_key_id_t arg0_key, |
| 424 | uint8_t *arg1_data, |
| 425 | size_t arg2_data_size, |
| 426 | size_t *arg3_data_length) |
| 427 | { |
| 428 | psa_status_t status = (psa_export_key)(arg0_key, arg1_data, arg2_data_size, arg3_data_length); |
| 429 | return status; |
| 430 | } |
| 431 | |
| 432 | /* Wrapper for psa_export_public_key */ |
| 433 | psa_status_t mbedtls_test_wrap_psa_export_public_key( |
| 434 | mbedtls_svc_key_id_t arg0_key, |
| 435 | uint8_t *arg1_data, |
| 436 | size_t arg2_data_size, |
| 437 | size_t *arg3_data_length) |
| 438 | { |
| 439 | psa_status_t status = (psa_export_public_key)(arg0_key, arg1_data, arg2_data_size, arg3_data_length); |
| 440 | return status; |
| 441 | } |
| 442 | |
| 443 | /* Wrapper for psa_generate_key */ |
| 444 | psa_status_t mbedtls_test_wrap_psa_generate_key( |
| 445 | const psa_key_attributes_t *arg0_attributes, |
| 446 | mbedtls_svc_key_id_t *arg1_key) |
| 447 | { |
| 448 | psa_status_t status = (psa_generate_key)(arg0_attributes, arg1_key); |
| 449 | return status; |
| 450 | } |
| 451 | |
| 452 | /* Wrapper for psa_generate_random */ |
| 453 | psa_status_t mbedtls_test_wrap_psa_generate_random( |
| 454 | uint8_t *arg0_output, |
| 455 | size_t arg1_output_size) |
| 456 | { |
| 457 | psa_status_t status = (psa_generate_random)(arg0_output, arg1_output_size); |
| 458 | return status; |
| 459 | } |
| 460 | |
| 461 | /* Wrapper for psa_get_key_attributes */ |
| 462 | psa_status_t mbedtls_test_wrap_psa_get_key_attributes( |
| 463 | mbedtls_svc_key_id_t arg0_key, |
| 464 | psa_key_attributes_t *arg1_attributes) |
| 465 | { |
| 466 | psa_status_t status = (psa_get_key_attributes)(arg0_key, arg1_attributes); |
| 467 | return status; |
| 468 | } |
| 469 | |
| 470 | /* Wrapper for psa_hash_abort */ |
| 471 | psa_status_t mbedtls_test_wrap_psa_hash_abort( |
| 472 | psa_hash_operation_t *arg0_operation) |
| 473 | { |
| 474 | psa_status_t status = (psa_hash_abort)(arg0_operation); |
| 475 | return status; |
| 476 | } |
| 477 | |
| 478 | /* Wrapper for psa_hash_clone */ |
| 479 | psa_status_t mbedtls_test_wrap_psa_hash_clone( |
| 480 | const psa_hash_operation_t *arg0_source_operation, |
| 481 | psa_hash_operation_t *arg1_target_operation) |
| 482 | { |
| 483 | psa_status_t status = (psa_hash_clone)(arg0_source_operation, arg1_target_operation); |
| 484 | return status; |
| 485 | } |
| 486 | |
| 487 | /* Wrapper for psa_hash_compare */ |
| 488 | psa_status_t mbedtls_test_wrap_psa_hash_compare( |
| 489 | psa_algorithm_t arg0_alg, |
| 490 | const uint8_t *arg1_input, |
| 491 | size_t arg2_input_length, |
| 492 | const uint8_t *arg3_hash, |
| 493 | size_t arg4_hash_length) |
| 494 | { |
| 495 | psa_status_t status = (psa_hash_compare)(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length); |
| 496 | return status; |
| 497 | } |
| 498 | |
| 499 | /* Wrapper for psa_hash_compute */ |
| 500 | psa_status_t mbedtls_test_wrap_psa_hash_compute( |
| 501 | psa_algorithm_t arg0_alg, |
| 502 | const uint8_t *arg1_input, |
| 503 | size_t arg2_input_length, |
| 504 | uint8_t *arg3_hash, |
| 505 | size_t arg4_hash_size, |
| 506 | size_t *arg5_hash_length) |
| 507 | { |
| 508 | psa_status_t status = (psa_hash_compute)(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length); |
| 509 | return status; |
| 510 | } |
| 511 | |
| 512 | /* Wrapper for psa_hash_finish */ |
| 513 | psa_status_t mbedtls_test_wrap_psa_hash_finish( |
| 514 | psa_hash_operation_t *arg0_operation, |
| 515 | uint8_t *arg1_hash, |
| 516 | size_t arg2_hash_size, |
| 517 | size_t *arg3_hash_length) |
| 518 | { |
| 519 | psa_status_t status = (psa_hash_finish)(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length); |
| 520 | return status; |
| 521 | } |
| 522 | |
| 523 | /* Wrapper for psa_hash_setup */ |
| 524 | psa_status_t mbedtls_test_wrap_psa_hash_setup( |
| 525 | psa_hash_operation_t *arg0_operation, |
| 526 | psa_algorithm_t arg1_alg) |
| 527 | { |
| 528 | psa_status_t status = (psa_hash_setup)(arg0_operation, arg1_alg); |
| 529 | return status; |
| 530 | } |
| 531 | |
| 532 | /* Wrapper for psa_hash_update */ |
| 533 | psa_status_t mbedtls_test_wrap_psa_hash_update( |
| 534 | psa_hash_operation_t *arg0_operation, |
| 535 | const uint8_t *arg1_input, |
| 536 | size_t arg2_input_length) |
| 537 | { |
| 538 | psa_status_t status = (psa_hash_update)(arg0_operation, arg1_input, arg2_input_length); |
| 539 | return status; |
| 540 | } |
| 541 | |
| 542 | /* Wrapper for psa_hash_verify */ |
| 543 | psa_status_t mbedtls_test_wrap_psa_hash_verify( |
| 544 | psa_hash_operation_t *arg0_operation, |
| 545 | const uint8_t *arg1_hash, |
| 546 | size_t arg2_hash_length) |
| 547 | { |
| 548 | psa_status_t status = (psa_hash_verify)(arg0_operation, arg1_hash, arg2_hash_length); |
| 549 | return status; |
| 550 | } |
| 551 | |
| 552 | /* Wrapper for psa_import_key */ |
| 553 | psa_status_t mbedtls_test_wrap_psa_import_key( |
| 554 | const psa_key_attributes_t *arg0_attributes, |
| 555 | const uint8_t *arg1_data, |
| 556 | size_t arg2_data_length, |
| 557 | mbedtls_svc_key_id_t *arg3_key) |
| 558 | { |
| 559 | psa_status_t status = (psa_import_key)(arg0_attributes, arg1_data, arg2_data_length, arg3_key); |
| 560 | return status; |
| 561 | } |
| 562 | |
| 563 | /* Wrapper for psa_key_derivation_abort */ |
| 564 | psa_status_t mbedtls_test_wrap_psa_key_derivation_abort( |
| 565 | psa_key_derivation_operation_t *arg0_operation) |
| 566 | { |
| 567 | psa_status_t status = (psa_key_derivation_abort)(arg0_operation); |
| 568 | return status; |
| 569 | } |
| 570 | |
| 571 | /* Wrapper for psa_key_derivation_get_capacity */ |
| 572 | psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity( |
| 573 | const psa_key_derivation_operation_t *arg0_operation, |
| 574 | size_t *arg1_capacity) |
| 575 | { |
| 576 | psa_status_t status = (psa_key_derivation_get_capacity)(arg0_operation, arg1_capacity); |
| 577 | return status; |
| 578 | } |
| 579 | |
| 580 | /* Wrapper for psa_key_derivation_input_bytes */ |
| 581 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes( |
| 582 | psa_key_derivation_operation_t *arg0_operation, |
| 583 | psa_key_derivation_step_t arg1_step, |
| 584 | const uint8_t *arg2_data, |
| 585 | size_t arg3_data_length) |
| 586 | { |
| 587 | psa_status_t status = (psa_key_derivation_input_bytes)(arg0_operation, arg1_step, arg2_data, arg3_data_length); |
| 588 | return status; |
| 589 | } |
| 590 | |
| 591 | /* Wrapper for psa_key_derivation_input_integer */ |
| 592 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_integer( |
| 593 | psa_key_derivation_operation_t *arg0_operation, |
| 594 | psa_key_derivation_step_t arg1_step, |
| 595 | uint64_t arg2_value) |
| 596 | { |
| 597 | psa_status_t status = (psa_key_derivation_input_integer)(arg0_operation, arg1_step, arg2_value); |
| 598 | return status; |
| 599 | } |
| 600 | |
| 601 | /* Wrapper for psa_key_derivation_input_key */ |
| 602 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key( |
| 603 | psa_key_derivation_operation_t *arg0_operation, |
| 604 | psa_key_derivation_step_t arg1_step, |
| 605 | mbedtls_svc_key_id_t arg2_key) |
| 606 | { |
| 607 | psa_status_t status = (psa_key_derivation_input_key)(arg0_operation, arg1_step, arg2_key); |
| 608 | return status; |
| 609 | } |
| 610 | |
| 611 | /* Wrapper for psa_key_derivation_key_agreement */ |
| 612 | psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement( |
| 613 | psa_key_derivation_operation_t *arg0_operation, |
| 614 | psa_key_derivation_step_t arg1_step, |
| 615 | mbedtls_svc_key_id_t arg2_private_key, |
| 616 | const uint8_t *arg3_peer_key, |
| 617 | size_t arg4_peer_key_length) |
| 618 | { |
| 619 | psa_status_t status = (psa_key_derivation_key_agreement)(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length); |
| 620 | return status; |
| 621 | } |
| 622 | |
| 623 | /* Wrapper for psa_key_derivation_output_bytes */ |
| 624 | psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes( |
| 625 | psa_key_derivation_operation_t *arg0_operation, |
| 626 | uint8_t *arg1_output, |
| 627 | size_t arg2_output_length) |
| 628 | { |
| 629 | psa_status_t status = (psa_key_derivation_output_bytes)(arg0_operation, arg1_output, arg2_output_length); |
| 630 | return status; |
| 631 | } |
| 632 | |
| 633 | /* Wrapper for psa_key_derivation_output_key */ |
| 634 | psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key( |
| 635 | const psa_key_attributes_t *arg0_attributes, |
| 636 | psa_key_derivation_operation_t *arg1_operation, |
| 637 | mbedtls_svc_key_id_t *arg2_key) |
| 638 | { |
| 639 | psa_status_t status = (psa_key_derivation_output_key)(arg0_attributes, arg1_operation, arg2_key); |
| 640 | return status; |
| 641 | } |
| 642 | |
| 643 | /* Wrapper for psa_key_derivation_set_capacity */ |
| 644 | psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity( |
| 645 | psa_key_derivation_operation_t *arg0_operation, |
| 646 | size_t arg1_capacity) |
| 647 | { |
| 648 | psa_status_t status = (psa_key_derivation_set_capacity)(arg0_operation, arg1_capacity); |
| 649 | return status; |
| 650 | } |
| 651 | |
| 652 | /* Wrapper for psa_key_derivation_setup */ |
| 653 | psa_status_t mbedtls_test_wrap_psa_key_derivation_setup( |
| 654 | psa_key_derivation_operation_t *arg0_operation, |
| 655 | psa_algorithm_t arg1_alg) |
| 656 | { |
| 657 | psa_status_t status = (psa_key_derivation_setup)(arg0_operation, arg1_alg); |
| 658 | return status; |
| 659 | } |
| 660 | |
| 661 | /* Wrapper for psa_mac_abort */ |
| 662 | psa_status_t mbedtls_test_wrap_psa_mac_abort( |
| 663 | psa_mac_operation_t *arg0_operation) |
| 664 | { |
| 665 | psa_status_t status = (psa_mac_abort)(arg0_operation); |
| 666 | return status; |
| 667 | } |
| 668 | |
| 669 | /* Wrapper for psa_mac_compute */ |
| 670 | psa_status_t mbedtls_test_wrap_psa_mac_compute( |
| 671 | mbedtls_svc_key_id_t arg0_key, |
| 672 | psa_algorithm_t arg1_alg, |
| 673 | const uint8_t *arg2_input, |
| 674 | size_t arg3_input_length, |
| 675 | uint8_t *arg4_mac, |
| 676 | size_t arg5_mac_size, |
| 677 | size_t *arg6_mac_length) |
| 678 | { |
| 679 | psa_status_t status = (psa_mac_compute)(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length); |
| 680 | return status; |
| 681 | } |
| 682 | |
| 683 | /* Wrapper for psa_mac_sign_finish */ |
| 684 | psa_status_t mbedtls_test_wrap_psa_mac_sign_finish( |
| 685 | psa_mac_operation_t *arg0_operation, |
| 686 | uint8_t *arg1_mac, |
| 687 | size_t arg2_mac_size, |
| 688 | size_t *arg3_mac_length) |
| 689 | { |
| 690 | psa_status_t status = (psa_mac_sign_finish)(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length); |
| 691 | return status; |
| 692 | } |
| 693 | |
| 694 | /* Wrapper for psa_mac_sign_setup */ |
| 695 | psa_status_t mbedtls_test_wrap_psa_mac_sign_setup( |
| 696 | psa_mac_operation_t *arg0_operation, |
| 697 | mbedtls_svc_key_id_t arg1_key, |
| 698 | psa_algorithm_t arg2_alg) |
| 699 | { |
| 700 | psa_status_t status = (psa_mac_sign_setup)(arg0_operation, arg1_key, arg2_alg); |
| 701 | return status; |
| 702 | } |
| 703 | |
| 704 | /* Wrapper for psa_mac_update */ |
| 705 | psa_status_t mbedtls_test_wrap_psa_mac_update( |
| 706 | psa_mac_operation_t *arg0_operation, |
| 707 | const uint8_t *arg1_input, |
| 708 | size_t arg2_input_length) |
| 709 | { |
| 710 | psa_status_t status = (psa_mac_update)(arg0_operation, arg1_input, arg2_input_length); |
| 711 | return status; |
| 712 | } |
| 713 | |
| 714 | /* Wrapper for psa_mac_verify */ |
| 715 | psa_status_t mbedtls_test_wrap_psa_mac_verify( |
| 716 | mbedtls_svc_key_id_t arg0_key, |
| 717 | psa_algorithm_t arg1_alg, |
| 718 | const uint8_t *arg2_input, |
| 719 | size_t arg3_input_length, |
| 720 | const uint8_t *arg4_mac, |
| 721 | size_t arg5_mac_length) |
| 722 | { |
| 723 | psa_status_t status = (psa_mac_verify)(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length); |
| 724 | return status; |
| 725 | } |
| 726 | |
| 727 | /* Wrapper for psa_mac_verify_finish */ |
| 728 | psa_status_t mbedtls_test_wrap_psa_mac_verify_finish( |
| 729 | psa_mac_operation_t *arg0_operation, |
| 730 | const uint8_t *arg1_mac, |
| 731 | size_t arg2_mac_length) |
| 732 | { |
| 733 | psa_status_t status = (psa_mac_verify_finish)(arg0_operation, arg1_mac, arg2_mac_length); |
| 734 | return status; |
| 735 | } |
| 736 | |
| 737 | /* Wrapper for psa_mac_verify_setup */ |
| 738 | psa_status_t mbedtls_test_wrap_psa_mac_verify_setup( |
| 739 | psa_mac_operation_t *arg0_operation, |
| 740 | mbedtls_svc_key_id_t arg1_key, |
| 741 | psa_algorithm_t arg2_alg) |
| 742 | { |
| 743 | psa_status_t status = (psa_mac_verify_setup)(arg0_operation, arg1_key, arg2_alg); |
| 744 | return status; |
| 745 | } |
| 746 | |
| 747 | /* Wrapper for psa_pake_abort */ |
| 748 | psa_status_t mbedtls_test_wrap_psa_pake_abort( |
| 749 | psa_pake_operation_t *arg0_operation) |
| 750 | { |
| 751 | psa_status_t status = (psa_pake_abort)(arg0_operation); |
| 752 | return status; |
| 753 | } |
| 754 | |
| 755 | /* Wrapper for psa_pake_get_implicit_key */ |
| 756 | psa_status_t mbedtls_test_wrap_psa_pake_get_implicit_key( |
| 757 | psa_pake_operation_t *arg0_operation, |
| 758 | psa_key_derivation_operation_t *arg1_output) |
| 759 | { |
| 760 | psa_status_t status = (psa_pake_get_implicit_key)(arg0_operation, arg1_output); |
| 761 | return status; |
| 762 | } |
| 763 | |
| 764 | /* Wrapper for psa_pake_input */ |
| 765 | psa_status_t mbedtls_test_wrap_psa_pake_input( |
| 766 | psa_pake_operation_t *arg0_operation, |
| 767 | psa_pake_step_t arg1_step, |
| 768 | const uint8_t *arg2_input, |
| 769 | size_t arg3_input_length) |
| 770 | { |
| 771 | psa_status_t status = (psa_pake_input)(arg0_operation, arg1_step, arg2_input, arg3_input_length); |
| 772 | return status; |
| 773 | } |
| 774 | |
| 775 | /* Wrapper for psa_pake_output */ |
| 776 | psa_status_t mbedtls_test_wrap_psa_pake_output( |
| 777 | psa_pake_operation_t *arg0_operation, |
| 778 | psa_pake_step_t arg1_step, |
| 779 | uint8_t *arg2_output, |
| 780 | size_t arg3_output_size, |
| 781 | size_t *arg4_output_length) |
| 782 | { |
| 783 | psa_status_t status = (psa_pake_output)(arg0_operation, arg1_step, arg2_output, arg3_output_size, arg4_output_length); |
| 784 | return status; |
| 785 | } |
| 786 | |
| 787 | /* Wrapper for psa_pake_set_password_key */ |
| 788 | psa_status_t mbedtls_test_wrap_psa_pake_set_password_key( |
| 789 | psa_pake_operation_t *arg0_operation, |
| 790 | mbedtls_svc_key_id_t arg1_password) |
| 791 | { |
| 792 | psa_status_t status = (psa_pake_set_password_key)(arg0_operation, arg1_password); |
| 793 | return status; |
| 794 | } |
| 795 | |
| 796 | /* Wrapper for psa_pake_set_peer */ |
| 797 | psa_status_t mbedtls_test_wrap_psa_pake_set_peer( |
| 798 | psa_pake_operation_t *arg0_operation, |
| 799 | const uint8_t *arg1_peer_id, |
| 800 | size_t arg2_peer_id_len) |
| 801 | { |
| 802 | psa_status_t status = (psa_pake_set_peer)(arg0_operation, arg1_peer_id, arg2_peer_id_len); |
| 803 | return status; |
| 804 | } |
| 805 | |
| 806 | /* Wrapper for psa_pake_set_role */ |
| 807 | psa_status_t mbedtls_test_wrap_psa_pake_set_role( |
| 808 | psa_pake_operation_t *arg0_operation, |
| 809 | psa_pake_role_t arg1_role) |
| 810 | { |
| 811 | psa_status_t status = (psa_pake_set_role)(arg0_operation, arg1_role); |
| 812 | return status; |
| 813 | } |
| 814 | |
| 815 | /* Wrapper for psa_pake_set_user */ |
| 816 | psa_status_t mbedtls_test_wrap_psa_pake_set_user( |
| 817 | psa_pake_operation_t *arg0_operation, |
| 818 | const uint8_t *arg1_user_id, |
| 819 | size_t arg2_user_id_len) |
| 820 | { |
| 821 | psa_status_t status = (psa_pake_set_user)(arg0_operation, arg1_user_id, arg2_user_id_len); |
| 822 | return status; |
| 823 | } |
| 824 | |
| 825 | /* Wrapper for psa_pake_setup */ |
| 826 | psa_status_t mbedtls_test_wrap_psa_pake_setup( |
| 827 | psa_pake_operation_t *arg0_operation, |
| 828 | const psa_pake_cipher_suite_t *arg1_cipher_suite) |
| 829 | { |
| 830 | psa_status_t status = (psa_pake_setup)(arg0_operation, arg1_cipher_suite); |
| 831 | return status; |
| 832 | } |
| 833 | |
| 834 | /* Wrapper for psa_purge_key */ |
| 835 | psa_status_t mbedtls_test_wrap_psa_purge_key( |
| 836 | mbedtls_svc_key_id_t arg0_key) |
| 837 | { |
| 838 | psa_status_t status = (psa_purge_key)(arg0_key); |
| 839 | return status; |
| 840 | } |
| 841 | |
| 842 | /* Wrapper for psa_raw_key_agreement */ |
| 843 | psa_status_t mbedtls_test_wrap_psa_raw_key_agreement( |
| 844 | psa_algorithm_t arg0_alg, |
| 845 | mbedtls_svc_key_id_t arg1_private_key, |
| 846 | const uint8_t *arg2_peer_key, |
| 847 | size_t arg3_peer_key_length, |
| 848 | uint8_t *arg4_output, |
| 849 | size_t arg5_output_size, |
| 850 | size_t *arg6_output_length) |
| 851 | { |
| 852 | psa_status_t status = (psa_raw_key_agreement)(arg0_alg, arg1_private_key, arg2_peer_key, arg3_peer_key_length, arg4_output, arg5_output_size, arg6_output_length); |
| 853 | return status; |
| 854 | } |
| 855 | |
| 856 | /* Wrapper for psa_sign_hash */ |
| 857 | psa_status_t mbedtls_test_wrap_psa_sign_hash( |
| 858 | mbedtls_svc_key_id_t arg0_key, |
| 859 | psa_algorithm_t arg1_alg, |
| 860 | const uint8_t *arg2_hash, |
| 861 | size_t arg3_hash_length, |
| 862 | uint8_t *arg4_signature, |
| 863 | size_t arg5_signature_size, |
| 864 | size_t *arg6_signature_length) |
| 865 | { |
| 866 | psa_status_t status = (psa_sign_hash)(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length); |
| 867 | return status; |
| 868 | } |
| 869 | |
| 870 | /* Wrapper for psa_sign_hash_abort */ |
| 871 | psa_status_t mbedtls_test_wrap_psa_sign_hash_abort( |
| 872 | psa_sign_hash_interruptible_operation_t *arg0_operation) |
| 873 | { |
| 874 | psa_status_t status = (psa_sign_hash_abort)(arg0_operation); |
| 875 | return status; |
| 876 | } |
| 877 | |
| 878 | /* Wrapper for psa_sign_hash_complete */ |
| 879 | psa_status_t mbedtls_test_wrap_psa_sign_hash_complete( |
| 880 | psa_sign_hash_interruptible_operation_t *arg0_operation, |
| 881 | uint8_t *arg1_signature, |
| 882 | size_t arg2_signature_size, |
| 883 | size_t *arg3_signature_length) |
| 884 | { |
| 885 | psa_status_t status = (psa_sign_hash_complete)(arg0_operation, arg1_signature, arg2_signature_size, arg3_signature_length); |
| 886 | return status; |
| 887 | } |
| 888 | |
| 889 | /* Wrapper for psa_sign_hash_start */ |
| 890 | psa_status_t mbedtls_test_wrap_psa_sign_hash_start( |
| 891 | psa_sign_hash_interruptible_operation_t *arg0_operation, |
| 892 | mbedtls_svc_key_id_t arg1_key, |
| 893 | psa_algorithm_t arg2_alg, |
| 894 | const uint8_t *arg3_hash, |
| 895 | size_t arg4_hash_length) |
| 896 | { |
| 897 | psa_status_t status = (psa_sign_hash_start)(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length); |
| 898 | return status; |
| 899 | } |
| 900 | |
| 901 | /* Wrapper for psa_sign_message */ |
| 902 | psa_status_t mbedtls_test_wrap_psa_sign_message( |
| 903 | mbedtls_svc_key_id_t arg0_key, |
| 904 | psa_algorithm_t arg1_alg, |
| 905 | const uint8_t *arg2_input, |
| 906 | size_t arg3_input_length, |
| 907 | uint8_t *arg4_signature, |
| 908 | size_t arg5_signature_size, |
| 909 | size_t *arg6_signature_length) |
| 910 | { |
| 911 | psa_status_t status = (psa_sign_message)(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length); |
| 912 | return status; |
| 913 | } |
| 914 | |
| 915 | /* Wrapper for psa_verify_hash */ |
| 916 | psa_status_t mbedtls_test_wrap_psa_verify_hash( |
| 917 | mbedtls_svc_key_id_t arg0_key, |
| 918 | psa_algorithm_t arg1_alg, |
| 919 | const uint8_t *arg2_hash, |
| 920 | size_t arg3_hash_length, |
| 921 | const uint8_t *arg4_signature, |
| 922 | size_t arg5_signature_length) |
| 923 | { |
| 924 | psa_status_t status = (psa_verify_hash)(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length); |
| 925 | return status; |
| 926 | } |
| 927 | |
| 928 | /* Wrapper for psa_verify_hash_abort */ |
| 929 | psa_status_t mbedtls_test_wrap_psa_verify_hash_abort( |
| 930 | psa_verify_hash_interruptible_operation_t *arg0_operation) |
| 931 | { |
| 932 | psa_status_t status = (psa_verify_hash_abort)(arg0_operation); |
| 933 | return status; |
| 934 | } |
| 935 | |
| 936 | /* Wrapper for psa_verify_hash_complete */ |
| 937 | psa_status_t mbedtls_test_wrap_psa_verify_hash_complete( |
| 938 | psa_verify_hash_interruptible_operation_t *arg0_operation) |
| 939 | { |
| 940 | psa_status_t status = (psa_verify_hash_complete)(arg0_operation); |
| 941 | return status; |
| 942 | } |
| 943 | |
| 944 | /* Wrapper for psa_verify_hash_start */ |
| 945 | psa_status_t mbedtls_test_wrap_psa_verify_hash_start( |
| 946 | psa_verify_hash_interruptible_operation_t *arg0_operation, |
| 947 | mbedtls_svc_key_id_t arg1_key, |
| 948 | psa_algorithm_t arg2_alg, |
| 949 | const uint8_t *arg3_hash, |
| 950 | size_t arg4_hash_length, |
| 951 | const uint8_t *arg5_signature, |
| 952 | size_t arg6_signature_length) |
| 953 | { |
| 954 | psa_status_t status = (psa_verify_hash_start)(arg0_operation, arg1_key, arg2_alg, arg3_hash, arg4_hash_length, arg5_signature, arg6_signature_length); |
| 955 | return status; |
| 956 | } |
| 957 | |
| 958 | /* Wrapper for psa_verify_message */ |
| 959 | psa_status_t mbedtls_test_wrap_psa_verify_message( |
| 960 | mbedtls_svc_key_id_t arg0_key, |
| 961 | psa_algorithm_t arg1_alg, |
| 962 | const uint8_t *arg2_input, |
| 963 | size_t arg3_input_length, |
| 964 | const uint8_t *arg4_signature, |
| 965 | size_t arg5_signature_length) |
| 966 | { |
| 967 | psa_status_t status = (psa_verify_message)(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length); |
| 968 | return status; |
| 969 | } |
| 970 | |
| 971 | #endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) */ |
| 972 | |
| 973 | /* End of automatically generated file. */ |