Lines Matching full:attributes
183 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in bt_mesh_sha256_hmac_raw_key() local
190 psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_SIGN_MESSAGE); in bt_mesh_sha256_hmac_raw_key()
191 psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_VOLATILE); in bt_mesh_sha256_hmac_raw_key()
192 psa_set_key_algorithm(&attributes, PSA_ALG_HMAC(PSA_ALG_SHA_256)); in bt_mesh_sha256_hmac_raw_key()
193 psa_set_key_type(&attributes, PSA_KEY_TYPE_HMAC); in bt_mesh_sha256_hmac_raw_key()
194 psa_set_key_bits(&attributes, 256); in bt_mesh_sha256_hmac_raw_key()
196 status = psa_import_key(&attributes, key, 32, &key_id); in bt_mesh_sha256_hmac_raw_key()
202 psa_reset_key_attributes(&attributes); in bt_mesh_sha256_hmac_raw_key()
305 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in bt_mesh_dhkey_gen() local
308 psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_DERIVE); in bt_mesh_dhkey_gen()
309 psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_VOLATILE); in bt_mesh_dhkey_gen()
310 psa_set_key_algorithm(&attributes, PSA_ALG_ECDH); in bt_mesh_dhkey_gen()
311 psa_set_key_type(&attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)); in bt_mesh_dhkey_gen()
312 psa_set_key_bits(&attributes, 256); in bt_mesh_dhkey_gen()
314 status = psa_import_key(&attributes, priv_key, PRIV_KEY_SIZE, &priv_key_id); in bt_mesh_dhkey_gen()
320 psa_reset_key_attributes(&attributes); in bt_mesh_dhkey_gen()