Lines Matching refs:eiob
323 struct io_buffer *eiob; in ccmp_encrypt() local
336 eiob = alloc_iob ( iob_len ( iob ) + CCMP_HEAD_LEN + CCMP_MIC_LEN ); in ccmp_encrypt()
337 if ( ! eiob ) in ccmp_encrypt()
341 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in ccmp_encrypt()
342 hdr = eiob->data; in ccmp_encrypt()
350 memcpy ( iob_put ( eiob, sizeof ( head ) ), &head, sizeof ( head ) ); in ccmp_encrypt()
366 edata = iob_put ( eiob, datalen ); in ccmp_encrypt()
367 emic = iob_put ( eiob, CCMP_MIC_LEN ); in ccmp_encrypt()
374 iob, eiob ); in ccmp_encrypt()
376 return eiob; in ccmp_encrypt()
387 struct io_buffer *eiob ) in ccmp_decrypt() argument
393 int datalen = iob_len ( eiob ) - hdrlen - CCMP_HEAD_LEN - CCMP_MIC_LEN; 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()
437 eiob->tail - CCMP_MIC_LEN, their_mic ); in ccmp_decrypt()
450 eiob, iob ); in ccmp_decrypt()