Home
last modified time | relevance | path

Searched refs:ppk1 (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
227 ppk1 = p1k[1]; in TKIPvMixKey()
235 ppk1 = ppk1 + tkip_sbox((ppk0 ^ ((256*pbyTKey[3]) + pbyTKey[2])) % 65536); in TKIPvMixKey()
236 ppk2 = ppk2 + tkip_sbox((ppk1 ^ ((256*pbyTKey[5]) + pbyTKey[4])) % 65536); in TKIPvMixKey()
242 ppk1 = ppk1 + rotr1(ppk0 ^ ((256*pbyTKey[15]) + pbyTKey[14])); in TKIPvMixKey()
243 ppk2 = ppk2 + rotr1(ppk1); in TKIPvMixKey()
257 pbyRC4Key[6] = ppk1 % 256; in TKIPvMixKey()
258 pbyRC4Key[7] = (ppk1 >> 8) % 256; in TKIPvMixKey()
/linux-2.6.39/drivers/staging/vt6655/
Dtkip.c197 unsigned int ppk0, ppk1, ppk2, ppk3, ppk4, ppk5; in TKIPvMixKey() local
228 ppk1 = p1k[1]; in TKIPvMixKey()
236 ppk1 = ppk1 + tkip_sbox( (ppk0 ^ ((256*pbyTKey[3]) + pbyTKey[2])) % 65536); in TKIPvMixKey()
237 ppk2 = ppk2 + tkip_sbox( (ppk1 ^ ((256*pbyTKey[5]) + pbyTKey[4])) % 65536); in TKIPvMixKey()
243 ppk1 = ppk1 + rotr1(ppk0 ^ ((256*pbyTKey[15]) + pbyTKey[14])); in TKIPvMixKey()
244 ppk2 = ppk2 + rotr1(ppk1); in TKIPvMixKey()
258 pbyRC4Key[6] = ppk1 % 256; in TKIPvMixKey()
259 pbyRC4Key[7] = (ppk1 >> 8) % 256; in TKIPvMixKey()
/linux-2.6.39/drivers/staging/rt2860/common/
Dcmm_tkip.c597 u32 ppk1; in RTMPTkipMixKey() local
645 ppk1 = p1k[1]; in RTMPTkipMixKey()
653 ppk1 = ppk1 + tkip_sbox((ppk0 ^ ((256 * key[3]) + key[2])) % 65536); in RTMPTkipMixKey()
654 ppk2 = ppk2 + tkip_sbox((ppk1 ^ ((256 * key[5]) + key[4])) % 65536); in RTMPTkipMixKey()
660 ppk1 = ppk1 + rotr1(ppk0 ^ ((256 * key[15]) + key[14])); in RTMPTkipMixKey()
661 ppk2 = ppk2 + rotr1(ppk1); in RTMPTkipMixKey()
681 rc4key[6] = ppk1 % 256; in RTMPTkipMixKey()
682 rc4key[7] = (ppk1 >> 8) % 256; in RTMPTkipMixKey()