Home
last modified time | relevance | path

Searched refs:CCMP_MIC_LEN (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/staging/rtl8192e/
H A Drtllib_crypt_ccmp.c26 #define CCMP_MIC_LEN 8 macro
162 skb_tailroom(skb) < CCMP_MIC_LEN || in rtllib_ccmp_encrypt()
202 skb_put(skb, CCMP_MIC_LEN); in rtllib_ccmp_encrypt()
206 data_len + CCMP_MIC_LEN); in rtllib_ccmp_encrypt()
231 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in rtllib_ccmp_decrypt()
311 skb_trim(skb, skb->len - CCMP_MIC_LEN); in rtllib_ccmp_decrypt()
338 if (crypto_aead_setauthsize(data->tfm, CCMP_MIC_LEN) || in rtllib_ccmp_set_key()
400 .extra_mpdu_postfix_len = CCMP_MIC_LEN,
/OK3568_Linux_fs/kernel/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_ccmp.c31 #define CCMP_MIC_LEN 8 macro
168 skb_tailroom(skb) < CCMP_MIC_LEN || in ieee80211_ccmp_encrypt()
209 skb_put(skb, CCMP_MIC_LEN); in ieee80211_ccmp_encrypt()
214 data_len + CCMP_MIC_LEN); in ieee80211_ccmp_encrypt()
236 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in ieee80211_ccmp_decrypt()
321 skb_trim(skb, skb->len - CCMP_MIC_LEN); in ieee80211_ccmp_decrypt()
346 if (crypto_aead_setauthsize(tfm, CCMP_MIC_LEN) || in ieee80211_ccmp_set_key()
407 .extra_postfix_len = CCMP_MIC_LEN,
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/
H A Dsec_ccmp.c35 #define CCMP_MIC_LEN 8 macro
263 ret = skb_padto(skb, skb->len + CCMP_MIC_LEN); in lib80211_ccmp_encrypt()
312 mic = skb_put(skb, CCMP_MIC_LEN); in lib80211_ccmp_encrypt()
313 for (i = 0; i < CCMP_MIC_LEN; i++) in lib80211_ccmp_encrypt()
347 size_t data_len = skb->len - hdr_len - CCMP_HDR_LEN - CCMP_MIC_LEN; in lib80211_ccmp_decrypt()
348 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in lib80211_ccmp_decrypt()
350 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in lib80211_ccmp_decrypt()
408 xor_block(mic, b, CCMP_MIC_LEN); in lib80211_ccmp_decrypt()
421 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in lib80211_ccmp_decrypt()
437 skb_trim(skb, skb->len - CCMP_MIC_LEN); in lib80211_ccmp_decrypt()
[all …]
/OK3568_Linux_fs/kernel/net/wireless/
H A Dlib80211_crypt_ccmp.c35 #define CCMP_MIC_LEN 8 macro
201 if (skb_tailroom(skb) < CCMP_MIC_LEN || skb->len < hdr_len) in lib80211_ccmp_encrypt()
216 skb_put(skb, CCMP_MIC_LEN); in lib80211_ccmp_encrypt()
221 data_len + CCMP_MIC_LEN); in lib80211_ccmp_encrypt()
267 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in lib80211_ccmp_decrypt()
342 skb_trim(skb, skb->len - CCMP_MIC_LEN); in lib80211_ccmp_decrypt()
368 if (crypto_aead_setauthsize(data->tfm, CCMP_MIC_LEN) || in lib80211_ccmp_set_key()
433 .extra_mpdu_postfix_len = CCMP_MIC_LEN,