Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/net/wireless/ralink/rt2x00/
Drt2x00crypto.c40 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in rt2x00crypto_create_tx_descriptor() local
42 if (!rt2x00_has_cap_hw_crypto(rt2x00dev) || !hw_key) in rt2x00crypto_create_tx_descriptor()
47 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
49 if (hw_key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in rt2x00crypto_create_tx_descriptor()
52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
54 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
56 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) in rt2x00crypto_create_tx_descriptor()
59 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) in rt2x00crypto_create_tx_descriptor()
67 struct ieee80211_key_conf *key = tx_info->control.hw_key; in rt2x00crypto_tx_overhead()
/linux-6.12.1/net/mac80211/
Dwpa.c54 info->control.hw_key = NULL; in ieee80211_tx_h_michael_mic_add()
57 if (info->control.hw_key && in ieee80211_tx_h_michael_mic_add()
67 if (!info->control.hw_key) in ieee80211_tx_h_michael_mic_add()
204 if (info->control.hw_key && in tkip_encrypt_skb()
205 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) && in tkip_encrypt_skb()
206 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in tkip_encrypt_skb()
214 if (info->control.hw_key) in tkip_encrypt_skb()
228 if (info->control.hw_key && in tkip_encrypt_skb()
229 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in tkip_encrypt_skb()
237 if (info->control.hw_key) in tkip_encrypt_skb()
[all …]
Dwep.c84 if (info->control.hw_key && in ieee80211_wep_add_iv()
85 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in ieee80211_wep_add_iv()
274 struct ieee80211_key_conf *hw_key = info->control.hw_key; in wep_encrypt_skb() local
276 if (!hw_key) { in wep_encrypt_skb()
281 } else if ((hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) || in wep_encrypt_skb()
282 (hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in wep_encrypt_skb()
/linux-6.12.1/drivers/net/wireless/silabs/wfx/
Ddata_tx.c322 static int wfx_tx_get_icv_len(struct ieee80211_key_conf *hw_key) in wfx_tx_get_icv_len() argument
326 if (!hw_key) in wfx_tx_get_icv_len()
328 if (hw_key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) in wfx_tx_get_icv_len()
330 mic_space = (hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) ? 8 : 0; in wfx_tx_get_icv_len()
331 return hw_key->icv_len + mic_space; in wfx_tx_get_icv_len()
340 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in wfx_tx_inner() local
353 tx_priv->icv_size = wfx_tx_get_icv_len(hw_key); in wfx_tx_inner()
/linux-6.12.1/drivers/net/wireless/ti/wl1251/
Dtx.c179 if (control->control.hw_key && in wl1251_tx_send_packet()
180 control->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_send_packet()
297 if (info->control.hw_key) { in wl1251_tx_frame()
301 idx = info->control.hw_key->hw_key_idx; in wl1251_tx_frame()
424 if (info->control.hw_key && in wl1251_tx_packet_cb()
425 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_packet_cb()
/linux-6.12.1/drivers/net/wireless/intersil/p54/
Dtxrx.c806 if (info->control.hw_key) { in p54_tx_80211()
808 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()
903 if (info->control.hw_key) { in p54_tx_80211()
904 txhdr->key_type = p54_convert_algo(info->control.hw_key->cipher); in p54_tx_80211()
905 txhdr->key_len = min((u8)16, info->control.hw_key->keylen); in p54_tx_80211()
906 memcpy(txhdr->key, info->control.hw_key->key, txhdr->key_len); in p54_tx_80211()
907 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()
911 &(info->control.hw_key->key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]), in p54_tx_80211()
915 len += info->control.hw_key->icv_len; in p54_tx_80211()
916 skb_put_zero(skb, info->control.hw_key->icv_len); in p54_tx_80211()
/linux-6.12.1/drivers/staging/vt6656/
Drxtx.c295 struct ieee80211_key_conf *tx_key = info->control.hw_key; in vnt_fill_txkey()
388 if (info->control.hw_key) { in vnt_rxtx_rts()
409 if (info->control.hw_key) { in vnt_rxtx_cts()
427 if (info->control.hw_key) { in vnt_rxtx_ab()
475 if (info->control.hw_key) { in vnt_get_hdr_size()
476 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_CCMP) in vnt_get_hdr_size()
592 if (info->control.hw_key) in vnt_tx_packet()
593 tx_context->frame_len += info->control.hw_key->icv_len; in vnt_tx_packet()
/linux-6.12.1/drivers/net/wireless/ti/wlcore/
Dtx.c382 info->control.hw_key && in wl1271_prepare_tx_frame()
383 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame()
386 if (info->control.hw_key) { in wl1271_prepare_tx_frame()
388 u8 idx = info->control.hw_key->hw_key_idx; in wl1271_prepare_tx_frame()
389 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame()
948 info->control.hw_key && in wl1271_tx_complete_packet()
949 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet()
1110 info->control.hw_key && in wl12xx_tx_reset()
1111 info->control.hw_key->cipher == in wl12xx_tx_reset()
/linux-6.12.1/drivers/net/wireless/ti/wl18xx/
Dtx.c116 info->control.hw_key && in wl18xx_tx_complete_packet()
117 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl18xx_tx_complete_packet()
/linux-6.12.1/drivers/crypto/ccree/
Dcc_hw_queue_defs.h546 enum cc_hw_crypto_key hw_key) in set_hw_crypto_key() argument
549 (hw_key & HW_KEY_MASK_CIPHER_DO)) | in set_hw_crypto_key()
551 (hw_key >> HW_KEY_SHIFT_CIPHER_CFG2)); in set_hw_crypto_key()
/linux-6.12.1/drivers/net/wireless/broadcom/b43legacy/
Dxmit.c182 int use_encryption = !!info->control.hw_key; in generate_txhdr_fw3()
225 u8 key_idx = info->control.hw_key->hw_key_idx; in generate_txhdr_fw3()
235 plcp_fragment_len += info->control.hw_key->icv_len; in generate_txhdr_fw3()
244 iv_len = min_t(size_t, info->control.hw_key->iv_len, in generate_txhdr_fw3()
/linux-6.12.1/drivers/net/wireless/broadcom/b43/
Dxmit.c247 int use_encryption = !!info->control.hw_key; in b43_generate_txhdr()
294 u8 key_idx = info->control.hw_key->hw_key_idx; in b43_generate_txhdr()
312 plcp_fragment_len += info->control.hw_key->icv_len; in b43_generate_txhdr()
326 ieee80211_get_tkip_p1k(info->control.hw_key, skb_frag, phase1key); in b43_generate_txhdr()
335 iv_len = min_t(size_t, info->control.hw_key->iv_len, in b43_generate_txhdr()
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7615/
Dpci_mac.c23 struct ieee80211_key_conf *key = info->control.hw_key; in mt7615_write_fw_txp()
67 struct ieee80211_key_conf *key = info->control.hw_key; in mt7615_tx_prepare_skb()
/linux-6.12.1/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-6.12.1/drivers/staging/vt6655/
Drxtx.c1004 if (info->control.hw_key) { in s_cbFillTxBufHead()
1005 switch (info->control.hw_key->cipher) { in s_cbFillTxBufHead()
1013 cbFrameSize += info->control.hw_key->icv_len; in s_cbFillTxBufHead()
1310 if (info->control.hw_key) { in vnt_generate_fifo_header()
1311 switch (info->control.hw_key->cipher) { in vnt_generate_fifo_header()
1344 if (info->control.hw_key) { in vnt_generate_fifo_header()
1345 tx_key = info->control.hw_key; in vnt_generate_fifo_header()
/linux-6.12.1/drivers/net/wireless/st/cw1200/
Dtxrx.c503 if (!t->tx_info->control.hw_key || in cw1200_tx_h_crypt()
507 t->hdrlen += t->tx_info->control.hw_key->iv_len; in cw1200_tx_h_crypt()
508 skb_put(t->skb, t->tx_info->control.hw_key->icv_len); in cw1200_tx_h_crypt()
510 if (t->tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_h_crypt()
948 if (tx->control.hw_key) { in cw1200_tx_confirm_cb()
949 skb_trim(skb, skb->len - tx->control.hw_key->icv_len); in cw1200_tx_confirm_cb()
950 if (tx->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_confirm_cb()
Dwsm.c1530 tx_info->control.hw_key && in wsm_handle_tx_data()
1531 tx_info->control.hw_key->keyidx != priv->wep_default_key_id && in wsm_handle_tx_data()
1532 (tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP40 || in wsm_handle_tx_data()
1533 tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP104)) { in wsm_handle_tx_data()
1560 priv->wep_default_key_id = tx_info->control.hw_key->keyidx; in wsm_handle_tx_data()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/
Dtx.c130 if (!iwl_mvm_has_new_tx_api(mvm) && info->control.hw_key && in iwl_mvm_tx_csum()
131 info->control.hw_key->cipher != WLAN_CIPHER_SUITE_WEP40 && in iwl_mvm_tx_csum()
132 info->control.hw_key->cipher != WLAN_CIPHER_SUITE_WEP104) in iwl_mvm_tx_csum()
133 mh_len += info->control.hw_key->iv_len; in iwl_mvm_tx_csum()
452 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_pn()
475 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_crypto()
591 if (!info->control.hw_key) in iwl_mvm_set_tx_params()
648 if (info->control.hw_key) in iwl_mvm_set_tx_params()
1316 info->control.hw_key && in iwl_mvm_tx_mpdu()
1318 info->control.hw_key->iv_len : 0); in iwl_mvm_tx_mpdu()
Dtdls.c407 if (info->control.hw_key) { in iwl_mvm_tdls_config_channel_switch()
408 if (info->control.hw_key->cipher != WLAN_CIPHER_SUITE_CCMP) { in iwl_mvm_tdls_config_channel_switch()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dtrx.c165 if (info->control.hw_key) { in rtl92de_tx_fill_desc()
168 keyconf = info->control.hw_key; in rtl92de_tx_fill_desc()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
Dtrx.c158 if (info->control.hw_key) { in rtl92du_tx_fill_desc()
159 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92du_tx_fill_desc()
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7921/
Dpci_mac.c15 struct ieee80211_key_conf *key = info->control.hw_key; in mt7921e_tx_prepare_skb()
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7925/
Dpci_mac.c15 struct ieee80211_key_conf *key = info->control.hw_key; in mt7925e_tx_prepare_skb()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dtrx.c448 if (info->control.hw_key) { in rtl92ce_tx_fill_desc()
450 info->control.hw_key; in rtl92ce_tx_fill_desc()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dtrx.c438 if (info->control.hw_key) { in rtl92se_tx_fill_desc()
441 keyconf = info->control.hw_key; in rtl92se_tx_fill_desc()

123