Home
last modified time | relevance | path

Searched refs:rx_pn (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/net/wireless/
Dlib80211_crypt_ccmp.c44 u8 rx_pn[CCMP_PN_LEN]; member
301 if (ccmp_replay_check(pn, key->rx_pn)) { in lib80211_ccmp_decrypt()
305 key->rx_pn[0], key->rx_pn[1], key->rx_pn[2], in lib80211_ccmp_decrypt()
306 key->rx_pn[3], key->rx_pn[4], key->rx_pn[5], in lib80211_ccmp_decrypt()
337 memcpy(key->rx_pn, pn, CCMP_PN_LEN); in lib80211_ccmp_decrypt()
361 data->rx_pn[0] = seq[5]; in lib80211_ccmp_set_key()
362 data->rx_pn[1] = seq[4]; in lib80211_ccmp_set_key()
363 data->rx_pn[2] = seq[3]; in lib80211_ccmp_set_key()
364 data->rx_pn[3] = seq[2]; in lib80211_ccmp_set_key()
365 data->rx_pn[4] = seq[1]; in lib80211_ccmp_set_key()
[all …]
/kernel/linux/linux-5.10/net/mac80211/
Dkey.h91 u8 rx_pn[IEEE80211_NUM_TIDS + 1][IEEE80211_CCMP_PN_LEN]; member
96 u8 rx_pn[IEEE80211_CMAC_PN_LEN]; member
102 u8 rx_pn[IEEE80211_GMAC_PN_LEN]; member
113 u8 rx_pn[IEEE80211_NUM_TIDS + 1][IEEE80211_GCMP_PN_LEN]; member
119 u8 rx_pn[IEEE80211_NUM_TIDS + 1][IEEE80211_MAX_PN_LEN]; member
Dkey.c584 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc()
604 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc()
626 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc()
646 key->u.aes_gmac.rx_pn[j] = in ieee80211_key_alloc()
665 key->u.gcmp.rx_pn[i][j] = in ieee80211_key_alloc()
689 key->u.gen.rx_pn[i][j] = in ieee80211_key_alloc()
1165 pn = key->u.ccmp.rx_pn[IEEE80211_NUM_TIDS]; in ieee80211_get_key_rx_seq()
1167 pn = key->u.ccmp.rx_pn[tid]; in ieee80211_get_key_rx_seq()
1174 pn = key->u.aes_cmac.rx_pn; in ieee80211_get_key_rx_seq()
1181 pn = key->u.aes_gmac.rx_pn; in ieee80211_get_key_rx_seq()
[all …]
Dwpa.c537 res = memcmp(pn, key->u.ccmp.rx_pn[queue], in ieee80211_crypto_ccmp_decrypt()
559 memcpy(key->u.ccmp.rx_pn[queue], pn, IEEE80211_CCMP_PN_LEN); in ieee80211_crypto_ccmp_decrypt()
769 res = memcmp(pn, key->u.gcmp.rx_pn[queue], in ieee80211_crypto_gcmp_decrypt()
792 memcpy(key->u.gcmp.rx_pn[queue], pn, IEEE80211_GCMP_PN_LEN); in ieee80211_crypto_gcmp_decrypt()
858 u8 *rx_pn; in ieee80211_crypto_cs_decrypt() local
886 rx_pn = key->u.gen.rx_pn[qos_tid]; in ieee80211_crypto_cs_decrypt()
889 if (ieee80211_crypto_cs_pn_compare(skb_pn, rx_pn, cs->pn_len) <= 0) in ieee80211_crypto_cs_decrypt()
892 memcpy(rx_pn, skb_pn, cs->pn_len); in ieee80211_crypto_cs_decrypt()
1060 if (memcmp(ipn, key->u.aes_cmac.rx_pn, 6) <= 0) { in ieee80211_crypto_aes_cmac_decrypt()
1076 memcpy(key->u.aes_cmac.rx_pn, ipn, 6); in ieee80211_crypto_aes_cmac_decrypt()
[all …]
Ddebugfs_key.c181 rpn = key->u.ccmp.rx_pn[i]; in key_rx_spec_read()
191 rpn = key->u.aes_cmac.rx_pn; in key_rx_spec_read()
200 rpn = key->u.aes_gmac.rx_pn; in key_rx_spec_read()
210 rpn = key->u.gcmp.rx_pn[i]; in key_rx_spec_read()
Drx.c2291 rx->key->u.ccmp.rx_pn[queue], in ieee80211_rx_h_defragment()
2294 u.ccmp.rx_pn) != in ieee80211_rx_h_defragment()
2296 u.gcmp.rx_pn)); in ieee80211_rx_h_defragment()
2297 BUILD_BUG_ON(sizeof(rx->key->u.ccmp.rx_pn[queue]) != in ieee80211_rx_h_defragment()
2298 sizeof(rx->key->u.gcmp.rx_pn[queue])); in ieee80211_rx_h_defragment()
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c40 u8 rx_pn[CCMP_PN_LEN]; member
274 if (memcmp(pn, key->rx_pn, CCMP_PN_LEN) <= 0) { in ieee80211_ccmp_decrypt()
277 hdr->addr2, key->rx_pn, pn); in ieee80211_ccmp_decrypt()
316 memcpy(key->rx_pn, pn, CCMP_PN_LEN); in ieee80211_ccmp_decrypt()
339 data->rx_pn[0] = seq[5]; in ieee80211_ccmp_set_key()
340 data->rx_pn[1] = seq[4]; in ieee80211_ccmp_set_key()
341 data->rx_pn[2] = seq[3]; in ieee80211_ccmp_set_key()
342 data->rx_pn[3] = seq[2]; in ieee80211_ccmp_set_key()
343 data->rx_pn[4] = seq[1]; in ieee80211_ccmp_set_key()
344 data->rx_pn[5] = seq[0]; in ieee80211_ccmp_set_key()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c35 u8 rx_pn[CCMP_PN_LEN]; member
268 if (memcmp(pn, key->rx_pn, CCMP_PN_LEN) <= 0) { in rtllib_ccmp_decrypt()
306 memcpy(key->rx_pn, pn, CCMP_PN_LEN); in rtllib_ccmp_decrypt()
331 data->rx_pn[0] = seq[5]; in rtllib_ccmp_set_key()
332 data->rx_pn[1] = seq[4]; in rtllib_ccmp_set_key()
333 data->rx_pn[2] = seq[3]; in rtllib_ccmp_set_key()
334 data->rx_pn[3] = seq[2]; in rtllib_ccmp_set_key()
335 data->rx_pn[4] = seq[1]; in rtllib_ccmp_set_key()
336 data->rx_pn[5] = seq[0]; in rtllib_ccmp_set_key()
382 ccmp->tx_pn, ccmp->rx_pn, in rtllib_ccmp_print_stats()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dftm-initiator.c93 u8 rx_pn[IEEE80211_CCMP_PN_LEN]; member
736 memcpy(target->rx_pn, entry->rx_pn, sizeof(target->rx_pn)); in iwl_mvm_ftm_set_secured_ranging()
1032 memcpy(entry->rx_pn, fw_ap->rx_pn, sizeof(entry->rx_pn)); in iwl_mvm_ftm_pasn_update_pn()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/
Dlocation.h705 u8 rx_pn[IEEE80211_CCMP_PN_LEN]; member
1206 u8 rx_pn[IEEE80211_CCMP_PN_LEN]; member
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c2317 sec_type = peer->rx_pn[sec_index].sec_type; in ath10k_htt_rx_pn_check_replay_hl()
2318 ath10k_htt_rx_mpdu_desc_pn_hl(rx_desc, &new_pn, peer->rx_pn[sec_index].pn_len); in ath10k_htt_rx_pn_check_replay_hl()
2409 sec_type = peer->rx_pn[sec_index].sec_type; in ath10k_htt_rx_proc_rx_ind_hl()
2412 ath10k_htt_rx_mpdu_desc_pn_hl(rx_desc, &new_pn, peer->rx_pn[sec_index].pn_len); in ath10k_htt_rx_proc_rx_ind_hl()
2712 sec_type = peer->rx_pn[sec_index].sec_type; in ath10k_htt_rx_proc_rx_frag_ind_hl()
2713 ath10k_htt_rx_mpdu_desc_pn_hl(rx_desc, &new_pn, peer->rx_pn[sec_index].pn_len); in ath10k_htt_rx_proc_rx_frag_ind_hl()
3933 peer->rx_pn[sec_index].sec_type = sec_type; in ath10k_htt_rx_sec_ind_handler()
3934 peer->rx_pn[sec_index].pn_len = ath10k_htt_rx_pn_len(sec_type); in ath10k_htt_rx_sec_ind_handler()
Dcore.h436 } rx_pn[ATH10K_HTT_TXRX_PEER_SECURITY_MAX]; member