Lines Matching refs:CCMP_MIC_LEN
38 #define CCMP_MIC_LEN 8 macro
229 if (skb_tailroom(skb) < CCMP_MIC_LEN || skb->len < hdr_len) in lib80211_ccmp_encrypt()
257 mic = skb_put(skb, CCMP_MIC_LEN); in lib80211_ccmp_encrypt()
258 for (i = 0; i < CCMP_MIC_LEN; i++) in lib80211_ccmp_encrypt()
295 size_t data_len = skb->len - hdr_len - CCMP_HDR_LEN - CCMP_MIC_LEN; in lib80211_ccmp_decrypt()
296 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in lib80211_ccmp_decrypt()
298 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in lib80211_ccmp_decrypt()
345 xor_block(mic, b, CCMP_MIC_LEN); in lib80211_ccmp_decrypt()
363 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in lib80211_ccmp_decrypt()
375 skb_trim(skb, skb->len - CCMP_MIC_LEN); in lib80211_ccmp_decrypt()
464 .extra_mpdu_postfix_len = CCMP_MIC_LEN,