Lines Matching refs:iob
319 struct io_buffer *iob ) in ccmp_encrypt() argument
322 struct ieee80211_frame *hdr = iob->data; in ccmp_encrypt()
325 int datalen = iob_len ( iob ) - hdrlen; in ccmp_encrypt()
336 eiob = alloc_iob ( iob_len ( iob ) + CCMP_HEAD_LEN + CCMP_MIC_LEN ); 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()
374 iob, eiob ); in ccmp_encrypt()
391 struct io_buffer *iob; in ccmp_decrypt() local
399 iob = alloc_iob ( hdrlen + datalen ); in ccmp_decrypt()
400 if ( ! iob ) in ccmp_decrypt()
404 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in ccmp_decrypt()
405 hdr = iob->data; in ccmp_decrypt()
417 free_iob ( iob ); in ccmp_decrypt()
436 iob_put ( iob, datalen ), datalen, in ccmp_decrypt()
440 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, in ccmp_decrypt()
445 free_iob ( iob ); in ccmp_decrypt()
450 eiob, iob ); in ccmp_decrypt()
452 return iob; in ccmp_decrypt()