Home
last modified time | relevance | path

Searched refs:tk (Results 1 – 3 of 3) sorted by relevance

/net/mac80211/
Dtkip.c82 static void tkip_mixing_phase1(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase1() argument
96 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); in tkip_mixing_phase1()
97 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); in tkip_mixing_phase1()
98 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); in tkip_mixing_phase1()
99 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); in tkip_mixing_phase1()
100 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; in tkip_mixing_phase1()
106 static void tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase2() argument
120 ppk[0] += tkipS(ppk[5] ^ get_unaligned_le16(tk + 0)); in tkip_mixing_phase2()
121 ppk[1] += tkipS(ppk[0] ^ get_unaligned_le16(tk + 2)); in tkip_mixing_phase2()
122 ppk[2] += tkipS(ppk[1] ^ get_unaligned_le16(tk + 4)); in tkip_mixing_phase2()
[all …]
/net/bluetooth/
Dsmp.c106 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()
[all …]
Dhci_core.c2621 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) in hci_add_ltk()
2638 memcpy(key->val, tk, sizeof(key->val)); in hci_add_ltk()