• Home
  • Raw
  • Download

Lines Matching refs:attributes

110     const psa_key_attributes_t *attributes,  in psa_driver_wrapper_sign_message()  argument
122 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_sign_message()
132 attributes, in psa_driver_wrapper_sign_message()
153 attributes, in psa_driver_wrapper_sign_message()
173 return( psa_sign_message_builtin( attributes, in psa_driver_wrapper_sign_message()
185 const psa_key_attributes_t *attributes, in psa_driver_wrapper_verify_message() argument
196 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_verify_message()
206 attributes, in psa_driver_wrapper_verify_message()
226 attributes, in psa_driver_wrapper_verify_message()
245 return( psa_verify_message_builtin( attributes, in psa_driver_wrapper_verify_message()
256 const psa_key_attributes_t *attributes, in psa_driver_wrapper_sign_hash() argument
266 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_sign_hash()
283 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_sign_hash()
292 status = mbedtls_test_transparent_signature_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
307 return( psa_sign_hash_builtin( attributes, in psa_driver_wrapper_sign_hash()
321 return( mbedtls_test_opaque_signature_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
340 const psa_key_attributes_t *attributes, in psa_driver_wrapper_verify_hash() argument
350 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_verify_hash()
367 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_verify_hash()
377 attributes, in psa_driver_wrapper_verify_hash()
391 return( psa_verify_hash_builtin( attributes, in psa_driver_wrapper_verify_hash()
404 return( mbedtls_test_opaque_signature_verify_hash( attributes, in psa_driver_wrapper_verify_hash()
434 const psa_key_attributes_t *attributes, in psa_driver_wrapper_get_key_buffer_size_from_key_data() argument
440 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_get_key_buffer_size_from_key_data()
441 psa_key_type_t key_type = attributes->core.type; in psa_driver_wrapper_get_key_buffer_size_from_key_data()
478 const psa_key_attributes_t *attributes, in psa_driver_wrapper_get_key_buffer_size() argument
481 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_get_key_buffer_size()
482 psa_key_type_t key_type = attributes->core.type; in psa_driver_wrapper_get_key_buffer_size()
483 size_t key_bits = attributes->core.bits; in psa_driver_wrapper_get_key_buffer_size()
494 psa_get_key_id( attributes ) ) ) ) in psa_driver_wrapper_get_key_buffer_size()
514 const psa_key_attributes_t *attributes, in psa_driver_wrapper_generate_key() argument
519 PSA_KEY_LIFETIME_GET_LOCATION(attributes->core.lifetime); in psa_driver_wrapper_generate_key()
526 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_generate_key()
538 attributes, NULL, 0, &pubkey_length ) ); in psa_driver_wrapper_generate_key()
547 if( PSA_KEY_TYPE_IS_ASYMMETRIC( attributes->core.type ) ) in psa_driver_wrapper_generate_key()
552 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_generate_key()
563 attributes, key_buffer, key_buffer_size, key_buffer_length ); in psa_driver_wrapper_generate_key()
571 attributes, key_buffer, key_buffer_size, key_buffer_length ); in psa_driver_wrapper_generate_key()
586 const psa_key_attributes_t *attributes, in psa_driver_wrapper_import_key() argument
596 psa_get_key_lifetime( attributes ) ); in psa_driver_wrapper_import_key()
603 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_import_key()
615 attributes, data, data_length, bits ); in psa_driver_wrapper_import_key()
635 attributes, in psa_driver_wrapper_import_key()
645 return( psa_import_key_into_slot( attributes, in psa_driver_wrapper_import_key()
654 attributes, in psa_driver_wrapper_import_key()
668 const psa_key_attributes_t *attributes, in psa_driver_wrapper_export_key() argument
675 psa_get_key_lifetime( attributes ) ); in psa_driver_wrapper_export_key()
682 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_export_key()
700 return( psa_export_key_internal( attributes, in psa_driver_wrapper_export_key()
711 return( mbedtls_test_opaque_export_key( attributes, in psa_driver_wrapper_export_key()
726 const psa_key_attributes_t *attributes, in psa_driver_wrapper_export_public_key() argument
733 psa_get_key_lifetime( attributes ) ); in psa_driver_wrapper_export_public_key()
740 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_export_public_key()
763 attributes, in psa_driver_wrapper_export_public_key()
775 return( psa_export_public_key_internal( attributes, in psa_driver_wrapper_export_public_key()
786 return( mbedtls_test_opaque_export_public_key( attributes, in psa_driver_wrapper_export_public_key()
802 psa_key_attributes_t *attributes, in psa_driver_wrapper_get_builtin_key() argument
805 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_get_builtin_key()
812 attributes, in psa_driver_wrapper_get_builtin_key()
825 psa_key_attributes_t *attributes, in psa_driver_wrapper_copy_key() argument
832 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_copy_key()
838 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_copy_key()
850 return( mbedtls_test_opaque_copy_key( attributes, source_key, in psa_driver_wrapper_copy_key()
872 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_encrypt() argument
886 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_cipher_encrypt()
895 status = mbedtls_test_transparent_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
913 return( mbedtls_psa_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
932 return( mbedtls_test_opaque_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
964 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_decrypt() argument
976 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_cipher_decrypt()
985 status = mbedtls_test_transparent_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1001 return( mbedtls_psa_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1018 return( mbedtls_test_opaque_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1047 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_encrypt_setup() argument
1053 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_cipher_encrypt_setup()
1064 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1079 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1097 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1120 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_decrypt_setup() argument
1126 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_cipher_decrypt_setup()
1137 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1152 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1169 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1515 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_encrypt() argument
1525 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_aead_encrypt()
1536 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt()
1550 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt()
1567 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_decrypt() argument
1577 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_aead_decrypt()
1588 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_decrypt()
1602 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_decrypt()
1620 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_encrypt_setup() argument
1626 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_aead_encrypt_setup()
1639 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt_setup()
1651 &operation->ctx.mbedtls_ctx, attributes, in psa_driver_wrapper_aead_encrypt_setup()
1668 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_decrypt_setup() argument
1674 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_aead_decrypt_setup()
1687 attributes, in psa_driver_wrapper_aead_decrypt_setup()
1701 attributes, in psa_driver_wrapper_aead_decrypt_setup()
1998 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_compute() argument
2010 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_mac_compute()
2020 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2031 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2044 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2067 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_sign_setup() argument
2074 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_mac_sign_setup()
2085 attributes, in psa_driver_wrapper_mac_sign_setup()
2099 attributes, in psa_driver_wrapper_mac_sign_setup()
2116 attributes, in psa_driver_wrapper_mac_sign_setup()
2139 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_verify_setup() argument
2146 PSA_KEY_LIFETIME_GET_LOCATION( attributes->core.lifetime ); in psa_driver_wrapper_mac_verify_setup()
2157 attributes, in psa_driver_wrapper_mac_verify_setup()
2171 attributes, in psa_driver_wrapper_mac_verify_setup()
2188 attributes, in psa_driver_wrapper_mac_verify_setup()