Lines Matching refs:hdrlen
324 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in ccmp_encrypt() local
325 int datalen = iob_len ( iob ) - hdrlen; in ccmp_encrypt()
341 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in ccmp_encrypt()
363 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, mic ); in ccmp_encrypt()
369 iob->data + hdrlen, edata, datalen, in ccmp_encrypt()
392 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in ccmp_decrypt() local
393 int datalen = iob_len ( eiob ) - hdrlen - CCMP_HEAD_LEN - CCMP_MIC_LEN; in ccmp_decrypt()
399 iob = alloc_iob ( hdrlen + datalen ); in ccmp_decrypt()
404 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in ccmp_decrypt()
409 head = eiob->data + hdrlen; in ccmp_decrypt()
435 ccmp_ctr_xor ( ctx, &nonce, eiob->data + hdrlen + sizeof ( *head ), in ccmp_decrypt()
440 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, in ccmp_decrypt()