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
34 psa_reset_key_attributes(&attributes);
35 PSA_ASSERT(psa_get_key_attributes(key_id, &attributes));
36 TEST_EQUAL(psa_get_key_lifetime(&attributes), PSA_KEY_LIFETIME_VOLATILE);
37 TEST_EQUAL(psa_get_key_usage_flags(&attributes), 0);
38 TEST_EQUAL(psa_get_key_algorithm(&attributes), 0);
39 TEST_EQUAL(psa_get_key_type(&attributes), key_type);
40 TEST_EQUAL(psa_get_key_bits(&attributes), bits);
44 psa_reset_key_attributes(&attributes);