Home
last modified time | relevance | path

Searched refs:S_SWAP (Results 1 – 3 of 3) sorted by relevance

/src/contrib/wpa/src/crypto/
H A Drc4.c14 #define S_SWAP(a,b) do { u8 t = S[a]; S[a] = S[b]; S[b] = t; } while(0) macro
33 S_SWAP(i, j); in rc4_skip()
41 S_SWAP(i, j); in rc4_skip()
49 S_SWAP(i, j); in rc4_skip()
/src/sys/net80211/
H A Dieee80211_crypto_wep.c347 #define S_SWAP(a,b) do { uint8_t t = S[a]; S[a] = S[b]; S[b] = t; } while(0) in wep_encrypt() macro
372 S_SWAP(i, j); in wep_encrypt()
391 S_SWAP(i, j); in wep_encrypt()
420 S_SWAP(i, j); in wep_encrypt()
424 #undef S_SWAP in wep_encrypt()
430 #define S_SWAP(a,b) do { uint8_t t = S[a]; S[a] = S[b]; S[b] = t; } while(0) in wep_decrypt() macro
455 S_SWAP(i, j); in wep_decrypt()
473 S_SWAP(i, j); in wep_decrypt()
503 S_SWAP(i, j); in wep_decrypt()
511 #undef S_SWAP in wep_decrypt()
H A Dieee80211_crypto_tkip.c675 #define S_SWAP(a,b) do { u8 t = S[a]; S[a] = S[b]; S[b] = t; } while(0) in wep_encrypt() macro
683 S_SWAP(i, j); in wep_encrypt()
700 S_SWAP(i, j); in wep_encrypt()
722 S_SWAP(i, j); in wep_encrypt()
741 S_SWAP(i, j); in wep_decrypt()
756 S_SWAP(i, j); in wep_decrypt()
781 S_SWAP(i, j); in wep_decrypt()