Lines Matching refs:ecount_buf
104 * encrypted counter is kept in ecount_buf. Both *num and
105 * ecount_buf must be initialised with zeros before the first
116 unsigned char ivec[16], unsigned char ecount_buf[16],
122 assert(in && out && key && ecount_buf && num);
130 *(out++) = *(in++) ^ ecount_buf[n];
140 (*block)(ivec, ecount_buf, key);
144 *(size_t *)(in+n) ^ *(size_t *)(ecount_buf+n);
151 (*block)(ivec, ecount_buf, key);
154 out[n] = in[n] ^ ecount_buf[n];
165 (*block)(ivec, ecount_buf, key);
168 out[l] = in[l] ^ ecount_buf[n];
192 unsigned char ivec[16], unsigned char ecount_buf[16],
197 assert(in && out && key && ecount_buf && num);
203 *(out++) = *(in++) ^ ecount_buf[n];
240 memset(ecount_buf,0,16);
241 (*func)(ecount_buf,ecount_buf,1,key,ivec);
246 out[n] = in[n] ^ ecount_buf[n];