Home
last modified time | relevance | path

Searched refs:key_attributes (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/
Dcrypto_psa.c239 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in bt_mesh_pub_key_gen() local
250 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in bt_mesh_pub_key_gen()
251 psa_set_key_lifetime(&key_attributes, PSA_KEY_LIFETIME_VOLATILE); in bt_mesh_pub_key_gen()
252 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in bt_mesh_pub_key_gen()
253 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)); in bt_mesh_pub_key_gen()
254 psa_set_key_bits(&key_attributes, 256); in bt_mesh_pub_key_gen()
257 status = psa_generate_key(&key_attributes, &dh_pair.priv_key_id); in bt_mesh_pub_key_gen()
278 psa_reset_key_attributes(&key_attributes); in bt_mesh_pub_key_gen()
387 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in bt_mesh_key_import() local
394 psa_set_key_lifetime(&key_attributes, PSA_KEY_LIFETIME_VOLATILE); in bt_mesh_key_import()
[all …]
/Zephyr-Core-3.5.0/samples/tfm_integration/psa_crypto/src/
Dpsa_crypto.c115 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in crp_imp_key_secp256r1() local
129 psa_set_key_id(&key_attributes, key_id); in crp_imp_key_secp256r1()
130 psa_set_key_usage_flags(&key_attributes, key_usage); in crp_imp_key_secp256r1()
131 psa_set_key_lifetime(&key_attributes, PSA_KEY_LIFETIME_PERSISTENT); in crp_imp_key_secp256r1()
132 psa_set_key_algorithm(&key_attributes, alg); in crp_imp_key_secp256r1()
133 psa_set_key_type(&key_attributes, key_type); in crp_imp_key_secp256r1()
137 psa_import_key(&key_attributes, key_data, key_len, &key_handle), in crp_imp_key_secp256r1()
227 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in crp_gen_key_secp256r1() local
240 psa_set_key_id(&key_attributes, key_id); in crp_gen_key_secp256r1()
241 psa_set_key_usage_flags(&key_attributes, key_usage); in crp_gen_key_secp256r1()
[all …]
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/src/
Dtest_provision.c445 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in generate_oob_key_pair() local
454 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE | PSA_KEY_USAGE_EXPORT); in generate_oob_key_pair()
455 psa_set_key_lifetime(&key_attributes, PSA_KEY_LIFETIME_VOLATILE); in generate_oob_key_pair()
456 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in generate_oob_key_pair()
457 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)); in generate_oob_key_pair()
458 psa_set_key_bits(&key_attributes, 256); in generate_oob_key_pair()
461 status = psa_generate_key(&key_attributes, &priv_key_id); in generate_oob_key_pair()