Lines Matching refs:blocks
70 size_t blocks = inl / CHACHA_BLK_SIZE; in chacha20_cipher() local
77 if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28)) in chacha20_cipher()
78 blocks = (1U << 28); in chacha20_cipher()
86 ctr32 += (unsigned int)blocks; in chacha20_cipher()
87 if (ctr32 < blocks) { in chacha20_cipher()
88 blocks -= ctr32; in chacha20_cipher()
91 blocks *= CHACHA_BLK_SIZE; in chacha20_cipher()
92 ChaCha20_ctr32(out, in, blocks, ctx->key.d, ctx->counter); in chacha20_cipher()
93 inl -= blocks; in chacha20_cipher()
94 in += blocks; in chacha20_cipher()
95 out += blocks; in chacha20_cipher()