Home
last modified time | relevance | path

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

/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_tkip.c185 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 …]
/openbmc/linux/net/wireless/
H A Dlib80211_crypt_tkip.c207 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()
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()
257 PPK[4] += _S_(PPK[3] ^ Mk16_le((__le16 *) & TK[8])); in tkip_mixing_phase2()
[all …]
/openbmc/linux/drivers/staging/rtl8192e/
H A Drtllib_crypt_tkip.c175 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()
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()
225 PPK[4] += _S_(PPK[3] ^ Mk16_le((u16 *)&TK[8])); in tkip_mixing_phase2()
[all …]
/openbmc/linux/drivers/staging/rtl8712/
H A Drtl871x_security.c375 #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 …]
/openbmc/linux/drivers/staging/rtl8723bs/core/
H A Drtw_security.c267 #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 …]