Lines Matching defs:bytes
30 asmlinkage void chacha_doarm(u8 *dst, const u8 *src, unsigned int bytes,
41 unsigned int bytes, int nrounds)
45 while (bytes > CHACHA_BLOCK_SIZE) {
46 unsigned int l = min(bytes, CHACHA_BLOCK_SIZE * 4U);
49 bytes -= l;
54 if (bytes) {
58 if (bytes != CHACHA_BLOCK_SIZE)
59 s = d = memcpy(buf, src, bytes);
62 memcpy(dst, buf, bytes);
85 void chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes,
89 bytes <= CHACHA_BLOCK_SIZE) {
90 chacha_doarm(dst, src, bytes, state, nrounds);
91 state[12] += DIV_ROUND_UP(bytes, CHACHA_BLOCK_SIZE);
96 unsigned int todo = min_t(unsigned int, bytes, SZ_4K);
102 bytes -= todo;
105 } while (bytes);