Lines Matching refs:attributes
157 const psa_key_attributes_t *attributes, in psa_driver_wrapper_sign_message() argument
169 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_sign_message()
182 attributes, in psa_driver_wrapper_sign_message()
197 attributes, in psa_driver_wrapper_sign_message()
209 return( psa_sign_message_builtin( attributes, in psa_driver_wrapper_sign_message()
225 attributes, in psa_driver_wrapper_sign_message()
247 const psa_key_attributes_t *attributes, in psa_driver_wrapper_verify_message() argument
258 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_verify_message()
271 attributes, in psa_driver_wrapper_verify_message()
285 attributes, in psa_driver_wrapper_verify_message()
296 return( psa_verify_message_builtin( attributes, in psa_driver_wrapper_verify_message()
310 attributes, in psa_driver_wrapper_verify_message()
331 const psa_key_attributes_t *attributes, in psa_driver_wrapper_sign_hash() argument
341 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_sign_hash()
358 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_sign_hash()
370 status = mbedtls_test_transparent_signature_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
384 status = cc3xx_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
396 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_sign_hash()
399 … PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(attributes)) == PSA_ECC_FAMILY_SECP_R1 && in psa_driver_wrapper_sign_hash()
400 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_sign_hash()
402 status = p256_transparent_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
417 return( psa_sign_hash_builtin( attributes, in psa_driver_wrapper_sign_hash()
431 return( mbedtls_test_opaque_signature_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
450 const psa_key_attributes_t *attributes, in psa_driver_wrapper_verify_hash() argument
460 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_verify_hash()
477 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_verify_hash()
490 attributes, in psa_driver_wrapper_verify_hash()
503 status = cc3xx_verify_hash( attributes, in psa_driver_wrapper_verify_hash()
514 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_verify_hash()
517 … PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(attributes)) == PSA_ECC_FAMILY_SECP_R1 && in psa_driver_wrapper_verify_hash()
518 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_verify_hash()
520 status = p256_transparent_verify_hash( attributes, in psa_driver_wrapper_verify_hash()
534 return( psa_verify_hash_builtin( attributes, in psa_driver_wrapper_verify_hash()
547 return( mbedtls_test_opaque_signature_verify_hash( attributes, in psa_driver_wrapper_verify_hash()
615 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_sign_hash_start() argument
621 psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_sign_hash_start()
645 attributes, in psa_driver_wrapper_sign_hash_start()
709 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_verify_hash_start() argument
716 psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_verify_hash_start()
740 attributes, in psa_driver_wrapper_verify_hash_start()
811 const psa_key_attributes_t *attributes, in psa_driver_wrapper_get_key_buffer_size_from_key_data() argument
817 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_get_key_buffer_size_from_key_data()
818 psa_key_type_t key_type = psa_get_key_type(attributes); in psa_driver_wrapper_get_key_buffer_size_from_key_data()
840 const psa_key_attributes_t *attributes, in psa_driver_wrapper_generate_key() argument
847 PSA_KEY_LIFETIME_GET_LOCATION(psa_get_key_lifetime(attributes)); in psa_driver_wrapper_generate_key()
868 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_generate_key()
880 attributes, NULL, 0, &pubkey_length ) ); in psa_driver_wrapper_generate_key()
894 if( PSA_KEY_TYPE_IS_ASYMMETRIC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_generate_key()
900 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_generate_key()
908 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_generate_key()
913 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_generate_key()
914 … psa_get_key_type(attributes) == PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1) && in psa_driver_wrapper_generate_key()
915 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_generate_key()
917 status = p256_transparent_generate_key( attributes, in psa_driver_wrapper_generate_key()
931 attributes, custom, custom_data, custom_data_length, in psa_driver_wrapper_generate_key()
940 attributes, key_buffer, key_buffer_size, key_buffer_length ); in psa_driver_wrapper_generate_key()
955 const psa_key_attributes_t *attributes, in psa_driver_wrapper_import_key() argument
966 psa_get_key_lifetime( attributes ) ); in psa_driver_wrapper_import_key()
973 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_import_key()
985 attributes, data, data_length, bits ); in psa_driver_wrapper_import_key()
1009 (attributes, in psa_driver_wrapper_import_key()
1024 (attributes, in psa_driver_wrapper_import_key()
1041 return( psa_import_key_into_slot( attributes, in psa_driver_wrapper_import_key()
1051 (attributes, in psa_driver_wrapper_import_key()
1071 const psa_key_attributes_t *attributes, in psa_driver_wrapper_export_key() argument
1079 psa_get_key_lifetime( attributes ) ); in psa_driver_wrapper_export_key()
1086 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_export_key()
1107 return( psa_export_key_internal( attributes, in psa_driver_wrapper_export_key()
1120 (attributes, in psa_driver_wrapper_export_key()
1139 psa_key_attributes_t *attributes, in psa_driver_wrapper_copy_key() argument
1147 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_copy_key()
1153 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_copy_key()
1167 (attributes, in psa_driver_wrapper_copy_key()
1194 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_encrypt() argument
1208 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_encrypt()
1220 status = mbedtls_test_transparent_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
1236 status = cc3xx_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
1252 return( mbedtls_psa_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
1271 return( mbedtls_test_opaque_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
1303 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_decrypt() argument
1315 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_decrypt()
1327 status = mbedtls_test_transparent_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1341 status = cc3xx_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1355 return( mbedtls_psa_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1372 return( mbedtls_test_opaque_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1401 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_encrypt_setup() argument
1407 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_encrypt_setup()
1421 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1435 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1446 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1464 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1487 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_decrypt_setup() argument
1493 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_decrypt_setup()
1507 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1521 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1532 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1550 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1971 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_encrypt() argument
1981 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_encrypt()
1995 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt()
2007 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt()
2020 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt()
2037 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_decrypt() argument
2047 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_decrypt()
2061 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_decrypt()
2073 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_decrypt()
2086 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_decrypt()
2104 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_encrypt_setup() argument
2110 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_encrypt_setup()
2126 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt_setup()
2137 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt_setup()
2147 &operation->ctx.mbedtls_ctx, attributes, in psa_driver_wrapper_aead_encrypt_setup()
2164 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_decrypt_setup() argument
2170 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_decrypt_setup()
2186 attributes, in psa_driver_wrapper_aead_decrypt_setup()
2198 attributes, in psa_driver_wrapper_aead_decrypt_setup()
2210 attributes, in psa_driver_wrapper_aead_decrypt_setup()
2551 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_compute() argument
2563 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_mac_compute()
2576 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2584 status = cc3xx_mac_compute(attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2593 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2606 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2629 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_sign_setup() argument
2636 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_mac_sign_setup()
2650 attributes, in psa_driver_wrapper_mac_sign_setup()
2663 attributes, in psa_driver_wrapper_mac_sign_setup()
2673 attributes, in psa_driver_wrapper_mac_sign_setup()
2690 attributes, in psa_driver_wrapper_mac_sign_setup()
2713 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_verify_setup() argument
2720 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_mac_verify_setup()
2734 attributes, in psa_driver_wrapper_mac_verify_setup()
2747 attributes, in psa_driver_wrapper_mac_verify_setup()
2757 attributes, in psa_driver_wrapper_mac_verify_setup()
2774 attributes, in psa_driver_wrapper_mac_verify_setup()
2944 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_asymmetric_encrypt() argument
2951 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_asymmetric_encrypt()
2963 status = mbedtls_test_transparent_asymmetric_encrypt( attributes, in psa_driver_wrapper_asymmetric_encrypt()
2972 status = cc3xx_asymmetric_encrypt( attributes, in psa_driver_wrapper_asymmetric_encrypt()
2986 return( mbedtls_psa_asymmetric_encrypt( attributes, in psa_driver_wrapper_asymmetric_encrypt()
2994 return( mbedtls_test_opaque_asymmetric_encrypt( attributes, in psa_driver_wrapper_asymmetric_encrypt()
3019 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_asymmetric_decrypt() argument
3026 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_asymmetric_decrypt()
3038 status = mbedtls_test_transparent_asymmetric_decrypt( attributes, in psa_driver_wrapper_asymmetric_decrypt()
3047 status = cc3xx_asymmetric_decrypt( attributes, in psa_driver_wrapper_asymmetric_decrypt()
3061 return( mbedtls_psa_asymmetric_decrypt( attributes, in psa_driver_wrapper_asymmetric_decrypt()
3069 return( mbedtls_test_opaque_asymmetric_decrypt( attributes, in psa_driver_wrapper_asymmetric_decrypt()
3094 const psa_key_attributes_t *attributes, in psa_driver_wrapper_key_agreement() argument
3107 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_key_agreement()
3120 mbedtls_test_transparent_key_agreement( attributes, in psa_driver_wrapper_key_agreement()
3128 status = cc3xx_key_agreement( attributes, in psa_driver_wrapper_key_agreement()
3140 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_key_agreement()
3142 … PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(attributes)) == PSA_ECC_FAMILY_SECP_R1 && in psa_driver_wrapper_key_agreement()
3143 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_key_agreement()
3145 status = p256_transparent_key_agreement( attributes, in psa_driver_wrapper_key_agreement()
3161 status = psa_key_agreement_raw_builtin( attributes, in psa_driver_wrapper_key_agreement()
3174 return( mbedtls_test_opaque_key_agreement( attributes, in psa_driver_wrapper_key_agreement()
3182 (void) attributes; in psa_driver_wrapper_key_agreement()
3202 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime( &inputs->attributes ) ); in psa_driver_wrapper_pake_setup()