Lines Matching refs:counter
63 /* NOTE: the IV/counter CTR mode is big-endian. The code itself
66 /* increment counter (128-bit int) by 1 */
68 ctr128_inc(unsigned char *counter)
75 c = counter[n];
77 counter[n] = c;
85 ctr128_inc_aligned(unsigned char *counter)
88 ctr128_inc(counter);
91 data = (size_t *)counter;
105 /* The input encrypted as though 128bit counter mode is being
108 * encrypted counter is kept in ecount_buf. Both *num and
112 * This algorithm assumes that the counter is in the x lower bits
115 * responsibility for checking that the counter doesn't overflow
184 /* increment upper 96 bits of 128-bit counter by 1 */
186 ctr96_inc(unsigned char *counter)
193 c = counter[n];
195 counter[n] = c;
231 * As (*func) operates on 32-bit counter, caller