Home
last modified time | relevance | path

Searched refs:hw_key (Results 1 – 25 of 46) sorted by relevance

12

/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/
Drt2x00crypto.c51 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in rt2x00crypto_create_tx_descriptor() local
53 if (!rt2x00_has_cap_hw_crypto(rt2x00dev) || !hw_key) in rt2x00crypto_create_tx_descriptor()
58 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
60 if (hw_key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in rt2x00crypto_create_tx_descriptor()
63 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
65 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
67 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) in rt2x00crypto_create_tx_descriptor()
70 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) in rt2x00crypto_create_tx_descriptor()
78 struct ieee80211_key_conf *key = tx_info->control.hw_key; in rt2x00crypto_tx_overhead()
/Linux-v4.19/net/mac80211/
Dwpa.c56 info->control.hw_key = NULL; in ieee80211_tx_h_michael_mic_add()
59 if (info->control.hw_key && in ieee80211_tx_h_michael_mic_add()
69 if (!info->control.hw_key) in ieee80211_tx_h_michael_mic_add()
206 if (info->control.hw_key && in tkip_encrypt_skb()
207 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) && in tkip_encrypt_skb()
208 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in tkip_encrypt_skb()
216 if (info->control.hw_key) in tkip_encrypt_skb()
230 if (info->control.hw_key && in tkip_encrypt_skb()
231 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in tkip_encrypt_skb()
239 if (info->control.hw_key) in tkip_encrypt_skb()
[all …]
Dwep.c109 if (info->control.hw_key && in ieee80211_wep_add_iv()
110 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in ieee80211_wep_add_iv()
307 struct ieee80211_key_conf *hw_key = info->control.hw_key; in wep_encrypt_skb() local
309 if (!hw_key) { in wep_encrypt_skb()
314 } else if ((hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) || in wep_encrypt_skb()
315 (hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in wep_encrypt_skb()
/Linux-v4.19/drivers/net/wireless/ti/wl1251/
Dtx.c193 if (control->control.hw_key && in wl1251_tx_send_packet()
194 control->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_send_packet()
311 if (info->control.hw_key) { in wl1251_tx_frame()
315 idx = info->control.hw_key->hw_key_idx; in wl1251_tx_frame()
438 if (info->control.hw_key && in wl1251_tx_packet_cb()
439 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_packet_cb()
/Linux-v4.19/drivers/net/wireless/intersil/p54/
Dtxrx.c804 if (info->control.hw_key) { in p54_tx_80211()
806 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()
901 if (info->control.hw_key) { in p54_tx_80211()
902 txhdr->key_type = p54_convert_algo(info->control.hw_key->cipher); in p54_tx_80211()
903 txhdr->key_len = min((u8)16, info->control.hw_key->keylen); in p54_tx_80211()
904 memcpy(txhdr->key, info->control.hw_key->key, txhdr->key_len); in p54_tx_80211()
905 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()
909 &(info->control.hw_key->key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]), in p54_tx_80211()
913 len += info->control.hw_key->icv_len; in p54_tx_80211()
914 skb_put_zero(skb, info->control.hw_key->icv_len); in p54_tx_80211()
/Linux-v4.19/drivers/net/wireless/ti/wl18xx/
Dtx.c130 info->control.hw_key && in wl18xx_tx_complete_packet()
131 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl18xx_tx_complete_packet()
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dtx.c399 info->control.hw_key && in wl1271_prepare_tx_frame()
400 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame()
403 if (info->control.hw_key) { in wl1271_prepare_tx_frame()
405 u8 idx = info->control.hw_key->hw_key_idx; in wl1271_prepare_tx_frame()
406 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame()
966 info->control.hw_key && in wl1271_tx_complete_packet()
967 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet()
1128 info->control.hw_key && in wl12xx_tx_reset()
1129 info->control.hw_key->cipher == in wl12xx_tx_reset()
/Linux-v4.19/drivers/crypto/ccree/
Dcc_hw_queue_defs.h489 enum cc_hw_crypto_key hw_key) in set_hw_crypto_key() argument
492 (hw_key & HW_KEY_MASK_CIPHER_DO)) | in set_hw_crypto_key()
494 (hw_key >> HW_KEY_SHIFT_CIPHER_CFG2)); in set_hw_crypto_key()
Dcc_cipher.c43 bool hw_key; member
55 return ctx_p->hw_key; in cc_is_hw_key()
296 ctx_p->hw_key = true; in cc_cipher_sethkey()
326 ctx_p->hw_key = false; in cc_cipher_setkey()
/Linux-v4.19/drivers/net/wireless/broadcom/b43legacy/
Dxmit.c195 int use_encryption = !!info->control.hw_key; in generate_txhdr_fw3()
238 u8 key_idx = info->control.hw_key->hw_key_idx; in generate_txhdr_fw3()
248 plcp_fragment_len += info->control.hw_key->icv_len; in generate_txhdr_fw3()
257 iv_len = min_t(size_t, info->control.hw_key->iv_len, in generate_txhdr_fw3()
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dxmit.c260 int use_encryption = !!info->control.hw_key; in b43_generate_txhdr()
307 u8 key_idx = info->control.hw_key->hw_key_idx; in b43_generate_txhdr()
325 plcp_fragment_len += info->control.hw_key->icv_len; in b43_generate_txhdr()
339 ieee80211_get_tkip_p1k(info->control.hw_key, skb_frag, phase1key); in b43_generate_txhdr()
348 iv_len = min_t(size_t, info->control.hw_key->iv_len, in b43_generate_txhdr()
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dcommon.c279 if (tx_info->control.hw_key) { in ath9k_cmn_get_hw_crypto_keytype()
280 switch (tx_info->control.hw_key->cipher) { in ath9k_cmn_get_hw_crypto_keytype()
/Linux-v4.19/drivers/staging/vt6655/
Drxtx.c1054 if (info->control.hw_key) { in s_cbFillTxBufHead()
1055 switch (info->control.hw_key->cipher) { in s_cbFillTxBufHead()
1062 cbFrameSize += info->control.hw_key->icv_len; in s_cbFillTxBufHead()
1359 if (info->control.hw_key) { in vnt_generate_fifo_header()
1360 tx_key = info->control.hw_key; in vnt_generate_fifo_header()
1362 switch (info->control.hw_key->cipher) { in vnt_generate_fifo_header()
1394 if (info->control.hw_key) { in vnt_generate_fifo_header()
1395 tx_key = info->control.hw_key; in vnt_generate_fifo_header()
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dtxrx.c506 if (!t->tx_info->control.hw_key || in cw1200_tx_h_crypt()
510 t->hdrlen += t->tx_info->control.hw_key->iv_len; in cw1200_tx_h_crypt()
511 skb_put(t->skb, t->tx_info->control.hw_key->icv_len); in cw1200_tx_h_crypt()
513 if (t->tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_h_crypt()
954 if (tx->control.hw_key) { in cw1200_tx_confirm_cb()
955 skb_trim(skb, skb->len - tx->control.hw_key->icv_len); in cw1200_tx_confirm_cb()
956 if (tx->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_confirm_cb()
Dwsm.c1535 tx_info->control.hw_key && in wsm_handle_tx_data()
1536 tx_info->control.hw_key->keyidx != priv->wep_default_key_id && in wsm_handle_tx_data()
1537 (tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP40 || in wsm_handle_tx_data()
1538 tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP104)) { in wsm_handle_tx_data()
1565 priv->wep_default_key_id = tx_info->control.hw_key->keyidx; in wsm_handle_tx_data()
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Dtx.c192 if (!iwl_mvm_has_new_tx_api(mvm) && info->control.hw_key && in iwl_mvm_tx_csum()
193 info->control.hw_key->cipher != WLAN_CIPHER_SUITE_WEP40 && in iwl_mvm_tx_csum()
194 info->control.hw_key->cipher != WLAN_CIPHER_SUITE_WEP104) in iwl_mvm_tx_csum()
195 mh_len += info->control.hw_key->iv_len; in iwl_mvm_tx_csum()
397 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_pn()
420 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_crypto()
512 if (!info->control.hw_key) in iwl_mvm_set_tx_params()
554 if (info->control.hw_key) in iwl_mvm_set_tx_params()
Dtdls.c472 if (info->control.hw_key) { in iwl_mvm_tdls_config_channel_switch()
473 if (info->control.hw_key->cipher != WLAN_CIPHER_SUITE_CCMP) { in iwl_mvm_tdls_config_channel_switch()
/Linux-v4.19/drivers/staging/vt6656/
Drxtx.c894 if (info->control.hw_key) { in vnt_tx_packet()
895 tx_key = info->control.hw_key; in vnt_tx_packet()
896 switch (info->control.hw_key->cipher) { in vnt_tx_packet()
959 if (info->control.hw_key) { in vnt_tx_packet()
960 tx_key = info->control.hw_key; in vnt_tx_packet()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2_tx_common.c35 if (!info->control.hw_key && wcid->hw_key_idx != -1) in mt76x2_tx()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dtrx.c459 if (info->control.hw_key) { in rtl92se_tx_fill_desc()
462 keyconf = info->control.hw_key; in rtl92se_tx_fill_desc()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dtrx.c470 if (info->control.hw_key) { in rtl8723e_tx_fill_desc()
472 info->control.hw_key; in rtl8723e_tx_fill_desc()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dtrx.c525 if (info->control.hw_key) { in rtl92ce_tx_fill_desc()
527 info->control.hw_key; in rtl92ce_tx_fill_desc()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dtrx.c544 if (info->control.hw_key) { in rtl8723be_tx_fill_desc()
546 info->control.hw_key; in rtl8723be_tx_fill_desc()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dtrx.c559 if (info->control.hw_key) { in rtl92cu_tx_fill_desc()
560 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92cu_tx_fill_desc()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dtx.c169 } else if (vif && (!info->control.hw_key && wcid->hw_key_idx != -1)) { in mt76x0_tx()

12