Lines Matching defs:key
35 * key scheduling algorithm of RC4. At least IVs (KeyByte + 3,
94 struct ieee80211_key *key)
105 /* Perform WEP encryption using given key. data buffer must have tailroom
129 * WEP frame payload: IV + TX key idx, RC4(data), ICV = RC4(CRC32(data))
133 const u8 *key, int keylen, int keyidx)
148 /* Prepend 24-bit IV to RC4 key */
151 /* Copy rest of the WEP key (the secret part) */
152 memcpy(rc4key + 3, key, keylen);
162 /* Perform WEP decryption using given key. data buffer includes encrypted
193 struct ieee80211_key *key)
214 if (!key || keyidx != key->conf.keyidx)
217 klen = 3 + key->conf.keylen;
219 /* Prepend 24-bit IV to RC4 key */
222 /* Copy rest of the WEP key (the secret part) */
223 memcpy(rc4key + 3, key->conf.key, key->conf.keylen);
254 if (ieee80211_wep_decrypt(rx->local, rx->skb, rx->key))
260 ieee80211_wep_remove_iv(rx->local, rx->skb, rx->key);
276 if (ieee80211_wep_encrypt(tx->local, skb, tx->key->conf.key,
277 tx->key->conf.keylen,
278 tx->key->conf.keyidx))
283 tx->key->conf.keylen,
284 tx->key->conf.keyidx))