/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00crypto.c | 40 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() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00crypto.c | 40 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() [all...] |
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | wpa.c | 54 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...] |
H A D | wep.c | 83 if (info->control.hw_key && in ieee80211_wep_add_iv() 84 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in ieee80211_wep_add_iv() 273 struct ieee80211_key_conf *hw_key = info->control.hw_key; in wep_encrypt_skb() local 275 if (!hw_key) { in wep_encrypt_skb() 280 } else if ((hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) || in wep_encrypt_skb() 281 (hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in wep_encrypt_skb()
|
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | wpa.c | 54 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...] |
H A D | wep.c | 83 if (info->control.hw_key && in ieee80211_wep_add_iv() 84 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in ieee80211_wep_add_iv() 273 struct ieee80211_key_conf *hw_key = info->control.hw_key; in wep_encrypt_skb() local 275 if (!hw_key) { in wep_encrypt_skb() 280 } else if ((hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) || in wep_encrypt_skb() 281 (hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in wep_encrypt_skb()
|
/kernel/linux/linux-5.10/drivers/staging/wfx/ |
H A D | data_tx.c | 317 static int wfx_tx_get_icv_len(struct ieee80211_key_conf *hw_key) in wfx_tx_get_icv_len() argument 321 if (!hw_key) in wfx_tx_get_icv_len() 323 if (hw_key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) in wfx_tx_get_icv_len() 325 mic_space = (hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) ? 8 : 0; in wfx_tx_get_icv_len() 326 return hw_key->icv_len + mic_space; in wfx_tx_get_icv_len() 336 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in wfx_tx_inner() local 350 tx_priv->icv_size = wfx_tx_get_icv_len(hw_key); in wfx_tx_inner()
|
/kernel/linux/linux-6.6/drivers/net/wireless/silabs/wfx/ |
H A D | data_tx.c | 292 static int wfx_tx_get_icv_len(struct ieee80211_key_conf *hw_key) in wfx_tx_get_icv_len() argument 296 if (!hw_key) in wfx_tx_get_icv_len() 298 if (hw_key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) in wfx_tx_get_icv_len() 300 mic_space = (hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) ? 8 : 0; in wfx_tx_get_icv_len() 301 return hw_key->icv_len + mic_space; in wfx_tx_get_icv_len() 310 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in wfx_tx_inner() local 323 tx_priv->icv_size = wfx_tx_get_icv_len(hw_key); in wfx_tx_inner()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/ |
H A D | txrx.c | 810 if (info->control.hw_key) { in p54_tx_80211() 812 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211() 907 if (info->control.hw_key) { in p54_tx_80211() 908 txhdr->key_type = p54_convert_algo(info->control.hw_key->cipher); in p54_tx_80211() 909 txhdr->key_len = min((u8)16, info->control.hw_key->keylen); in p54_tx_80211() 910 memcpy(txhdr->key, info->control.hw_key->key, txhdr->key_len); in p54_tx_80211() 911 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211() 915 &(info->control.hw_key->key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]), in p54_tx_80211() 919 len += info->control.hw_key->icv_len; in p54_tx_80211() 920 skb_put_zero(skb, info->control.hw_key in p54_tx_80211() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/p54/ |
H A D | txrx.c | 806 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 in p54_tx_80211() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
H A D | tx.c | 179 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl1251/ |
H A D | tx.c | 179 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()
|
/kernel/linux/linux-5.10/drivers/staging/vt6656/ |
H A D | rxtx.c | 299 struct ieee80211_key_conf *tx_key = info->control.hw_key; in vnt_fill_txkey() 394 if (info->control.hw_key) { in vnt_rxtx_rts() 415 if (info->control.hw_key) { in vnt_rxtx_cts() 433 if (info->control.hw_key) { in vnt_rxtx_ab() 481 if (info->control.hw_key) { in vnt_get_hdr_size() 482 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_CCMP) in vnt_get_hdr_size() 598 if (info->control.hw_key) in vnt_tx_packet() 599 tx_context->frame_len += info->control.hw_key->icv_len; in vnt_tx_packet()
|
/kernel/linux/linux-6.6/drivers/staging/vt6656/ |
H A D | rxtx.c | 295 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl18xx/ |
H A D | tx.c | 116 info->control.hw_key && in wl18xx_tx_complete_packet() 117 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl18xx_tx_complete_packet()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl18xx/ |
H A D | tx.c | 116 info->control.hw_key && in wl18xx_tx_complete_packet() 117 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl18xx_tx_complete_packet()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
H A D | tx.c | 385 info->control.hw_key && in wl1271_prepare_tx_frame() 386 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame() 389 if (info->control.hw_key) { in wl1271_prepare_tx_frame() 391 u8 idx = info->control.hw_key->hw_key_idx; in wl1271_prepare_tx_frame() 392 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame() 953 info->control.hw_key && in wl1271_tx_complete_packet() 954 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet() 1115 info->control.hw_key && in wl12xx_tx_reset() 1116 info->control.hw_key->cipher == in wl12xx_tx_reset()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wlcore/ |
H A D | tx.c | 385 info->control.hw_key && in wl1271_prepare_tx_frame() 386 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame() 389 if (info->control.hw_key) { in wl1271_prepare_tx_frame() 391 u8 idx = info->control.hw_key->hw_key_idx; in wl1271_prepare_tx_frame() 392 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame() 951 info->control.hw_key && in wl1271_tx_complete_packet() 952 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet() 1113 info->control.hw_key && in wl12xx_tx_reset() 1114 info->control.hw_key->cipher == in wl12xx_tx_reset()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/ |
H A D | xmit.c | 182 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43legacy/ |
H A D | xmit.c | 182 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | pci_mac.c | 94 struct ieee80211_key_conf *key = info->control.hw_key; in mt7615_write_fw_txp() 137 struct ieee80211_key_conf *key = info->control.hw_key; in mt7615_tx_prepare_skb()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
H A D | xmit.c | 247 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
H A D | xmit.c | 247 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()
|
/kernel/linux/linux-5.10/drivers/crypto/ccree/ |
H A D | cc_hw_queue_defs.h | 543 * @hw_key: The HW key slot asdefined in enum cc_hw_crypto_key 546 enum cc_hw_crypto_key hw_key) in set_hw_crypto_key() 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() 545 set_hw_crypto_key(struct cc_hw_desc *pdesc, enum cc_hw_crypto_key hw_key) set_hw_crypto_key() argument
|
/kernel/linux/linux-6.6/drivers/crypto/ccree/ |
H A D | cc_hw_queue_defs.h | 543 * @hw_key: The HW key slot asdefined in enum cc_hw_crypto_key 546 enum cc_hw_crypto_key hw_key) in set_hw_crypto_key() 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() 545 set_hw_crypto_key(struct cc_hw_desc *pdesc, enum cc_hw_crypto_key hw_key) set_hw_crypto_key() argument
|