Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/vt6656/
Dtkip.c195 unsigned int ppk0, ppk1, ppk2, ppk3, ppk4, ppk5; in TKIPvMixKey() local
231 ppk5 = (p1k[4] + tsc2) % 65536; in TKIPvMixKey()
234 ppk0 = ppk0 + tkip_sbox((ppk5 ^ ((256*pbyTKey[1]) + pbyTKey[0])) % 65536); in TKIPvMixKey()
239 ppk5 = ppk5 + tkip_sbox((ppk4 ^ ((256*pbyTKey[11]) + pbyTKey[10])) % 65536); in TKIPvMixKey()
241 ppk0 = ppk0 + rotr1(ppk5 ^ ((256*pbyTKey[13]) + pbyTKey[12])); in TKIPvMixKey()
246 ppk5 = ppk5 + rotr1(ppk4); in TKIPvMixKey()
252 pbyRC4Key[3] = ((ppk5 ^ ((256*pbyTKey[1]) + pbyTKey[0])) >> 1) % 256; in TKIPvMixKey()
269 pbyRC4Key[14] = ppk5 % 256; in TKIPvMixKey()
270 pbyRC4Key[15] = (ppk5 >> 8) % 256; in TKIPvMixKey()
/linux-2.6.39/drivers/staging/vt6655/
Dtkip.c197 unsigned int ppk0, ppk1, ppk2, ppk3, ppk4, ppk5; in TKIPvMixKey() local
232 ppk5 = (p1k[4] + tsc2) % 65536; in TKIPvMixKey()
235 ppk0 = ppk0 + tkip_sbox( (ppk5 ^ ((256*pbyTKey[1]) + pbyTKey[0])) % 65536); in TKIPvMixKey()
240 ppk5 = ppk5 + tkip_sbox( (ppk4 ^ ((256*pbyTKey[11]) + pbyTKey[10])) % 65536); in TKIPvMixKey()
242 ppk0 = ppk0 + rotr1(ppk5 ^ ((256*pbyTKey[13]) + pbyTKey[12])); in TKIPvMixKey()
247 ppk5 = ppk5 + rotr1(ppk4); in TKIPvMixKey()
253 pbyRC4Key[3] = ((ppk5 ^ ((256*pbyTKey[1]) + pbyTKey[0])) >> 1) % 256; in TKIPvMixKey()
270 pbyRC4Key[14] = ppk5 % 256; in TKIPvMixKey()
271 pbyRC4Key[15] = (ppk5 >> 8) % 256; in TKIPvMixKey()
/linux-2.6.39/drivers/staging/rt2860/common/
Dcmm_tkip.c601 u32 ppk5; in RTMPTkipMixKey() local
649 ppk5 = (p1k[4] + tsc2) % 65536; in RTMPTkipMixKey()
652 ppk0 = ppk0 + tkip_sbox((ppk5 ^ ((256 * key[1]) + key[0])) % 65536); in RTMPTkipMixKey()
657 ppk5 = ppk5 + tkip_sbox((ppk4 ^ ((256 * key[11]) + key[10])) % 65536); in RTMPTkipMixKey()
659 ppk0 = ppk0 + rotr1(ppk5 ^ ((256 * key[13]) + key[12])); in RTMPTkipMixKey()
664 ppk5 = ppk5 + rotr1(ppk4); in RTMPTkipMixKey()
676 rc4key[3] = ((ppk5 ^ ((256 * key[1]) + key[0])) >> 1) % 256; in RTMPTkipMixKey()
693 rc4key[14] = ppk5 % 256; in RTMPTkipMixKey()
694 rc4key[15] = (ppk5 >> 8) % 256; in RTMPTkipMixKey()