Searched refs:_S_ (Results 1 – 4 of 4) sorted by relevance
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 185 static inline u16 _S_(u16 v) in _S_() function 208 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1() 209 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1() 210 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1() 211 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1() 212 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1() 235 PPK[0] += _S_(PPK[5] ^ le16_to_cpu(*(__le16 *)(&TK[0]))); in tkip_mixing_phase2() 236 PPK[1] += _S_(PPK[0] ^ le16_to_cpu(*(__le16 *)(&TK[2]))); in tkip_mixing_phase2() 237 PPK[2] += _S_(PPK[1] ^ le16_to_cpu(*(__le16 *)(&TK[4]))); in tkip_mixing_phase2() 238 PPK[3] += _S_(PPK[2] ^ le16_to_cpu(*(__le16 *)(&TK[6]))); in tkip_mixing_phase2() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 175 static inline u16 _S_(u16 v) in _S_() function 196 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1() 197 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1() 198 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1() 199 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1() 200 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1() 221 PPK[0] += _S_(PPK[5] ^ Mk16_le((u16 *)&TK[0])); in tkip_mixing_phase2() 222 PPK[1] += _S_(PPK[0] ^ Mk16_le((u16 *)&TK[2])); in tkip_mixing_phase2() 223 PPK[2] += _S_(PPK[1] ^ Mk16_le((u16 *)&TK[4])); in tkip_mixing_phase2() 224 PPK[3] += _S_(PPK[2] ^ Mk16_le((u16 *)&TK[6])); in tkip_mixing_phase2() [all …]
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 267 #define _S_(v16) (Sbox1[0][Lo8(v16)] ^ Sbox1[1][Hi8(v16)]) macro 378 p1k[0] += _S_(p1k[4] ^ TK16((i&1)+0)); in phase1() 379 p1k[1] += _S_(p1k[0] ^ TK16((i&1)+2)); in phase1() 380 p1k[2] += _S_(p1k[1] ^ TK16((i&1)+4)); in phase1() 381 p1k[3] += _S_(p1k[2] ^ TK16((i&1)+6)); in phase1() 382 p1k[4] += _S_(p1k[3] ^ TK16((i&1)+0)); in phase1() 423 PPK[0] += _S_(PPK[5] ^ TK16(0)); /* Mix key in each "round" */ in phase2() 424 PPK[1] += _S_(PPK[0] ^ TK16(1)); in phase2() 425 PPK[2] += _S_(PPK[1] ^ TK16(2)); in phase2() 426 PPK[3] += _S_(PPK[2] ^ TK16(3)); in phase2() [all …]
|
/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 375 #define _S_(v16) (Sbox1[0][Lo8(v16)] ^ Sbox1[1][Hi8(v16)]) macro 486 p1k[0] += _S_(p1k[4] ^ TK16((i & 1) + 0)); in phase1() 487 p1k[1] += _S_(p1k[0] ^ TK16((i & 1) + 2)); in phase1() 488 p1k[2] += _S_(p1k[1] ^ TK16((i & 1) + 4)); in phase1() 489 p1k[3] += _S_(p1k[2] ^ TK16((i & 1) + 6)); in phase1() 490 p1k[4] += _S_(p1k[3] ^ TK16((i & 1) + 0)); in phase1() 528 PPK[0] += _S_(PPK[5] ^ TK16(0)); /* Mix key in each "round" */ in phase2() 529 PPK[1] += _S_(PPK[0] ^ TK16(1)); in phase2() 530 PPK[2] += _S_(PPK[1] ^ TK16(2)); in phase2() 531 PPK[3] += _S_(PPK[2] ^ TK16(3)); in phase2() [all …]
|