Lines Matching refs:eiob
121 struct io_buffer *eiob; in wep_encrypt() local
128 eiob = alloc_iob ( newlen ); in wep_encrypt()
129 if ( ! eiob ) in wep_encrypt()
132 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in wep_encrypt()
133 hdr = eiob->data; in wep_encrypt()
139 memcpy ( iob_put ( eiob, WEP_HEADER_LEN ), &iv, WEP_HEADER_LEN ); in wep_encrypt()
146 iob_put ( eiob, datalen ), datalen ); in wep_encrypt()
151 iob_put ( eiob, WEP_ICV_LEN ), WEP_ICV_LEN ); in wep_encrypt()
153 return eiob; in wep_encrypt()
167 struct io_buffer *eiob ) in wep_decrypt() argument
173 int datalen = iob_len ( eiob ) - hdrlen - WEP_OVERHEAD; in wep_decrypt()
181 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in wep_decrypt()
186 memcpy ( &iv, eiob->data + hdrlen, 4 ); in wep_decrypt()
193 cipher_decrypt ( &arc4_algorithm, &ctx->arc4, eiob->data + hdrlen + in wep_decrypt()
197 cipher_decrypt ( &arc4_algorithm, &ctx->arc4, eiob->data + hdrlen + in wep_decrypt()