Lines Matching defs:iv16
68 static u8 *write_tkip_iv(u8 *pos, u16 iv16)
70 *pos++ = iv16 >> 8;
71 *pos++ = ((iv16 >> 8) | 0x20) & 0x7f;
72 *pos++ = iv16 & 0xFF;
143 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key, u16 iv16)
145 pos = write_tkip_iv(pos, iv16);
161 u16 iv16;
165 iv16 = data[2] | (data[0] << 8);
172 printk(KERN_DEBUG "TKIP encrypt: iv16 = 0x%04x, iv32 = 0x%08x\n",
173 iv16, iv32);
178 printk(KERN_DEBUG "Wrap around of iv16 in the middle of a "
183 /* Update the p1k only when the iv16 in the packet wraps around, this
184 * might occur after the wrap around of iv16 in the key in case of
186 if (iv16 == 0 || ctx->state == TKIP_STATE_NOT_INIT)
194 tkip_mixing_phase2(tk, ctx, iv16, outkey);
214 if (ctx->iv16 == 0 || ctx->state == TKIP_STATE_NOT_INIT)
217 tkip_mixing_phase2(tk, ctx, ctx->iv16, rc4key);
233 u32 iv16;
241 iv16 = (pos[0] << 8) | pos[2];
252 printk(KERN_DEBUG "TKIP decrypt: iv16=%04x iv32=%08x\n",
253 iv16, iv32);
266 iv16 <= key->u.tkip.rx[queue].iv16))) {
271 iv32, iv16, key->u.tkip.rx[queue].iv32,
272 key->u.tkip.rx[queue].iv16);
317 tkip_mixing_phase2(tk, &key->u.tkip.rx[queue], iv16, rc4key);
338 *out_iv16 = iv16;