Lines Matching defs:key
32 u8 key[WEP_KEY_LEN + 1];
62 /* Add WEP IV/key info to a frame that has at least 4 bytes of headroom */
64 u8 *key, int keylen, void *priv)
81 /* Fluhrer, Mantin, and Shamir have reported weaknesses in the key
90 /* Prepend 24-bit IV to RC4 key and TX frame */
103 * WEP frame payload: IV + TX key idx, RC4(data), ICV = RC4(CRC32(data))
110 u8 key[WEP_KEY_LEN + 3];
120 /* Copy the IV into the first 3 bytes of the key */
121 skb_copy_from_linear_data_offset(skb, hdr_len, key, 3);
123 /* Copy rest of the WEP key (the secret part) */
124 memcpy(key + 3, wep->key, wep->key_len);
138 arc4_setkey(&wep->tx_ctx, key, klen);
155 u8 key[WEP_KEY_LEN + 3];
162 key[0] = *pos++;
163 key[1] = *pos++;
164 key[2] = *pos++;
171 /* Copy rest of the WEP key (the secret part) */
172 memcpy(key + 3, wep->key, wep->key_len);
177 arc4_setkey(&wep->rx_ctx, key, klen);
198 static int lib80211_wep_set_key(void *key, int len, u8 * seq, void *priv)
205 memcpy(wep->key, key, len);
211 static int lib80211_wep_get_key(void *key, int len, u8 * seq, void *priv)
218 memcpy(key, wep->key, wep->key_len);
226 seq_printf(m, "key[%d] alg=WEP len=%d\n", wep->key_idx, wep->key_len);