Searched refs:dhkey (Results 1 – 9 of 9) sorted by relevance
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/ |
D | crypto.h | 75 static inline int bt_mesh_session_key(const uint8_t dhkey[32], in bt_mesh_session_key() 79 return bt_mesh_k1(dhkey, 32, prov_salt, "prsk", session_key); in bt_mesh_session_key() 82 static inline int bt_mesh_prov_nonce(const uint8_t dhkey[32], in bt_mesh_prov_nonce() 89 err = bt_mesh_k1(dhkey, 32, prov_salt, "prsn", tmp); in bt_mesh_prov_nonce() 97 static inline int bt_mesh_dev_key(const uint8_t dhkey[32], in bt_mesh_dev_key() 101 return bt_mesh_k1(dhkey, 32, prov_salt, "prdk", dev_key); in bt_mesh_dev_key() 155 int bt_mesh_prov_conf_key(const uint8_t dhkey[32], const uint8_t conf_salt[16],
|
D | prov_device.c | 186 if (bt_mesh_prov_conf_key(bt_mesh_prov_link.dhkey, bt_mesh_prov_link.conf_salt, in send_confirm() 286 BT_DBG("DHkey: %s", bt_hex(bt_mesh_prov_link.dhkey, BT_DH_KEY_LEN)); in dh_key_gen_complete() 296 static void prov_dh_key_cb(const uint8_t dhkey[BT_DH_KEY_LEN]) in prov_dh_key_cb() 298 BT_DBG("%p", dhkey); in prov_dh_key_cb() 300 if (!dhkey) { in prov_dh_key_cb() 306 sys_memcpy_swap(bt_mesh_prov_link.dhkey, dhkey, BT_DH_KEY_LEN); in prov_dh_key_cb() 323 bt_mesh_prov_link.dhkey, in prov_dh_key_gen() 493 err = bt_mesh_session_key(bt_mesh_prov_link.dhkey, in prov_data() 503 err = bt_mesh_prov_nonce(bt_mesh_prov_link.dhkey, in prov_data() 520 err = bt_mesh_dev_key(bt_mesh_prov_link.dhkey, in prov_data()
|
D | provisioner.c | 299 if (bt_mesh_prov_conf_key(bt_mesh_prov_link.dhkey, in send_confirm() 379 static void prov_dh_key_cb(const uint8_t dhkey[BT_DH_KEY_LEN]) in prov_dh_key_cb() 381 BT_DBG("%p", dhkey); in prov_dh_key_cb() 383 if (!dhkey) { in prov_dh_key_cb() 389 sys_memcpy_swap(bt_mesh_prov_link.dhkey, dhkey, BT_DH_KEY_LEN); in prov_dh_key_cb() 391 BT_DBG("DHkey: %s", bt_hex(bt_mesh_prov_link.dhkey, BT_DH_KEY_LEN)); in prov_dh_key_cb() 491 err = bt_mesh_session_key(bt_mesh_prov_link.dhkey, in send_prov_data() 501 err = bt_mesh_prov_nonce(bt_mesh_prov_link.dhkey, in send_prov_data() 511 err = bt_mesh_dev_key(bt_mesh_prov_link.dhkey, in send_prov_data()
|
D | prov.h | 116 uint8_t dhkey[BT_DH_KEY_LEN]; /* Calculated DHKey */ member
|
D | crypto.c | 501 int bt_mesh_prov_conf_key(const uint8_t dhkey[32], const uint8_t conf_salt[16], in bt_mesh_prov_conf_key() 504 return bt_mesh_k1(dhkey, 32, conf_salt, "prck", conf_key); in bt_mesh_prov_conf_key()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/host/ |
D | hci_ecc.c | 197 (void)memset(evt->dhkey, 0xff, sizeof(evt->dhkey)); in emulate_le_generate_dhkey() 203 sys_memcpy_swap(evt->dhkey, ecc.dhkey_be, sizeof(ecc.dhkey_be)); in emulate_le_generate_dhkey()
|
D | ecc.c | 221 cb(evt->status ? NULL : evt->dhkey); in bt_hci_evt_le_dhkey_complete()
|
D | smp.c | 173 uint8_t dhkey[BT_DH_KEY_LEN]; member 3411 if (smp_f5(smp->dhkey, smp->prnd, smp->rrnd, in compute_and_send_central_dhcheck() 3458 if (smp_f5(smp->dhkey, smp->rrnd, smp->prnd, in compute_and_check_and_send_periph_dhcheck() 3506 static void bt_smp_dhkey_ready(const uint8_t *dhkey); 3523 static uint8_t smp_dhkey_ready(struct bt_smp *smp, const uint8_t *dhkey) in smp_dhkey_ready() argument 3525 if (!dhkey) { in smp_dhkey_ready() 3530 memcpy(smp->dhkey, dhkey, BT_DH_KEY_LEN); in smp_dhkey_ready() 3571 static void bt_smp_dhkey_ready(const uint8_t *dhkey) in bt_smp_dhkey_ready() argument 3573 BT_DBG("%p", dhkey); in bt_smp_dhkey_ready() 3579 err = smp_dhkey_ready(smp, dhkey); in bt_smp_dhkey_ready()
|
/Zephyr-Core-2.7.6/include/bluetooth/ |
D | hci.h | 2326 uint8_t dhkey[32]; member
|