Home
last modified time | relevance | path

Searched refs:ppk0 (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
226 ppk0 = p1k[0]; in TKIPvMixKey()
234 ppk0 = ppk0 + tkip_sbox((ppk5 ^ ((256*pbyTKey[1]) + pbyTKey[0])) % 65536); in TKIPvMixKey()
235 ppk1 = ppk1 + tkip_sbox((ppk0 ^ ((256*pbyTKey[3]) + pbyTKey[2])) % 65536); in TKIPvMixKey()
241 ppk0 = ppk0 + rotr1(ppk5 ^ ((256*pbyTKey[13]) + pbyTKey[12])); in TKIPvMixKey()
242 ppk1 = ppk1 + rotr1(ppk0 ^ ((256*pbyTKey[15]) + pbyTKey[14])); in TKIPvMixKey()
254 pbyRC4Key[4] = ppk0 % 256; in TKIPvMixKey()
255 pbyRC4Key[5] = (ppk0 >> 8) % 256; in TKIPvMixKey()
/linux-2.6.39/drivers/staging/vt6655/
Dtkip.c197 unsigned int ppk0, ppk1, ppk2, ppk3, ppk4, ppk5; in TKIPvMixKey() local
227 ppk0 = p1k[0]; in TKIPvMixKey()
235 ppk0 = ppk0 + tkip_sbox( (ppk5 ^ ((256*pbyTKey[1]) + pbyTKey[0])) % 65536); in TKIPvMixKey()
236 ppk1 = ppk1 + tkip_sbox( (ppk0 ^ ((256*pbyTKey[3]) + pbyTKey[2])) % 65536); in TKIPvMixKey()
242 ppk0 = ppk0 + rotr1(ppk5 ^ ((256*pbyTKey[13]) + pbyTKey[12])); in TKIPvMixKey()
243 ppk1 = ppk1 + rotr1(ppk0 ^ ((256*pbyTKey[15]) + pbyTKey[14])); in TKIPvMixKey()
255 pbyRC4Key[4] = ppk0 % 256; in TKIPvMixKey()
256 pbyRC4Key[5] = (ppk0 >> 8) % 256; in TKIPvMixKey()
/linux-2.6.39/drivers/staging/rt2860/common/
Dcmm_tkip.c596 u32 ppk0; in RTMPTkipMixKey() local
644 ppk0 = p1k[0]; in RTMPTkipMixKey()
652 ppk0 = ppk0 + tkip_sbox((ppk5 ^ ((256 * key[1]) + key[0])) % 65536); in RTMPTkipMixKey()
653 ppk1 = ppk1 + tkip_sbox((ppk0 ^ ((256 * key[3]) + key[2])) % 65536); in RTMPTkipMixKey()
659 ppk0 = ppk0 + rotr1(ppk5 ^ ((256 * key[13]) + key[12])); in RTMPTkipMixKey()
660 ppk1 = ppk1 + rotr1(ppk0 ^ ((256 * key[15]) + key[14])); in RTMPTkipMixKey()
678 rc4key[4] = ppk0 % 256; in RTMPTkipMixKey()
679 rc4key[5] = (ppk0 >> 8) % 256; in RTMPTkipMixKey()