Lines Matching refs:attributes

112     const psa_key_attributes_t *attributes,  in psa_driver_wrapper_sign_message()  argument
124 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_sign_message()
134 attributes, in psa_driver_wrapper_sign_message()
155 attributes, in psa_driver_wrapper_sign_message()
175 return( psa_sign_message_builtin( attributes, in psa_driver_wrapper_sign_message()
187 const psa_key_attributes_t *attributes, in psa_driver_wrapper_verify_message() argument
198 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_verify_message()
208 attributes, in psa_driver_wrapper_verify_message()
228 attributes, in psa_driver_wrapper_verify_message()
247 return( psa_verify_message_builtin( attributes, in psa_driver_wrapper_verify_message()
258 const psa_key_attributes_t *attributes, in psa_driver_wrapper_sign_hash() argument
268 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_sign_hash()
285 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_sign_hash()
294 status = mbedtls_test_transparent_signature_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
308 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_sign_hash()
310 … PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(attributes)) == PSA_ECC_FAMILY_SECP_R1 && in psa_driver_wrapper_sign_hash()
311 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_sign_hash()
313 status = p256_transparent_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
328 return( psa_sign_hash_builtin( attributes, in psa_driver_wrapper_sign_hash()
342 return( mbedtls_test_opaque_signature_sign_hash( attributes, in psa_driver_wrapper_sign_hash()
361 const psa_key_attributes_t *attributes, in psa_driver_wrapper_verify_hash() argument
371 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_verify_hash()
388 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_verify_hash()
398 attributes, in psa_driver_wrapper_verify_hash()
411 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_verify_hash()
413 … PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(attributes)) == PSA_ECC_FAMILY_SECP_R1 && in psa_driver_wrapper_verify_hash()
414 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_verify_hash()
416 status = p256_transparent_verify_hash( attributes, in psa_driver_wrapper_verify_hash()
430 return( psa_verify_hash_builtin( attributes, in psa_driver_wrapper_verify_hash()
443 return( mbedtls_test_opaque_signature_verify_hash( attributes, in psa_driver_wrapper_verify_hash()
511 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_sign_hash_start() argument
517 psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_sign_hash_start()
538 attributes, in psa_driver_wrapper_sign_hash_start()
602 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_verify_hash_start() argument
609 psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_verify_hash_start()
630 attributes, in psa_driver_wrapper_verify_hash_start()
701 const psa_key_attributes_t *attributes, in psa_driver_wrapper_get_key_buffer_size_from_key_data() argument
707 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_get_key_buffer_size_from_key_data()
708 psa_key_type_t key_type = psa_get_key_type(attributes); in psa_driver_wrapper_get_key_buffer_size_from_key_data()
730 const psa_key_attributes_t *attributes, in psa_driver_wrapper_generate_key() argument
737 PSA_KEY_LIFETIME_GET_LOCATION(psa_get_key_lifetime(attributes)); in psa_driver_wrapper_generate_key()
758 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_generate_key()
770 attributes, NULL, 0, &pubkey_length ) ); in psa_driver_wrapper_generate_key()
781 if( PSA_KEY_TYPE_IS_ASYMMETRIC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_generate_key()
787 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_generate_key()
794 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_generate_key()
795 … psa_get_key_type(attributes) == PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1) && in psa_driver_wrapper_generate_key()
796 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_generate_key()
798 status = p256_transparent_generate_key( attributes, in psa_driver_wrapper_generate_key()
812 attributes, custom, custom_data, custom_data_length, in psa_driver_wrapper_generate_key()
821 attributes, key_buffer, key_buffer_size, key_buffer_length ); in psa_driver_wrapper_generate_key()
836 const psa_key_attributes_t *attributes, in psa_driver_wrapper_import_key() argument
847 psa_get_key_lifetime( attributes ) ); in psa_driver_wrapper_import_key()
854 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_import_key()
866 attributes, data, data_length, bits ); in psa_driver_wrapper_import_key()
887 (attributes, in psa_driver_wrapper_import_key()
902 (attributes, in psa_driver_wrapper_import_key()
919 return( psa_import_key_into_slot( attributes, in psa_driver_wrapper_import_key()
929 (attributes, in psa_driver_wrapper_import_key()
949 const psa_key_attributes_t *attributes, in psa_driver_wrapper_export_key() argument
957 psa_get_key_lifetime( attributes ) ); in psa_driver_wrapper_export_key()
964 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_export_key()
982 return( psa_export_key_internal( attributes, in psa_driver_wrapper_export_key()
995 (attributes, in psa_driver_wrapper_export_key()
1014 psa_key_attributes_t *attributes, in psa_driver_wrapper_copy_key() argument
1022 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_copy_key()
1028 if( psa_get_se_driver( psa_get_key_lifetime(attributes), &drv, &drv_context ) ) in psa_driver_wrapper_copy_key()
1042 (attributes, in psa_driver_wrapper_copy_key()
1069 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_encrypt() argument
1083 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_encrypt()
1092 status = mbedtls_test_transparent_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
1110 return( mbedtls_psa_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
1129 return( mbedtls_test_opaque_cipher_encrypt( attributes, in psa_driver_wrapper_cipher_encrypt()
1161 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_decrypt() argument
1173 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_decrypt()
1182 status = mbedtls_test_transparent_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1198 return( mbedtls_psa_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1215 return( mbedtls_test_opaque_cipher_decrypt( attributes, in psa_driver_wrapper_cipher_decrypt()
1244 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_encrypt_setup() argument
1250 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_encrypt_setup()
1261 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1276 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1294 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1317 const psa_key_attributes_t *attributes, in psa_driver_wrapper_cipher_decrypt_setup() argument
1323 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_cipher_decrypt_setup()
1334 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1349 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1367 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
1713 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_encrypt() argument
1723 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_encrypt()
1734 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt()
1748 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt()
1765 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_decrypt() argument
1775 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_decrypt()
1786 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_decrypt()
1800 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_decrypt()
1818 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_encrypt_setup() argument
1824 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_encrypt_setup()
1837 attributes, key_buffer, key_buffer_size, in psa_driver_wrapper_aead_encrypt_setup()
1849 &operation->ctx.mbedtls_ctx, attributes, in psa_driver_wrapper_aead_encrypt_setup()
1866 const psa_key_attributes_t *attributes, in psa_driver_wrapper_aead_decrypt_setup() argument
1872 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_aead_decrypt_setup()
1885 attributes, in psa_driver_wrapper_aead_decrypt_setup()
1899 attributes, in psa_driver_wrapper_aead_decrypt_setup()
2196 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_compute() argument
2208 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_mac_compute()
2218 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2229 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2242 attributes, key_buffer, key_buffer_size, alg, in psa_driver_wrapper_mac_compute()
2265 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_sign_setup() argument
2272 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_mac_sign_setup()
2283 attributes, in psa_driver_wrapper_mac_sign_setup()
2297 attributes, in psa_driver_wrapper_mac_sign_setup()
2314 attributes, in psa_driver_wrapper_mac_sign_setup()
2337 const psa_key_attributes_t *attributes, in psa_driver_wrapper_mac_verify_setup() argument
2344 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_mac_verify_setup()
2355 attributes, in psa_driver_wrapper_mac_verify_setup()
2369 attributes, in psa_driver_wrapper_mac_verify_setup()
2386 attributes, in psa_driver_wrapper_mac_verify_setup()
2537 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_asymmetric_encrypt() argument
2544 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_asymmetric_encrypt()
2553 status = mbedtls_test_transparent_asymmetric_encrypt( attributes, in psa_driver_wrapper_asymmetric_encrypt()
2562 return( mbedtls_psa_asymmetric_encrypt( attributes, in psa_driver_wrapper_asymmetric_encrypt()
2570 return( mbedtls_test_opaque_asymmetric_encrypt( attributes, in psa_driver_wrapper_asymmetric_encrypt()
2595 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in psa_driver_wrapper_asymmetric_decrypt() argument
2602 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_asymmetric_decrypt()
2611 status = mbedtls_test_transparent_asymmetric_decrypt( attributes, in psa_driver_wrapper_asymmetric_decrypt()
2620 return( mbedtls_psa_asymmetric_decrypt( attributes, in psa_driver_wrapper_asymmetric_decrypt()
2628 return( mbedtls_test_opaque_asymmetric_decrypt( attributes, in psa_driver_wrapper_asymmetric_decrypt()
2653 const psa_key_attributes_t *attributes, in psa_driver_wrapper_key_agreement() argument
2666 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_key_agreement()
2676 mbedtls_test_transparent_key_agreement( attributes, in psa_driver_wrapper_key_agreement()
2684 if( PSA_KEY_TYPE_IS_ECC( psa_get_key_type(attributes) ) && in psa_driver_wrapper_key_agreement()
2686 … PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(attributes)) == PSA_ECC_FAMILY_SECP_R1 && in psa_driver_wrapper_key_agreement()
2687 psa_get_key_bits(attributes) == 256 ) in psa_driver_wrapper_key_agreement()
2689 status = p256_transparent_key_agreement( attributes, in psa_driver_wrapper_key_agreement()
2705 status = psa_key_agreement_raw_builtin( attributes, in psa_driver_wrapper_key_agreement()
2718 return( mbedtls_test_opaque_key_agreement( attributes, in psa_driver_wrapper_key_agreement()
2726 (void) attributes; in psa_driver_wrapper_key_agreement()
2746 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime( &inputs->attributes ) ); in psa_driver_wrapper_pake_setup()