Gilles Peskine | d5e5e6d | 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 | #if !defined(MBEDTLS_CONFIG_FILE) |
| 15 | #include "mbedtls/config.h" |
| 16 | #else |
| 17 | #include MBEDTLS_CONFIG_FILE |
| 18 | #endif |
| 19 | |
| 20 | #if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) |
| 21 | |
| 22 | #include <psa/crypto.h> |
| 23 | |
| 24 | #include <test/psa_crypto_helpers.h> |
| 25 | #include <test/psa_test_wrappers.h> |
| 26 | |
| 27 | #if defined(MBEDTLS_PSA_INJECT_ENTROPY) |
| 28 | psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy( |
| 29 | const uint8_t *arg0_seed, |
| 30 | size_t arg1_seed_size); |
| 31 | #define mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size) \ |
| 32 | mbedtls_test_wrap_mbedtls_psa_inject_entropy(arg0_seed, arg1_seed_size) |
| 33 | #endif /* defined(MBEDTLS_PSA_INJECT_ENTROPY) */ |
| 34 | |
| 35 | #if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) |
| 36 | psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key( |
| 37 | mbedtls_svc_key_id_t arg0_key_id, |
| 38 | psa_key_lifetime_t *arg1_lifetime, |
| 39 | psa_drv_slot_number_t *arg2_slot_number); |
| 40 | #define mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number) \ |
| 41 | mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(arg0_key_id, arg1_lifetime, arg2_slot_number) |
| 42 | #endif /* defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS) */ |
| 43 | |
| 44 | #if defined(MBEDTLS_PSA_CRYPTO_SE_C) |
| 45 | psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key( |
| 46 | const psa_key_attributes_t *arg0_attributes); |
| 47 | #define mbedtls_psa_register_se_key(arg0_attributes) \ |
| 48 | mbedtls_test_wrap_mbedtls_psa_register_se_key(arg0_attributes) |
| 49 | #endif /* defined(MBEDTLS_PSA_CRYPTO_SE_C) */ |
| 50 | |
| 51 | psa_status_t mbedtls_test_wrap_psa_aead_decrypt( |
| 52 | mbedtls_svc_key_id_t arg0_key, |
| 53 | psa_algorithm_t arg1_alg, |
| 54 | const uint8_t *arg2_nonce, |
| 55 | size_t arg3_nonce_length, |
| 56 | const uint8_t *arg4_additional_data, |
| 57 | size_t arg5_additional_data_length, |
| 58 | const uint8_t *arg6_ciphertext, |
| 59 | size_t arg7_ciphertext_length, |
| 60 | uint8_t *arg8_plaintext, |
| 61 | size_t arg9_plaintext_size, |
| 62 | size_t *arg10_plaintext_length); |
| 63 | #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) \ |
| 64 | 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) |
| 65 | |
| 66 | psa_status_t mbedtls_test_wrap_psa_aead_encrypt( |
| 67 | mbedtls_svc_key_id_t arg0_key, |
| 68 | psa_algorithm_t arg1_alg, |
| 69 | const uint8_t *arg2_nonce, |
| 70 | size_t arg3_nonce_length, |
| 71 | const uint8_t *arg4_additional_data, |
| 72 | size_t arg5_additional_data_length, |
| 73 | const uint8_t *arg6_plaintext, |
| 74 | size_t arg7_plaintext_length, |
| 75 | uint8_t *arg8_ciphertext, |
| 76 | size_t arg9_ciphertext_size, |
| 77 | size_t *arg10_ciphertext_length); |
| 78 | #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) \ |
| 79 | 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) |
| 80 | |
| 81 | psa_status_t mbedtls_test_wrap_psa_asymmetric_decrypt( |
| 82 | mbedtls_svc_key_id_t arg0_key, |
| 83 | psa_algorithm_t arg1_alg, |
| 84 | const uint8_t *arg2_input, |
| 85 | size_t arg3_input_length, |
| 86 | const uint8_t *arg4_salt, |
| 87 | size_t arg5_salt_length, |
| 88 | uint8_t *arg6_output, |
| 89 | size_t arg7_output_size, |
| 90 | size_t *arg8_output_length); |
| 91 | #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) \ |
| 92 | 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) |
| 93 | |
| 94 | psa_status_t mbedtls_test_wrap_psa_asymmetric_encrypt( |
| 95 | mbedtls_svc_key_id_t arg0_key, |
| 96 | psa_algorithm_t arg1_alg, |
| 97 | const uint8_t *arg2_input, |
| 98 | size_t arg3_input_length, |
| 99 | const uint8_t *arg4_salt, |
| 100 | size_t arg5_salt_length, |
| 101 | uint8_t *arg6_output, |
| 102 | size_t arg7_output_size, |
| 103 | size_t *arg8_output_length); |
| 104 | #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) \ |
| 105 | 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) |
| 106 | |
| 107 | psa_status_t mbedtls_test_wrap_psa_cipher_abort( |
| 108 | psa_cipher_operation_t *arg0_operation); |
| 109 | #define psa_cipher_abort(arg0_operation) \ |
| 110 | mbedtls_test_wrap_psa_cipher_abort(arg0_operation) |
| 111 | |
| 112 | psa_status_t mbedtls_test_wrap_psa_cipher_decrypt( |
| 113 | mbedtls_svc_key_id_t arg0_key, |
| 114 | psa_algorithm_t arg1_alg, |
| 115 | const uint8_t *arg2_input, |
| 116 | size_t arg3_input_length, |
| 117 | uint8_t *arg4_output, |
| 118 | size_t arg5_output_size, |
| 119 | size_t *arg6_output_length); |
| 120 | #define psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \ |
| 121 | mbedtls_test_wrap_psa_cipher_decrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) |
| 122 | |
| 123 | psa_status_t mbedtls_test_wrap_psa_cipher_decrypt_setup( |
| 124 | psa_cipher_operation_t *arg0_operation, |
| 125 | mbedtls_svc_key_id_t arg1_key, |
| 126 | psa_algorithm_t arg2_alg); |
| 127 | #define psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg) \ |
| 128 | mbedtls_test_wrap_psa_cipher_decrypt_setup(arg0_operation, arg1_key, arg2_alg) |
| 129 | |
| 130 | psa_status_t mbedtls_test_wrap_psa_cipher_encrypt( |
| 131 | mbedtls_svc_key_id_t arg0_key, |
| 132 | psa_algorithm_t arg1_alg, |
| 133 | const uint8_t *arg2_input, |
| 134 | size_t arg3_input_length, |
| 135 | uint8_t *arg4_output, |
| 136 | size_t arg5_output_size, |
| 137 | size_t *arg6_output_length); |
| 138 | #define psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) \ |
| 139 | mbedtls_test_wrap_psa_cipher_encrypt(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_output, arg5_output_size, arg6_output_length) |
| 140 | |
| 141 | psa_status_t mbedtls_test_wrap_psa_cipher_encrypt_setup( |
| 142 | psa_cipher_operation_t *arg0_operation, |
| 143 | mbedtls_svc_key_id_t arg1_key, |
| 144 | psa_algorithm_t arg2_alg); |
| 145 | #define psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg) \ |
| 146 | mbedtls_test_wrap_psa_cipher_encrypt_setup(arg0_operation, arg1_key, arg2_alg) |
| 147 | |
| 148 | psa_status_t mbedtls_test_wrap_psa_cipher_finish( |
| 149 | psa_cipher_operation_t *arg0_operation, |
| 150 | uint8_t *arg1_output, |
| 151 | size_t arg2_output_size, |
| 152 | size_t *arg3_output_length); |
| 153 | #define psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length) \ |
| 154 | mbedtls_test_wrap_psa_cipher_finish(arg0_operation, arg1_output, arg2_output_size, arg3_output_length) |
| 155 | |
| 156 | psa_status_t mbedtls_test_wrap_psa_cipher_generate_iv( |
| 157 | psa_cipher_operation_t *arg0_operation, |
| 158 | uint8_t *arg1_iv, |
| 159 | size_t arg2_iv_size, |
| 160 | size_t *arg3_iv_length); |
| 161 | #define psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length) \ |
| 162 | mbedtls_test_wrap_psa_cipher_generate_iv(arg0_operation, arg1_iv, arg2_iv_size, arg3_iv_length) |
| 163 | |
| 164 | psa_status_t mbedtls_test_wrap_psa_cipher_set_iv( |
| 165 | psa_cipher_operation_t *arg0_operation, |
| 166 | const uint8_t *arg1_iv, |
| 167 | size_t arg2_iv_length); |
| 168 | #define psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length) \ |
| 169 | mbedtls_test_wrap_psa_cipher_set_iv(arg0_operation, arg1_iv, arg2_iv_length) |
| 170 | |
| 171 | psa_status_t mbedtls_test_wrap_psa_cipher_update( |
| 172 | psa_cipher_operation_t *arg0_operation, |
| 173 | const uint8_t *arg1_input, |
| 174 | size_t arg2_input_length, |
| 175 | uint8_t *arg3_output, |
| 176 | size_t arg4_output_size, |
| 177 | size_t *arg5_output_length); |
| 178 | #define psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) \ |
| 179 | mbedtls_test_wrap_psa_cipher_update(arg0_operation, arg1_input, arg2_input_length, arg3_output, arg4_output_size, arg5_output_length) |
| 180 | |
| 181 | psa_status_t mbedtls_test_wrap_psa_copy_key( |
| 182 | mbedtls_svc_key_id_t arg0_source_key, |
| 183 | const psa_key_attributes_t *arg1_attributes, |
| 184 | mbedtls_svc_key_id_t *arg2_target_key); |
| 185 | #define psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key) \ |
| 186 | mbedtls_test_wrap_psa_copy_key(arg0_source_key, arg1_attributes, arg2_target_key) |
| 187 | |
| 188 | psa_status_t mbedtls_test_wrap_psa_crypto_init(void); |
| 189 | #define psa_crypto_init() \ |
| 190 | mbedtls_test_wrap_psa_crypto_init() |
| 191 | |
| 192 | psa_status_t mbedtls_test_wrap_psa_destroy_key( |
| 193 | mbedtls_svc_key_id_t arg0_key); |
| 194 | #define psa_destroy_key(arg0_key) \ |
| 195 | mbedtls_test_wrap_psa_destroy_key(arg0_key) |
| 196 | |
| 197 | psa_status_t mbedtls_test_wrap_psa_export_key( |
| 198 | mbedtls_svc_key_id_t arg0_key, |
| 199 | uint8_t *arg1_data, |
| 200 | size_t arg2_data_size, |
| 201 | size_t *arg3_data_length); |
| 202 | #define psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \ |
| 203 | mbedtls_test_wrap_psa_export_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) |
| 204 | |
| 205 | psa_status_t mbedtls_test_wrap_psa_export_public_key( |
| 206 | mbedtls_svc_key_id_t arg0_key, |
| 207 | uint8_t *arg1_data, |
| 208 | size_t arg2_data_size, |
| 209 | size_t *arg3_data_length); |
| 210 | #define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \ |
| 211 | mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) |
| 212 | |
| 213 | psa_status_t mbedtls_test_wrap_psa_generate_key( |
| 214 | const psa_key_attributes_t *arg0_attributes, |
| 215 | mbedtls_svc_key_id_t *arg1_key); |
| 216 | #define psa_generate_key(arg0_attributes, arg1_key) \ |
| 217 | mbedtls_test_wrap_psa_generate_key(arg0_attributes, arg1_key) |
| 218 | |
| 219 | psa_status_t mbedtls_test_wrap_psa_generate_random( |
| 220 | uint8_t *arg0_output, |
| 221 | size_t arg1_output_size); |
| 222 | #define psa_generate_random(arg0_output, arg1_output_size) \ |
| 223 | mbedtls_test_wrap_psa_generate_random(arg0_output, arg1_output_size) |
| 224 | |
| 225 | psa_status_t mbedtls_test_wrap_psa_get_key_attributes( |
| 226 | mbedtls_svc_key_id_t arg0_key, |
| 227 | psa_key_attributes_t *arg1_attributes); |
| 228 | #define psa_get_key_attributes(arg0_key, arg1_attributes) \ |
| 229 | mbedtls_test_wrap_psa_get_key_attributes(arg0_key, arg1_attributes) |
| 230 | |
| 231 | psa_status_t mbedtls_test_wrap_psa_hash_abort( |
| 232 | psa_hash_operation_t *arg0_operation); |
| 233 | #define psa_hash_abort(arg0_operation) \ |
| 234 | mbedtls_test_wrap_psa_hash_abort(arg0_operation) |
| 235 | |
| 236 | psa_status_t mbedtls_test_wrap_psa_hash_clone( |
| 237 | const psa_hash_operation_t *arg0_source_operation, |
| 238 | psa_hash_operation_t *arg1_target_operation); |
| 239 | #define psa_hash_clone(arg0_source_operation, arg1_target_operation) \ |
| 240 | mbedtls_test_wrap_psa_hash_clone(arg0_source_operation, arg1_target_operation) |
| 241 | |
| 242 | psa_status_t mbedtls_test_wrap_psa_hash_compare( |
| 243 | psa_algorithm_t arg0_alg, |
| 244 | const uint8_t *arg1_input, |
| 245 | size_t arg2_input_length, |
| 246 | const uint8_t *arg3_hash, |
| 247 | size_t arg4_hash_length); |
| 248 | #define psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) \ |
| 249 | mbedtls_test_wrap_psa_hash_compare(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_length) |
| 250 | |
| 251 | psa_status_t mbedtls_test_wrap_psa_hash_compute( |
| 252 | psa_algorithm_t arg0_alg, |
| 253 | const uint8_t *arg1_input, |
| 254 | size_t arg2_input_length, |
| 255 | uint8_t *arg3_hash, |
| 256 | size_t arg4_hash_size, |
| 257 | size_t *arg5_hash_length); |
| 258 | #define psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) \ |
| 259 | mbedtls_test_wrap_psa_hash_compute(arg0_alg, arg1_input, arg2_input_length, arg3_hash, arg4_hash_size, arg5_hash_length) |
| 260 | |
| 261 | psa_status_t mbedtls_test_wrap_psa_hash_finish( |
| 262 | psa_hash_operation_t *arg0_operation, |
| 263 | uint8_t *arg1_hash, |
| 264 | size_t arg2_hash_size, |
| 265 | size_t *arg3_hash_length); |
| 266 | #define psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) \ |
| 267 | mbedtls_test_wrap_psa_hash_finish(arg0_operation, arg1_hash, arg2_hash_size, arg3_hash_length) |
| 268 | |
| 269 | psa_status_t mbedtls_test_wrap_psa_hash_setup( |
| 270 | psa_hash_operation_t *arg0_operation, |
| 271 | psa_algorithm_t arg1_alg); |
| 272 | #define psa_hash_setup(arg0_operation, arg1_alg) \ |
| 273 | mbedtls_test_wrap_psa_hash_setup(arg0_operation, arg1_alg) |
| 274 | |
| 275 | psa_status_t mbedtls_test_wrap_psa_hash_update( |
| 276 | psa_hash_operation_t *arg0_operation, |
| 277 | const uint8_t *arg1_input, |
| 278 | size_t arg2_input_length); |
| 279 | #define psa_hash_update(arg0_operation, arg1_input, arg2_input_length) \ |
| 280 | mbedtls_test_wrap_psa_hash_update(arg0_operation, arg1_input, arg2_input_length) |
| 281 | |
| 282 | psa_status_t mbedtls_test_wrap_psa_hash_verify( |
| 283 | psa_hash_operation_t *arg0_operation, |
| 284 | const uint8_t *arg1_hash, |
| 285 | size_t arg2_hash_length); |
| 286 | #define psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) \ |
| 287 | mbedtls_test_wrap_psa_hash_verify(arg0_operation, arg1_hash, arg2_hash_length) |
| 288 | |
| 289 | psa_status_t mbedtls_test_wrap_psa_import_key( |
| 290 | const psa_key_attributes_t *arg0_attributes, |
| 291 | const uint8_t *arg1_data, |
| 292 | size_t arg2_data_length, |
| 293 | mbedtls_svc_key_id_t *arg3_key); |
| 294 | #define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \ |
| 295 | mbedtls_test_wrap_psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) |
| 296 | |
| 297 | psa_status_t mbedtls_test_wrap_psa_key_derivation_abort( |
| 298 | psa_key_derivation_operation_t *arg0_operation); |
| 299 | #define psa_key_derivation_abort(arg0_operation) \ |
| 300 | mbedtls_test_wrap_psa_key_derivation_abort(arg0_operation) |
| 301 | |
| 302 | psa_status_t mbedtls_test_wrap_psa_key_derivation_get_capacity( |
| 303 | const psa_key_derivation_operation_t *arg0_operation, |
| 304 | size_t *arg1_capacity); |
| 305 | #define psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) \ |
| 306 | mbedtls_test_wrap_psa_key_derivation_get_capacity(arg0_operation, arg1_capacity) |
| 307 | |
| 308 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_bytes( |
| 309 | psa_key_derivation_operation_t *arg0_operation, |
| 310 | psa_key_derivation_step_t arg1_step, |
| 311 | const uint8_t *arg2_data, |
| 312 | size_t arg3_data_length); |
| 313 | #define psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) \ |
| 314 | mbedtls_test_wrap_psa_key_derivation_input_bytes(arg0_operation, arg1_step, arg2_data, arg3_data_length) |
| 315 | |
| 316 | psa_status_t mbedtls_test_wrap_psa_key_derivation_input_key( |
| 317 | psa_key_derivation_operation_t *arg0_operation, |
| 318 | psa_key_derivation_step_t arg1_step, |
| 319 | mbedtls_svc_key_id_t arg2_key); |
| 320 | #define psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) \ |
| 321 | mbedtls_test_wrap_psa_key_derivation_input_key(arg0_operation, arg1_step, arg2_key) |
| 322 | |
| 323 | psa_status_t mbedtls_test_wrap_psa_key_derivation_key_agreement( |
| 324 | psa_key_derivation_operation_t *arg0_operation, |
| 325 | psa_key_derivation_step_t arg1_step, |
| 326 | mbedtls_svc_key_id_t arg2_private_key, |
| 327 | const uint8_t *arg3_peer_key, |
| 328 | size_t arg4_peer_key_length); |
| 329 | #define psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) \ |
| 330 | mbedtls_test_wrap_psa_key_derivation_key_agreement(arg0_operation, arg1_step, arg2_private_key, arg3_peer_key, arg4_peer_key_length) |
| 331 | |
| 332 | psa_status_t mbedtls_test_wrap_psa_key_derivation_output_bytes( |
| 333 | psa_key_derivation_operation_t *arg0_operation, |
| 334 | uint8_t *arg1_output, |
| 335 | size_t arg2_output_length); |
| 336 | #define psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) \ |
| 337 | mbedtls_test_wrap_psa_key_derivation_output_bytes(arg0_operation, arg1_output, arg2_output_length) |
| 338 | |
| 339 | psa_status_t mbedtls_test_wrap_psa_key_derivation_output_key( |
| 340 | const psa_key_attributes_t *arg0_attributes, |
| 341 | psa_key_derivation_operation_t *arg1_operation, |
| 342 | mbedtls_svc_key_id_t *arg2_key); |
| 343 | #define psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) \ |
| 344 | mbedtls_test_wrap_psa_key_derivation_output_key(arg0_attributes, arg1_operation, arg2_key) |
| 345 | |
| 346 | psa_status_t mbedtls_test_wrap_psa_key_derivation_set_capacity( |
| 347 | psa_key_derivation_operation_t *arg0_operation, |
| 348 | size_t arg1_capacity); |
| 349 | #define psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) \ |
| 350 | mbedtls_test_wrap_psa_key_derivation_set_capacity(arg0_operation, arg1_capacity) |
| 351 | |
| 352 | psa_status_t mbedtls_test_wrap_psa_key_derivation_setup( |
| 353 | psa_key_derivation_operation_t *arg0_operation, |
| 354 | psa_algorithm_t arg1_alg); |
| 355 | #define psa_key_derivation_setup(arg0_operation, arg1_alg) \ |
| 356 | mbedtls_test_wrap_psa_key_derivation_setup(arg0_operation, arg1_alg) |
| 357 | |
| 358 | psa_status_t mbedtls_test_wrap_psa_mac_abort( |
| 359 | psa_mac_operation_t *arg0_operation); |
| 360 | #define psa_mac_abort(arg0_operation) \ |
| 361 | mbedtls_test_wrap_psa_mac_abort(arg0_operation) |
| 362 | |
| 363 | psa_status_t mbedtls_test_wrap_psa_mac_compute( |
| 364 | mbedtls_svc_key_id_t arg0_key, |
| 365 | psa_algorithm_t arg1_alg, |
| 366 | const uint8_t *arg2_input, |
| 367 | size_t arg3_input_length, |
| 368 | uint8_t *arg4_mac, |
| 369 | size_t arg5_mac_size, |
| 370 | size_t *arg6_mac_length); |
| 371 | #define psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) \ |
| 372 | mbedtls_test_wrap_psa_mac_compute(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_size, arg6_mac_length) |
| 373 | |
| 374 | psa_status_t mbedtls_test_wrap_psa_mac_sign_finish( |
| 375 | psa_mac_operation_t *arg0_operation, |
| 376 | uint8_t *arg1_mac, |
| 377 | size_t arg2_mac_size, |
| 378 | size_t *arg3_mac_length); |
| 379 | #define psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) \ |
| 380 | mbedtls_test_wrap_psa_mac_sign_finish(arg0_operation, arg1_mac, arg2_mac_size, arg3_mac_length) |
| 381 | |
| 382 | psa_status_t mbedtls_test_wrap_psa_mac_sign_setup( |
| 383 | psa_mac_operation_t *arg0_operation, |
| 384 | mbedtls_svc_key_id_t arg1_key, |
| 385 | psa_algorithm_t arg2_alg); |
| 386 | #define psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) \ |
| 387 | mbedtls_test_wrap_psa_mac_sign_setup(arg0_operation, arg1_key, arg2_alg) |
| 388 | |
| 389 | psa_status_t mbedtls_test_wrap_psa_mac_update( |
| 390 | psa_mac_operation_t *arg0_operation, |
| 391 | const uint8_t *arg1_input, |
| 392 | size_t arg2_input_length); |
| 393 | #define psa_mac_update(arg0_operation, arg1_input, arg2_input_length) \ |
| 394 | mbedtls_test_wrap_psa_mac_update(arg0_operation, arg1_input, arg2_input_length) |
| 395 | |
| 396 | psa_status_t mbedtls_test_wrap_psa_mac_verify( |
| 397 | mbedtls_svc_key_id_t arg0_key, |
| 398 | psa_algorithm_t arg1_alg, |
| 399 | const uint8_t *arg2_input, |
| 400 | size_t arg3_input_length, |
| 401 | const uint8_t *arg4_mac, |
| 402 | size_t arg5_mac_length); |
| 403 | #define psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) \ |
| 404 | mbedtls_test_wrap_psa_mac_verify(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_mac, arg5_mac_length) |
| 405 | |
| 406 | psa_status_t mbedtls_test_wrap_psa_mac_verify_finish( |
| 407 | psa_mac_operation_t *arg0_operation, |
| 408 | const uint8_t *arg1_mac, |
| 409 | size_t arg2_mac_length); |
| 410 | #define psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) \ |
| 411 | mbedtls_test_wrap_psa_mac_verify_finish(arg0_operation, arg1_mac, arg2_mac_length) |
| 412 | |
| 413 | psa_status_t mbedtls_test_wrap_psa_mac_verify_setup( |
| 414 | psa_mac_operation_t *arg0_operation, |
| 415 | mbedtls_svc_key_id_t arg1_key, |
| 416 | psa_algorithm_t arg2_alg); |
| 417 | #define psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) \ |
| 418 | mbedtls_test_wrap_psa_mac_verify_setup(arg0_operation, arg1_key, arg2_alg) |
| 419 | |
| 420 | psa_status_t mbedtls_test_wrap_psa_purge_key( |
| 421 | mbedtls_svc_key_id_t arg0_key); |
| 422 | #define psa_purge_key(arg0_key) \ |
| 423 | mbedtls_test_wrap_psa_purge_key(arg0_key) |
| 424 | |
| 425 | psa_status_t mbedtls_test_wrap_psa_raw_key_agreement( |
| 426 | psa_algorithm_t arg0_alg, |
| 427 | mbedtls_svc_key_id_t arg1_private_key, |
| 428 | const uint8_t *arg2_peer_key, |
| 429 | size_t arg3_peer_key_length, |
| 430 | uint8_t *arg4_output, |
| 431 | size_t arg5_output_size, |
| 432 | size_t *arg6_output_length); |
| 433 | #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) \ |
| 434 | 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) |
| 435 | |
| 436 | psa_status_t mbedtls_test_wrap_psa_sign_hash( |
| 437 | mbedtls_svc_key_id_t arg0_key, |
| 438 | psa_algorithm_t arg1_alg, |
| 439 | const uint8_t *arg2_hash, |
| 440 | size_t arg3_hash_length, |
| 441 | uint8_t *arg4_signature, |
| 442 | size_t arg5_signature_size, |
| 443 | size_t *arg6_signature_length); |
| 444 | #define psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) \ |
| 445 | mbedtls_test_wrap_psa_sign_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_size, arg6_signature_length) |
| 446 | |
| 447 | psa_status_t mbedtls_test_wrap_psa_sign_message( |
| 448 | mbedtls_svc_key_id_t arg0_key, |
| 449 | psa_algorithm_t arg1_alg, |
| 450 | const uint8_t *arg2_input, |
| 451 | size_t arg3_input_length, |
| 452 | uint8_t *arg4_signature, |
| 453 | size_t arg5_signature_size, |
| 454 | size_t *arg6_signature_length); |
| 455 | #define psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) \ |
| 456 | mbedtls_test_wrap_psa_sign_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_size, arg6_signature_length) |
| 457 | |
| 458 | psa_status_t mbedtls_test_wrap_psa_verify_hash( |
| 459 | mbedtls_svc_key_id_t arg0_key, |
| 460 | psa_algorithm_t arg1_alg, |
| 461 | const uint8_t *arg2_hash, |
| 462 | size_t arg3_hash_length, |
| 463 | const uint8_t *arg4_signature, |
| 464 | size_t arg5_signature_length); |
| 465 | #define psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) \ |
| 466 | mbedtls_test_wrap_psa_verify_hash(arg0_key, arg1_alg, arg2_hash, arg3_hash_length, arg4_signature, arg5_signature_length) |
| 467 | |
| 468 | psa_status_t mbedtls_test_wrap_psa_verify_message( |
| 469 | mbedtls_svc_key_id_t arg0_key, |
| 470 | psa_algorithm_t arg1_alg, |
| 471 | const uint8_t *arg2_input, |
| 472 | size_t arg3_input_length, |
| 473 | const uint8_t *arg4_signature, |
| 474 | size_t arg5_signature_length); |
| 475 | #define psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) \ |
| 476 | mbedtls_test_wrap_psa_verify_message(arg0_key, arg1_alg, arg2_input, arg3_input_length, arg4_signature, arg5_signature_length) |
| 477 | |
| 478 | #endif /* defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_TEST_HOOKS) */ |
| 479 | |
| 480 | #ifdef __cplusplus |
| 481 | } |
| 482 | #endif |
| 483 | |
| 484 | #endif /* TEST_PSA_TEST_WRAPPERS_H */ |
| 485 | |
| 486 | /* End of automatically generated file. */ |