Lines Matching refs:tk
106 u8 tk[16]; /* SMP Temporary Key */ member
860 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
925 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
928 put_unaligned_le32(passkey, smp->tk); in tk_request()
956 ret = smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp, in smp_confirm()
985 ret = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp, in smp_random()
1002 smp_s1(smp->tk, smp->rrnd, smp->prnd, stk); in smp_random()
1018 smp_s1(smp->tk, smp->prnd, smp->rrnd, stk); in smp_random()
1150 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
1167 if (smp_h7(smp->tfm_cmac, smp->tk, salt, smp->link_key)) { in sc_generate_link_key()
1176 if (smp_h6(smp->tfm_cmac, smp->tk, tmp1, smp->link_key)) { in sc_generate_link_key()
1225 if (smp_h7(smp->tfm_cmac, key->val, salt, smp->tk)) in sc_generate_ltk()
1231 if (smp_h6(smp->tfm_cmac, key->val, tmp2, smp->tk)) in sc_generate_ltk()
1235 if (smp_h6(smp->tfm_cmac, smp->tk, brle, smp->tk)) in sc_generate_ltk()
1530 if (sc_mackey_and_ltk(smp, smp->mackey, smp->tk)) in sc_passkey_round()
1665 memset(smp->tk, 0, sizeof(smp->tk)); in smp_user_confirm_reply()
1667 put_unaligned_le32(value, smp->tk); in smp_user_confirm_reply()
2214 err = sc_mackey_and_ltk(smp, smp->mackey, smp->tk); in smp_cmd_pairing_random()
2520 memcpy(smp->tk, rp->ltk, sizeof(smp->tk)); in smp_cmd_encrypt_info()
2552 authenticated, smp->tk, smp->enc_key_size, in smp_cmd_initiator_ident()
2933 hci_le_start_enc(hcon, 0, 0, smp->tk, smp->enc_key_size); in smp_cmd_dhkey_check()