/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto.h | 91 int bt_mesh_session_key(const uint8_t dhkey[32], const uint8_t prov_salt[16], 94 int bt_mesh_prov_nonce(const uint8_t dhkey[32], const uint8_t prov_salt[16], uint8_t nonce[13]); 96 int bt_mesh_dev_key(const uint8_t dhkey[32], const uint8_t prov_salt[16], uint8_t dev_key[16]); 149 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey);
|
D | crypto_tc.c | 133 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument 140 dhkey, &curve_secp256r1) != TC_CRYPTO_SUCCESS) { in bt_mesh_dhkey_gen()
|
D | provisioner.c | 334 memcpy(conf_key_input, bt_mesh_prov_link.dhkey, 32); in send_confirm() 431 if (bt_mesh_dhkey_gen(remote_pk, NULL, bt_mesh_prov_link.dhkey)) { in prov_dh_key_gen() 436 LOG_DBG("DHkey: %s", bt_hex(bt_mesh_prov_link.dhkey, DH_KEY_SIZE)); in prov_dh_key_gen() 501 err = bt_mesh_session_key(bt_mesh_prov_link.dhkey, in send_prov_data() 509 err = bt_mesh_prov_nonce(bt_mesh_prov_link.dhkey, in send_prov_data() 519 err = bt_mesh_dev_key(bt_mesh_prov_link.dhkey, in send_prov_data() 904 if (bt_mesh_dhkey_gen(pub_key, priv_key, bt_mesh_prov_link.dhkey)) { in reprovision_local_client_server() 908 LOG_DBG("DHkey: %s", bt_hex(bt_mesh_prov_link.dhkey, DH_KEY_SIZE)); in reprovision_local_client_server() 910 err = bt_mesh_dev_key(bt_mesh_prov_link.dhkey, in reprovision_local_client_server()
|
D | provisionee.c | 228 memcpy(conf_key_input, bt_mesh_prov_link.dhkey, 32); in send_confirm() 344 if (bt_mesh_dhkey_gen(remote_pub_key, remote_priv_key, bt_mesh_prov_link.dhkey)) { in prov_dh_key_gen() 350 LOG_DBG("DHkey: %s", bt_hex(bt_mesh_prov_link.dhkey, DH_KEY_SIZE)); in prov_dh_key_gen() 524 err = bt_mesh_session_key(bt_mesh_prov_link.dhkey, in prov_data() 532 err = bt_mesh_prov_nonce(bt_mesh_prov_link.dhkey, in prov_data() 549 err = bt_mesh_dev_key(bt_mesh_prov_link.dhkey, in prov_data()
|
D | crypto.c | 247 int bt_mesh_prov_nonce(const uint8_t dhkey[32], const uint8_t prov_salt[16], uint8_t nonce[13]) in bt_mesh_prov_nonce() 252 err = bt_mesh_k1(dhkey, 32, prov_salt, "prsn", tmp); in bt_mesh_prov_nonce() 260 int bt_mesh_session_key(const uint8_t dhkey[32], const uint8_t prov_salt[16], in bt_mesh_session_key() 266 err = bt_mesh_k1(dhkey, 32, prov_salt, "prsk", raw_key); in bt_mesh_session_key() 276 int bt_mesh_dev_key(const uint8_t dhkey[32], const uint8_t prov_salt[16], uint8_t dev_key[16]) in bt_mesh_dev_key() 280 err = bt_mesh_k1(dhkey, 32, prov_salt, "prdk", dev_key); in bt_mesh_dev_key()
|
D | prov.h | 133 uint8_t dhkey[DH_KEY_SIZE]; /* Calculated DHKey */ member
|
D | crypto_psa.c | 296 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument 336 PUB_KEY_SIZE + 1, dhkey, DH_KEY_SIZE, &dh_key_len); in bt_mesh_dhkey_gen()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | hci_ecc.c | 238 (void)memset(evt->dhkey, 0xff, sizeof(evt->dhkey)); in emulate_le_generate_dhkey() 244 sys_memcpy_swap(evt->dhkey, ecc.dhkey_be, sizeof(ecc.dhkey_be)); in emulate_le_generate_dhkey()
|
D | ecc.c | 270 cb(evt->status ? NULL : evt->dhkey); in bt_hci_evt_le_dhkey_complete()
|
D | smp.c | 175 uint8_t dhkey[BT_DH_KEY_LEN]; member 3417 if (bt_crypto_f5(smp->dhkey, smp->prnd, smp->rrnd, &smp->chan.chan.conn->le.init_addr, in compute_and_send_central_dhcheck() 3462 if (bt_crypto_f5(smp->dhkey, smp->rrnd, smp->prnd, &smp->chan.chan.conn->le.init_addr, in compute_and_check_and_send_periph_dhcheck() 3508 static void bt_smp_dhkey_ready(const uint8_t *dhkey); 3525 static uint8_t smp_dhkey_ready(struct bt_smp *smp, const uint8_t *dhkey) in smp_dhkey_ready() argument 3527 if (!dhkey) { in smp_dhkey_ready() 3532 memcpy(smp->dhkey, dhkey, BT_DH_KEY_LEN); in smp_dhkey_ready() 3573 static void bt_smp_dhkey_ready(const uint8_t *dhkey) in bt_smp_dhkey_ready() argument 3575 LOG_DBG("%p", (void *)dhkey); in bt_smp_dhkey_ready() 3581 err = smp_dhkey_ready(smp, dhkey); in bt_smp_dhkey_ready()
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | hci_types.h | 3125 uint8_t dhkey[32]; member
|