Lines Matching refs:plen
24 size_t plen; in bip_protect() local
26 plen = len + (igtk_len == 32 ? 26 : 18); in bip_protect()
27 prot = os_malloc(plen); in bip_protect()
40 buf = os_malloc(plen + 20 - 24); in bip_protect()
52 os_memcpy(buf + 20, prot + 24, plen - 24); in bip_protect()
53 wpa_hexdump(MSG_MSGDUMP, "BIP: AAD|Body(masked)", buf, plen + 20 - 24); in bip_protect()
55 if (omac1_aes_128(igtk, buf, plen + 20 - 24, mic) < 0) { in bip_protect()
65 *prot_len = plen; in bip_protect()
82 size_t plen, mic_len, element_len, buf_len; in bip_protect_s1g_beacon() local
91 plen = len + element_len; /* add element length */ in bip_protect_s1g_beacon()
92 prot = os_malloc(plen); in bip_protect_s1g_beacon()
115 buf_len = plen - 6 + bce_add_len; in bip_protect_s1g_beacon()
148 plen - (IEEE80211_HDRLEN_S1G_BEACON + hdr_add_len)); in bip_protect_s1g_beacon()
183 *prot_len = plen; in bip_protect_s1g_beacon()
194 size_t plen; in bip_gmac_protect() local
197 plen = len + 26; in bip_gmac_protect()
198 prot = os_malloc(plen); in bip_gmac_protect()
211 buf = os_malloc(plen + 20 - 24); in bip_gmac_protect()
223 os_memcpy(buf + 20, prot + 24, plen - 24); in bip_gmac_protect()
225 buf, plen + 20 - 24); in bip_gmac_protect()
240 buf, plen + 20 - 24, pos) < 0) { in bip_gmac_protect()
249 *prot_len = plen; in bip_gmac_protect()
262 size_t plen, mic_len, element_len, buf_len; in bip_gmac_protect_s1g_beacon() local
272 plen = len + element_len; /* add element length */ in bip_gmac_protect_s1g_beacon()
273 prot = os_malloc(plen); in bip_gmac_protect_s1g_beacon()
295 buf_len = plen - 6 + bce_add_len; in bip_gmac_protect_s1g_beacon()
328 plen - (IEEE80211_HDRLEN_S1G_BEACON + hdr_add_len)); in bip_gmac_protect_s1g_beacon()
373 *prot_len = plen; in bip_gmac_protect_s1g_beacon()