Lines Matching refs:counter
63 * NOTE: the IV/counter CTR mode is big-endian. The code itself is
67 /* increment counter (128-bit int) by 1 */
68 static void ctr128_inc(unsigned char *counter)
74 c += counter[n];
75 counter[n] = (u8)c;
81 static void ctr128_inc_aligned(unsigned char *counter)
91 if (is_endian.little || ((size_t)counter % sizeof(size_t)) != 0) {
92 ctr128_inc(counter);
96 data = (size_t *)counter;
109 * The input encrypted as though 128bit counter mode is being used. The
111 * used is contained in *num, and the encrypted counter is kept in
114 * that the counter is in the x lower bits of the IV (ivec), and that the
116 * implementation takes NO responsability for checking that the counter
185 /* increment upper 96 bits of 128-bit counter by 1 */
186 static void ctr96_inc(unsigned char *counter)
192 c += counter[n];
193 counter[n] = (u8)c;
228 * As (*func) operates on 32-bit counter, caller