Lines Matching defs:tx
27 ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx)
33 struct sk_buff *skb = tx->skb;
39 if (!tx->key || tx->key->conf.alg != ALG_TKIP || skb->len < 24 ||
51 !(tx->flags & IEEE80211_TX_FRAGMENTED) &&
52 !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) {
69 key = &tx->key->conf.key[key_offset];
132 static int tkip_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb)
135 struct ieee80211_key *key = tx->key;
164 key->u.tkip.tx.iv16++;
165 if (key->u.tkip.tx.iv16 == 0)
166 key->u.tkip.tx.iv32++;
168 pos = ieee80211_tkip_add_iv(pos, key, key->u.tkip.tx.iv16);
178 return ieee80211_tkip_encrypt_data(tx->local->wep_tx_tfm,
184 ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx)
186 struct sk_buff *skb = tx->skb;
188 ieee80211_tx_set_protected(tx);
191 if (tkip_encrypt_skb(tx, skb) < 0)
345 static int ccmp_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb)
348 struct ieee80211_key *key = tx->key;
405 ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx)
407 struct sk_buff *skb = tx->skb;
409 ieee80211_tx_set_protected(tx);
412 if (ccmp_encrypt_skb(tx, skb) < 0)
504 ieee80211_crypto_aes_cmac_encrypt(struct ieee80211_tx_data *tx)
506 struct sk_buff *skb = tx->skb;
508 struct ieee80211_key *key = tx->key;