Lines Matching refs:hdrlen
385 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in tkip_encrypt() local
386 int datalen = iob_len ( iob ) - hdrlen; in tkip_encrypt()
402 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in tkip_encrypt()
414 cipher_encrypt ( &arc4_algorithm, &arc4, iob->data + hdrlen, in tkip_encrypt()
420 iob->data + hdrlen, datalen, mic ); in tkip_encrypt()
425 icv = crc32_le ( ~0, iob->data + hdrlen, datalen ); in tkip_encrypt()
450 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in tkip_decrypt() local
451 int datalen = iob_len ( eiob ) - hdrlen - TKIP_HEAD_LEN - TKIP_FOOT_LEN; in tkip_decrypt()
459 iob = alloc_iob ( hdrlen + datalen + TKIP_FOOT_LEN ); in tkip_decrypt()
464 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in tkip_decrypt()
469 head = eiob->data + hdrlen; in tkip_decrypt()
494 eiob->data + hdrlen + TKIP_HEAD_LEN, in tkip_decrypt()
499 crc = ~crc32_le ( ~0, iob->data + hdrlen, datalen + TKIP_MIC_LEN ); in tkip_decrypt()
509 iob->data + hdrlen, datalen, mic ); in tkip_decrypt()