Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto_tc.c34 } dh_pair; variable
113 int rc = uECC_make_key(dh_pair.public_key_be, in bt_mesh_pub_key_gen()
114 dh_pair.private_key_be, in bt_mesh_pub_key_gen()
118 dh_pair.is_ready = false; in bt_mesh_pub_key_gen()
123 dh_pair.is_ready = true; in bt_mesh_pub_key_gen()
130 return dh_pair.is_ready ? dh_pair.public_key_be : NULL; in bt_mesh_pub_key_get()
139 dh_pair.private_key_be, in bt_mesh_dhkey_gen()
Dcrypto_psa.c47 } dh_pair; variable
245 psa_destroy_key(dh_pair.priv_key_id); in bt_mesh_pub_key_gen()
246 dh_pair.is_ready = false; 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()
265 sizeof(dh_pair.public_key_be), &key_len); in bt_mesh_pub_key_gen()
276 dh_pair.is_ready = true; in bt_mesh_pub_key_gen()
286 return dh_pair.is_ready ? dh_pair.public_key_be + 1 : NULL; in bt_mesh_pub_key_get()
322 priv_key_id = dh_pair.priv_key_id; in bt_mesh_dhkey_gen()