Lines Matching refs:attributes

157     const psa_key_attributes_t *attributes,  in mbedtls_test_transparent_generate_key()  argument
178 if ( PSA_KEY_TYPE_IS_ECC( psa_get_key_type( attributes ) ) in mbedtls_test_transparent_generate_key()
179 && PSA_KEY_TYPE_IS_KEY_PAIR( psa_get_key_type( attributes ) ) ) in mbedtls_test_transparent_generate_key()
182 attributes, key, key_size, key_length ) ); in mbedtls_test_transparent_generate_key()
188 if ( psa_get_key_type( attributes ) == PSA_KEY_TYPE_RSA_KEY_PAIR ) in mbedtls_test_transparent_generate_key()
190 attributes, key, key_size, key_length ) ); in mbedtls_test_transparent_generate_key()
194 (void)attributes; in mbedtls_test_transparent_generate_key()
200 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_generate_key() argument
203 (void) attributes; in mbedtls_test_opaque_generate_key()
211 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_import_key() argument
225 psa_key_type_t type = psa_get_key_type( attributes ); in mbedtls_test_transparent_import_key()
232 attributes, in mbedtls_test_transparent_import_key()
244 attributes, in mbedtls_test_transparent_import_key()
267 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_import_key() argument
276 psa_key_type_t type = psa_get_key_type( attributes ); in mbedtls_test_opaque_import_key()
306 attributes, in mbedtls_test_opaque_import_key()
321 attributes, in mbedtls_test_opaque_import_key()
343 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_export_key() argument
357 if( psa_get_key_type( attributes ) != in mbedtls_test_opaque_export_key()
360 if( psa_get_key_bits( attributes ) != 256 ) in mbedtls_test_opaque_export_key()
362 if( psa_get_key_algorithm( attributes ) != in mbedtls_test_opaque_export_key()
365 if( ( psa_get_key_usage_flags( attributes ) & in mbedtls_test_opaque_export_key()
380 if( psa_get_key_type( attributes ) != PSA_KEY_TYPE_AES ) in mbedtls_test_opaque_export_key()
382 if( psa_get_key_bits( attributes ) != 128 ) in mbedtls_test_opaque_export_key()
384 if( psa_get_key_algorithm( attributes ) != PSA_ALG_CTR ) in mbedtls_test_opaque_export_key()
386 if( ( psa_get_key_usage_flags( attributes ) & in mbedtls_test_opaque_export_key()
407 psa_key_type_t type = psa_get_key_type( attributes ); in mbedtls_test_opaque_export_key()
422 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_export_public_key() argument
443 psa_key_type_t key_type = psa_get_key_type( attributes ); in mbedtls_test_transparent_export_public_key()
450 attributes, in mbedtls_test_transparent_export_public_key()
461 attributes, in mbedtls_test_transparent_export_public_key()
478 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_export_public_key() argument
485 psa_key_type_t key_type = psa_get_key_type( attributes ); in mbedtls_test_opaque_export_public_key()
500 attributes, in mbedtls_test_opaque_export_public_key()
514 attributes, in mbedtls_test_opaque_export_public_key()
536 if( psa_get_key_type( attributes ) != in mbedtls_test_opaque_export_public_key()
539 if( psa_get_key_bits( attributes ) != 256 ) in mbedtls_test_opaque_export_public_key()
541 if( psa_get_key_algorithm( attributes ) != in mbedtls_test_opaque_export_public_key()
570 psa_key_attributes_t *attributes, in mbedtls_test_opaque_get_builtin_key() argument
576 psa_set_key_type( attributes, PSA_KEY_TYPE_AES ); in mbedtls_test_opaque_get_builtin_key()
577 psa_set_key_bits( attributes, 128 ); in mbedtls_test_opaque_get_builtin_key()
579 attributes, in mbedtls_test_opaque_get_builtin_key()
583 psa_set_key_algorithm( attributes, PSA_ALG_CTR ); in mbedtls_test_opaque_get_builtin_key()
594 attributes, in mbedtls_test_opaque_get_builtin_key()
596 psa_set_key_bits( attributes, 256 ); in mbedtls_test_opaque_get_builtin_key()
598 attributes, in mbedtls_test_opaque_get_builtin_key()
603 attributes, PSA_ALG_ECDSA( PSA_ALG_ANY_HASH ) ); in mbedtls_test_opaque_get_builtin_key()
618 psa_key_attributes_t *attributes, in mbedtls_test_opaque_copy_key() argument
633 (void)attributes; in mbedtls_test_opaque_copy_key()