Searched refs:_S_ (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.4/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 202 static inline u16 _S_(u16 v) in _S_() function 225 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1() 226 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1() 227 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1() 228 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1() 229 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1() 252 PPK[0] += _S_(PPK[5] ^ le16_to_cpu(*(__le16 *)(&TK[0]))); in tkip_mixing_phase2() 253 PPK[1] += _S_(PPK[0] ^ le16_to_cpu(*(__le16 *)(&TK[2]))); in tkip_mixing_phase2() 254 PPK[2] += _S_(PPK[1] ^ le16_to_cpu(*(__le16 *)(&TK[4]))); in tkip_mixing_phase2() 255 PPK[3] += _S_(PPK[2] ^ le16_to_cpu(*(__le16 *)(&TK[6]))); in tkip_mixing_phase2() [all …]
|
/Linux-v5.4/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 199 static inline u16 _S_(u16 v) in _S_() function 222 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1() 223 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1() 224 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1() 225 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1() 226 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1() 248 PPK[0] += _S_(PPK[5] ^ Mk16_le((u16 *) &TK[0])); in tkip_mixing_phase2() 249 PPK[1] += _S_(PPK[0] ^ Mk16_le((u16 *) &TK[2])); in tkip_mixing_phase2() 250 PPK[2] += _S_(PPK[1] ^ Mk16_le((u16 *) &TK[4])); in tkip_mixing_phase2() 251 PPK[3] += _S_(PPK[2] ^ Mk16_le((u16 *) &TK[6])); in tkip_mixing_phase2() [all …]
|
/Linux-v5.4/net/wireless/ |
D | lib80211_crypt_tkip.c | 207 static inline u16 _S_(u16 v) in _S_() function 229 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1() 230 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1() 231 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1() 232 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1() 233 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1() 253 PPK[0] += _S_(PPK[5] ^ Mk16_le((__le16 *) & TK[0])); in tkip_mixing_phase2() 254 PPK[1] += _S_(PPK[0] ^ Mk16_le((__le16 *) & TK[2])); in tkip_mixing_phase2() 255 PPK[2] += _S_(PPK[1] ^ Mk16_le((__le16 *) & TK[4])); in tkip_mixing_phase2() 256 PPK[3] += _S_(PPK[2] ^ Mk16_le((__le16 *) & TK[6])); in tkip_mixing_phase2() [all …]
|
/Linux-v5.4/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 388 #define _S_(v16) (Sbox1[0][Lo8(v16)] ^ Sbox1[1][Hi8(v16)]) macro 500 p1k[0] += _S_(p1k[4] ^ TK16((i&1)+0)); in phase1() 501 p1k[1] += _S_(p1k[0] ^ TK16((i&1)+2)); in phase1() 502 p1k[2] += _S_(p1k[1] ^ TK16((i&1)+4)); in phase1() 503 p1k[3] += _S_(p1k[2] ^ TK16((i&1)+6)); in phase1() 504 p1k[4] += _S_(p1k[3] ^ TK16((i&1)+0)); in phase1() 542 PPK[0] += _S_(PPK[5] ^ TK16(0)); /* Mix key in each "round" */ in phase2() 543 PPK[1] += _S_(PPK[0] ^ TK16(1)); in phase2() 544 PPK[2] += _S_(PPK[1] ^ TK16(2)); in phase2() 545 PPK[3] += _S_(PPK[2] ^ TK16(3)); in phase2() [all …]
|
/Linux-v5.4/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 375 #define _S_(v16) (Sbox1[0][Lo8(v16)] ^ Sbox1[1][Hi8(v16)]) macro 487 p1k[0] += _S_(p1k[4] ^ TK16((i & 1) + 0)); in phase1() 488 p1k[1] += _S_(p1k[0] ^ TK16((i & 1) + 2)); in phase1() 489 p1k[2] += _S_(p1k[1] ^ TK16((i & 1) + 4)); in phase1() 490 p1k[3] += _S_(p1k[2] ^ TK16((i & 1) + 6)); in phase1() 491 p1k[4] += _S_(p1k[3] ^ TK16((i & 1) + 0)); in phase1() 529 PPK[0] += _S_(PPK[5] ^ TK16(0)); /* Mix key in each "round" */ in phase2() 530 PPK[1] += _S_(PPK[0] ^ TK16(1)); in phase2() 531 PPK[2] += _S_(PPK[1] ^ TK16(2)); in phase2() 532 PPK[3] += _S_(PPK[2] ^ TK16(3)); in phase2() [all …]
|
/Linux-v5.4/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 454 #define _S_(v16) (Sbox1[0][Lo8(v16)] ^ Sbox1[1][Hi8(v16)]) macro 570 p1k[0] += _S_(p1k[4] ^ TK16((i&1)+0)); in phase1() 571 p1k[1] += _S_(p1k[0] ^ TK16((i&1)+2)); in phase1() 572 p1k[2] += _S_(p1k[1] ^ TK16((i&1)+4)); in phase1() 573 p1k[3] += _S_(p1k[2] ^ TK16((i&1)+6)); in phase1() 574 p1k[4] += _S_(p1k[3] ^ TK16((i&1)+0)); in phase1() 615 PPK[0] += _S_(PPK[5] ^ TK16(0)); /* Mix key in each "round" */ in phase2() 616 PPK[1] += _S_(PPK[0] ^ TK16(1)); in phase2() 617 PPK[2] += _S_(PPK[1] ^ TK16(2)); in phase2() 618 PPK[3] += _S_(PPK[2] ^ TK16(3)); in phase2() [all …]
|