Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c30 #define CCMP_MIC_LEN 8 macro
195 skb_tailroom(skb) < CCMP_MIC_LEN || in rtllib_ccmp_encrypt()
231 mic = skb_put(skb, CCMP_MIC_LEN); in rtllib_ccmp_encrypt()
252 for (i = 0; i < CCMP_MIC_LEN; i++) in rtllib_ccmp_encrypt()
268 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in rtllib_ccmp_decrypt()
311 CCMP_MIC_LEN; in rtllib_ccmp_decrypt()
312 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in rtllib_ccmp_decrypt()
320 xor_block(mic, b, CCMP_MIC_LEN); in rtllib_ccmp_decrypt()
338 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in rtllib_ccmp_decrypt()
352 skb_trim(skb, skb->len - CCMP_MIC_LEN); in rtllib_ccmp_decrypt()
[all …]
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c34 #define CCMP_MIC_LEN 8 macro
198 skb_tailroom(skb) < CCMP_MIC_LEN || in ieee80211_ccmp_encrypt()
235 mic = skb_put(skb, CCMP_MIC_LEN); in ieee80211_ccmp_encrypt()
255 for (i = 0; i < CCMP_MIC_LEN; i++) in ieee80211_ccmp_encrypt()
269 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in ieee80211_ccmp_decrypt()
316 size_t data_len = skb->len - hdr_len - CCMP_HDR_LEN - CCMP_MIC_LEN; in ieee80211_ccmp_decrypt()
317 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in ieee80211_ccmp_decrypt()
324 xor_block(mic, b, CCMP_MIC_LEN); in ieee80211_ccmp_decrypt()
342 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in ieee80211_ccmp_decrypt()
356 skb_trim(skb, skb->len - CCMP_MIC_LEN); in ieee80211_ccmp_decrypt()
[all …]
/Linux-v4.19/net/wireless/
Dlib80211_crypt_ccmp.c38 #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()
[all …]