Home
last modified time | relevance | path

Searched refs:_S_ (Results 1 – 4 of 4) sorted by relevance

/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c217 static inline u16 _S_(u16 v) in _S_() function
240 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1()
241 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1()
242 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1()
243 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1()
244 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
267 PPK[0] += _S_(PPK[5] ^ Mk16_le((u16 *) &TK[0])); in tkip_mixing_phase2()
268 PPK[1] += _S_(PPK[0] ^ Mk16_le((u16 *) &TK[2])); in tkip_mixing_phase2()
269 PPK[2] += _S_(PPK[1] ^ Mk16_le((u16 *) &TK[4])); in tkip_mixing_phase2()
270 PPK[3] += _S_(PPK[2] ^ Mk16_le((u16 *) &TK[6])); in tkip_mixing_phase2()
[all …]
/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c207 static inline u16 _S_(u16 v) in _S_() function
230 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1()
231 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1()
232 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1()
233 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1()
234 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
256 PPK[0] += _S_(PPK[5] ^ Mk16_le((u16 *) &TK[0])); in tkip_mixing_phase2()
257 PPK[1] += _S_(PPK[0] ^ Mk16_le((u16 *) &TK[2])); in tkip_mixing_phase2()
258 PPK[2] += _S_(PPK[1] ^ Mk16_le((u16 *) &TK[4])); in tkip_mixing_phase2()
259 PPK[3] += _S_(PPK[2] ^ Mk16_le((u16 *) &TK[6])); in tkip_mixing_phase2()
[all …]
/drivers/staging/rtl8712/
Drtl871x_security.c387 #define _S_(v16) (Sbox1[0][Lo8(v16)] ^ Sbox1[1][Hi8(v16)]) macro
499 p1k[0] += _S_(p1k[4] ^ TK16((i & 1) + 0)); in phase1()
500 p1k[1] += _S_(p1k[0] ^ TK16((i & 1) + 2)); in phase1()
501 p1k[2] += _S_(p1k[1] ^ TK16((i & 1) + 4)); in phase1()
502 p1k[3] += _S_(p1k[2] ^ TK16((i & 1) + 6)); in phase1()
503 p1k[4] += _S_(p1k[3] ^ TK16((i & 1) + 0)); in phase1()
541 PPK[0] += _S_(PPK[5] ^ TK16(0)); /* Mix key in each "round" */ in phase2()
542 PPK[1] += _S_(PPK[0] ^ TK16(1)); in phase2()
543 PPK[2] += _S_(PPK[1] ^ TK16(2)); in phase2()
544 PPK[3] += _S_(PPK[2] ^ TK16(3)); in phase2()
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_security.c369 #define _S_(v16) (Sbox1[0][Lo8(v16)] ^ Sbox1[1][Hi8(v16)]) macro
481 p1k[0] += _S_(p1k[4] ^ TK16((i&1)+0)); in phase1()
482 p1k[1] += _S_(p1k[0] ^ TK16((i&1)+2)); in phase1()
483 p1k[2] += _S_(p1k[1] ^ TK16((i&1)+4)); in phase1()
484 p1k[3] += _S_(p1k[2] ^ TK16((i&1)+6)); in phase1()
485 p1k[4] += _S_(p1k[3] ^ TK16((i&1)+0)); in phase1()
523 PPK[0] += _S_(PPK[5] ^ TK16(0)); /* Mix key in each "round" */ in phase2()
524 PPK[1] += _S_(PPK[0] ^ TK16(1)); in phase2()
525 PPK[2] += _S_(PPK[1] ^ TK16(2)); in phase2()
526 PPK[3] += _S_(PPK[2] ^ TK16(3)); in phase2()
[all …]