Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_tkip.c230 static inline u16 _S_(u16 v) in _S_() function
251 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1()
252 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1()
253 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1()
254 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1()
255 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
276 PPK[0] += _S_(PPK[5] ^ Mk16_le((u16 *) &TK[0])); in tkip_mixing_phase2()
277 PPK[1] += _S_(PPK[0] ^ Mk16_le((u16 *) &TK[2])); in tkip_mixing_phase2()
278 PPK[2] += _S_(PPK[1] ^ Mk16_le((u16 *) &TK[4])); in tkip_mixing_phase2()
279 PPK[3] += _S_(PPK[2] ^ Mk16_le((u16 *) &TK[6])); in tkip_mixing_phase2()
[all …]
/linux-2.6.39/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c227 static inline u16 _S_(u16 v) in _S_() function
250 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1()
251 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1()
252 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1()
253 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1()
254 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
275 PPK[0] += _S_(PPK[5] ^ Mk16_le((u16 *) &TK[0])); in tkip_mixing_phase2()
276 PPK[1] += _S_(PPK[0] ^ Mk16_le((u16 *) &TK[2])); in tkip_mixing_phase2()
277 PPK[2] += _S_(PPK[1] ^ Mk16_le((u16 *) &TK[4])); in tkip_mixing_phase2()
278 PPK[3] += _S_(PPK[2] ^ Mk16_le((u16 *) &TK[6])); in tkip_mixing_phase2()
[all …]
/linux-2.6.39/drivers/staging/rtl8192e/ieee80211/
Dieee80211_crypt_tkip.c228 static inline u16 _S_(u16 v) in _S_() function
251 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1()
252 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1()
253 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1()
254 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1()
255 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
276 PPK[0] += _S_(PPK[5] ^ Mk16_le((u16 *) &TK[0])); in tkip_mixing_phase2()
277 PPK[1] += _S_(PPK[0] ^ Mk16_le((u16 *) &TK[2])); in tkip_mixing_phase2()
278 PPK[2] += _S_(PPK[1] ^ Mk16_le((u16 *) &TK[4])); in tkip_mixing_phase2()
279 PPK[3] += _S_(PPK[2] ^ Mk16_le((u16 *) &TK[6])); in tkip_mixing_phase2()
[all …]
/linux-2.6.39/net/wireless/
Dlib80211_crypt_tkip.c237 static inline u16 _S_(u16 v) in _S_() function
259 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1()
260 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1()
261 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1()
262 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1()
263 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
283 PPK[0] += _S_(PPK[5] ^ Mk16_le((__le16 *) & TK[0])); in tkip_mixing_phase2()
284 PPK[1] += _S_(PPK[0] ^ Mk16_le((__le16 *) & TK[2])); in tkip_mixing_phase2()
285 PPK[2] += _S_(PPK[1] ^ Mk16_le((__le16 *) & TK[4])); in tkip_mixing_phase2()
286 PPK[3] += _S_(PPK[2] ^ Mk16_le((__le16 *) & TK[6])); in tkip_mixing_phase2()
[all …]
/linux-2.6.39/drivers/staging/rtl8712/
Drtl871x_security.c375 #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 …]