Lines Matching refs:attributes
18 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
27 psa_set_key_type( &attributes, key_type );
28 psa_set_key_bits( &attributes, bits );
29 TEST_EQUAL( psa_generate_key( &attributes, &key_id ),
32 // Verify attributes of the created key on success
35 psa_reset_key_attributes(&attributes);
36 PSA_ASSERT( psa_get_key_attributes( key_id, &attributes ) );
37 TEST_EQUAL( psa_get_key_lifetime( &attributes ), PSA_KEY_LIFETIME_VOLATILE );
38 TEST_EQUAL( psa_get_key_usage_flags( &attributes ), 0 );
39 TEST_EQUAL( psa_get_key_algorithm( &attributes ), 0 );
40 TEST_EQUAL( psa_get_key_type( &attributes ), key_type );
41 TEST_EQUAL( psa_get_key_bits( &attributes ), bits );
45 psa_reset_key_attributes(&attributes);