Lines Matching refs:tk
169 uint8_t tk[16]; member
2319 sys_put_le32(passkey, smp->tk); in legacy_request_tk()
2349 if (smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp, in legacy_send_pairing_confirm()
2399 err = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp, in legacy_pairing_random()
2417 err = smp_s1(smp->tk, smp->rrnd, smp->prnd, tmp); in legacy_pairing_random()
2450 err = smp_s1(smp->tk, smp->prnd, smp->rrnd, tmp); in legacy_pairing_random()
2456 memcpy(smp->tk, tmp, sizeof(smp->tk)); in legacy_pairing_random()
2457 LOG_DBG("generated STK %s", bt_hex(smp->tk, 16)); in legacy_pairing_random()
2516 memcpy(smp->tk, &passkey, sizeof(passkey)); in legacy_passkey_entry()
2805 memcpy(ltk, smp->tk, enc_size); in bt_smp_request_ltk()
3418 &smp->chan.chan.conn->le.resp_addr, smp->mackey, smp->tk)) { in compute_and_send_central_dhcheck()
3463 &smp->chan.chan.conn->le.resp_addr, smp->mackey, smp->tk)) { in compute_and_check_and_send_periph_dhcheck()
4457 smp->tk, enc_size) < 0) { in smp_dhkey_check()
5633 int bt_smp_le_oob_set_tk(struct bt_conn *conn, const uint8_t *tk) in bt_smp_le_oob_set_tk() argument
5638 if (!smp || !tk) { in bt_smp_le_oob_set_tk()
5642 LOG_DBG("%s", bt_hex(tk, 16)); in bt_smp_le_oob_set_tk()
5651 sys_memcpy_swap(oob, tk, 16); in bt_smp_le_oob_set_tk()
5655 memcpy(smp->tk, tk, 16*sizeof(uint8_t)); in bt_smp_le_oob_set_tk()
6030 memcpy(conn->le.keys->ltk.val, smp->tk, in bt_smp_update_keys()
6039 sys_memcpy_swap(ltk, smp->tk, conn->le.keys->enc_size); in bt_smp_update_keys()