/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | crypto.h | 77 static inline int bt_mesh_session_key(const u8_t dhkey[32], in bt_mesh_session_key() 81 return bt_mesh_k1(dhkey, 32, prov_salt, "prsk", session_key); in bt_mesh_session_key() 84 static inline int bt_mesh_prov_nonce(const u8_t dhkey[32], in bt_mesh_prov_nonce() 91 err = bt_mesh_k1(dhkey, 32, prov_salt, "prsn", tmp); in bt_mesh_prov_nonce() 99 static inline int bt_mesh_dev_key(const u8_t dhkey[32], in bt_mesh_dev_key() 103 return bt_mesh_k1(dhkey, 32, prov_salt, "prdk", dev_key); in bt_mesh_dev_key() 147 int bt_mesh_prov_conf_key(const u8_t dhkey[32], const u8_t conf_salt[16],
|
/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | hci_ecc.c | 84 u8_t dhkey[32]; member 185 ret = uECC_shared_secret(ecc.pk, ecc.private_key, ecc.dhkey, in emulate_le_generate_dhkey() 209 (void)memset(evt->dhkey, 0, sizeof(evt->dhkey)); in emulate_le_generate_dhkey() 215 sys_memcpy_swap(evt->dhkey, ecc.dhkey, sizeof(ecc.dhkey)); in emulate_le_generate_dhkey()
|
A D | smp.c | 179 u8_t dhkey[32]; member 3304 if (smp_f5(smp->dhkey, smp->prnd, smp->rrnd, in compute_and_send_master_dhcheck() 3348 if (smp_f5(smp->dhkey, smp->rrnd, smp->prnd, in compute_and_check_and_send_slave_dhcheck() 3393 static void bt_smp_dhkey_ready(const u8_t *dhkey) in bt_smp_dhkey_ready() argument 3398 BT_DBG("%p", dhkey); in bt_smp_dhkey_ready() 3412 if (!dhkey) { in bt_smp_dhkey_ready() 3417 memcpy(smp->dhkey, dhkey, 32); in bt_smp_dhkey_ready()
|
A D | hci_core.c | 4731 dh_key_cb(evt->status ? NULL : evt->dhkey); in le_dhkey_complete() 4765 int hci_api_le_event_dhkey_complete(u8_t status, u8_t dhkey[32]) in hci_api_le_event_dhkey_complete() 4770 dh_key_cb(status ? NULL : dhkey); in hci_api_le_event_dhkey_complete() 4781 hci_api_le_event_dhkey_complete(evt->status, evt->dhkey); in le_dhkey_complete()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | prov.c | 144 u8_t dhkey[32]; /* Calculated DHKey */ member 851 if (bt_mesh_prov_conf_key(plink.dhkey, plink.conf_salt, plink.conf_key)) { in send_confirm() 958 sys_memcpy_swap(plink.dhkey, key, 32); in prov_dh_key_cb() 960 BT_DBG("DHkey: %s", bt_hex(plink.dhkey, 32)); in prov_dh_key_cb() 1143 err = bt_mesh_session_key(plink.dhkey, plink.prov_salt, session_key); in prov_data() 1152 err = bt_mesh_prov_nonce(plink.dhkey, plink.prov_salt, nonce); in prov_data() 1168 err = bt_mesh_dev_key(plink.dhkey, plink.prov_salt, dev_key); in prov_data()
|
A D | provisioner_prov.c | 178 u8_t dhkey[32]; /* Calculated DHKey */ member 1184 PROV_FREE_MEM(i, dhkey); in prov_memory_free() 1986 if (bt_mesh_prov_conf_key(link[i].dhkey, link[i].conf_salt, link[i].conf_key)) { in send_confirm() 2113 link[i].dhkey = (u8_t *)osi_calloc(PROV_DH_KEY_SIZE); in prov_dh_key_cb() 2115 if (!link[i].dhkey) { in prov_dh_key_cb() 2121 sys_memcpy_swap(link[i].dhkey, key, 32); in prov_dh_key_cb() 2123 BT_DBG("DHkey: %s", bt_hex(link[i].dhkey, 32)); in prov_dh_key_cb() 2337 err = bt_mesh_session_key(link[i].dhkey, link[i].prov_salt, session_key); in send_prov_data() 2346 err = bt_mesh_prov_nonce(link[i].dhkey, link[i].prov_salt, nonce); in send_prov_data() 2568 err = bt_mesh_dev_key(link[i].dhkey, link[i].prov_salt, device_key); in prov_complete()
|
A D | crypto.c | 827 int bt_mesh_prov_conf_key(const u8_t dhkey[32], const u8_t conf_salt[16], in bt_mesh_prov_conf_key() 830 return bt_mesh_k1(dhkey, 32, conf_salt, "prck", conf_key); in bt_mesh_prov_conf_key()
|
/AliOS-Things-master/components/ble_host/include/ |
A D | hci_api.h | 174 int hci_api_le_event_dhkey_complete(uint8_t status, uint8_t dhkey[32]);
|
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/ |
A D | hci.h | 1569 u8_t dhkey[32]; member
|