Lines Matching refs:eiob
379 struct io_buffer *eiob; in tkip_encrypt() local
397 eiob = alloc_iob ( iob_len ( iob ) + TKIP_HEAD_LEN + TKIP_FOOT_LEN ); in tkip_encrypt()
398 if ( ! eiob ) in tkip_encrypt()
402 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in tkip_encrypt()
403 hdr = eiob->data; in tkip_encrypt()
410 memcpy ( iob_put ( eiob, sizeof ( head ) ), &head, sizeof ( head ) ); in tkip_encrypt()
415 iob_put ( eiob, datalen ), datalen ); in tkip_encrypt()
422 iob_put ( eiob, sizeof ( mic ) ), sizeof ( mic ) ); in tkip_encrypt()
429 iob_put ( eiob, TKIP_ICV_LEN ), TKIP_ICV_LEN ); in tkip_encrypt()
432 iob, eiob ); in tkip_encrypt()
434 return eiob; in tkip_encrypt()
445 struct io_buffer *eiob ) in tkip_decrypt() argument
451 int datalen = iob_len ( eiob ) - hdrlen - TKIP_HEAD_LEN - 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()
518 eiob, iob ); in tkip_decrypt()