Home | History | Annotate | Download | only in modes

Lines Matching refs:counter

62 /* NOTE: the IV/counter CTR mode is big-endian.  The code itself
65 /* increment counter (128-bit int) by 1 */
66 static void ctr128_inc(unsigned char *counter) {
72 c = counter[n];
74 counter[n] = c;
80 static void ctr128_inc_aligned(unsigned char *counter) {
85 ctr128_inc(counter);
89 data = (size_t *)counter;
101 /* The input encrypted as though 128bit counter mode is being
104 * encrypted counter is kept in ecount_buf. Both *num and
108 * This algorithm assumes that the counter is in the x lower bits
111 * responsability for checking that the counter doesn't overflow
176 /* increment upper 96 bits of 128-bit counter by 1 */
177 static void ctr96_inc(unsigned char *counter) {
183 c = counter[n];
185 counter[n] = c;
219 * As (*func) operates on 32-bit counter, caller