Home
last modified time | relevance | path

Searched refs:iv16 (Results 1 – 7 of 7) sorted by relevance

/net/mac80211/
Dtkip.c67 static u8 *write_tkip_iv(u8 *pos, u16 iv16) in write_tkip_iv() argument
69 *pos++ = iv16 >> 8; in write_tkip_iv()
70 *pos++ = ((iv16 >> 8) | 0x20) & 0x7f; in write_tkip_iv()
71 *pos++ = iv16 & 0xFF; in write_tkip_iv()
142 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key, u16 iv16) in ieee80211_tkip_add_iv() argument
144 pos = write_tkip_iv(pos, iv16); in ieee80211_tkip_add_iv()
160 u16 iv16; in ieee80211_get_tkip_key() local
164 iv16 = data[2] | (data[0] << 8); in ieee80211_get_tkip_key()
172 iv16, iv32); in ieee80211_get_tkip_key()
185 if (iv16 == 0 || !ctx->initialized) in ieee80211_get_tkip_key()
[all …]
Dwpa.c132 rx->key->u.tkip.rx[rx->queue].iv16 = rx->tkip_iv16; in ieee80211_rx_h_michael_mic_verify()
171 key->u.tkip.tx.iv16++; in tkip_encrypt_skb()
172 if (key->u.tkip.tx.iv16 == 0) in tkip_encrypt_skb()
177 ieee80211_tkip_add_iv(pos, key, key->u.tkip.tx.iv16); in tkip_encrypt_skb()
Dtkip.h16 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key, u16 iv16);
Dcfg.c217 u16 iv16; in ieee80211_get_key() local
243 iv16 = key->u.tkip.tx.iv16; in ieee80211_get_key()
250 &iv32, &iv16); in ieee80211_get_key()
252 seq[0] = iv16 & 0xff; in ieee80211_get_key()
253 seq[1] = (iv16 >> 8) & 0xff; in ieee80211_get_key()
Dkey.h61 u16 iv16; member
Ddebugfs_key.c101 key->u.tkip.tx.iv16); in key_tx_spec_read()
132 key->u.tkip.rx[i].iv16); in key_rx_spec_read()
/net/wireless/
Dlib80211_crypt_tkip.c420 u16 iv16; in lib80211_tkip_decrypt() local
463 iv16 = (pos[0] << 8) | pos[2]; in lib80211_tkip_decrypt()
467 if (tkip_replay_check(iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) { in lib80211_tkip_decrypt()
473 tkey->rx_iv32, tkey->rx_iv16, iv32, iv16); in lib80211_tkip_decrypt()
484 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in lib80211_tkip_decrypt()
523 tkey->rx_iv16_new = iv16; in lib80211_tkip_decrypt()
715 u16 iv16 = tkey->tx_iv16; in lib80211_tkip_get_key() local
717 if (iv16 == 0) in lib80211_tkip_get_key()
719 iv16--; in lib80211_tkip_get_key()