Lines Matching refs:iv
31 static inline bool ieee80211_wep_weak_iv(u32 iv, int keylen) in ieee80211_wep_weak_iv() argument
38 if ((iv & 0xff00) == 0xff00) { in ieee80211_wep_weak_iv()
39 u8 B = (iv >> 16) & 0xff; in ieee80211_wep_weak_iv()
48 int keylen, int keyidx, u8 *iv) in ieee80211_wep_get_iv() argument
54 if (!iv) in ieee80211_wep_get_iv()
57 *iv++ = (local->wep_iv >> 16) & 0xff; in ieee80211_wep_get_iv()
58 *iv++ = (local->wep_iv >> 8) & 0xff; in ieee80211_wep_get_iv()
59 *iv++ = local->wep_iv & 0xff; in ieee80211_wep_get_iv()
60 *iv++ = keyidx << 6; in ieee80211_wep_get_iv()
135 u8 *iv; in ieee80211_wep_encrypt() local
142 iv = ieee80211_wep_add_iv(local, skb, keylen, keyidx); in ieee80211_wep_encrypt()
143 if (!iv) in ieee80211_wep_encrypt()
146 len = skb->len - (iv + IEEE80211_WEP_IV_LEN - skb->data); in ieee80211_wep_encrypt()
149 memcpy(rc4key, iv, 3); in ieee80211_wep_encrypt()
158 iv + IEEE80211_WEP_IV_LEN, len); in ieee80211_wep_encrypt()