Home
last modified time | relevance | path

Searched refs:priv_key_id (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto_psa.c45 psa_key_id_t priv_key_id; member
245 psa_destroy_key(dh_pair.priv_key_id); in bt_mesh_pub_key_gen()
258 status = psa_generate_key(&key_attributes, &dh_pair.priv_key_id); in bt_mesh_pub_key_gen()
264 status = psa_export_public_key(dh_pair.priv_key_id, dh_pair.public_key_be, in bt_mesh_pub_key_gen()
299 psa_key_id_t priv_key_id = PSA_KEY_ID_NULL; in bt_mesh_dhkey_gen() local
314 status = psa_import_key(&attributes, priv_key, PRIV_KEY_SIZE, &priv_key_id); in bt_mesh_dhkey_gen()
322 priv_key_id = dh_pair.priv_key_id; in bt_mesh_dhkey_gen()
335 status = psa_raw_key_agreement(PSA_ALG_ECDH, priv_key_id, public_key_repr, in bt_mesh_dhkey_gen()
349 psa_destroy_key(priv_key_id); in bt_mesh_dhkey_gen()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_provision.c437 psa_key_id_t priv_key_id = PSA_KEY_ID_NULL; in generate_oob_key_pair() local
452 status = psa_generate_key(&key_attributes, &priv_key_id); in generate_oob_key_pair()
455 status = psa_export_public_key(priv_key_id, public_key_repr, sizeof(public_key_repr), in generate_oob_key_pair()
461 status = psa_export_key(priv_key_id, private_key_be, sizeof(private_key_be), &key_len); in generate_oob_key_pair()