Lines Matching refs:blocks
86 size_t blocks = len / CHACHA_BLK_SIZE; in chacha_cipher() local
92 if (sizeof(size_t)>sizeof(unsigned int) && blocks>(1U<<28)) in chacha_cipher()
93 blocks = (1U<<28); in chacha_cipher()
101 ctr32 += (unsigned int)blocks; in chacha_cipher()
102 if (ctr32 < blocks) { in chacha_cipher()
103 blocks -= ctr32; in chacha_cipher()
106 blocks *= CHACHA_BLK_SIZE; in chacha_cipher()
107 ChaCha20_ctr32(out, inp, blocks, key->key.d, key->counter); in chacha_cipher()
108 len -= blocks; in chacha_cipher()
109 inp += blocks; in chacha_cipher()
110 out += blocks; in chacha_cipher()