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 * 4) {
47 bytes -= CHACHA_BLOCK_SIZE * 4;
52 while (bytes >= CHACHA_BLOCK_SIZE) {
54 bytes -= CHACHA_BLOCK_SIZE;
59 if (bytes) {
60 memcpy(buf, src, bytes);
62 memcpy(dst, buf, bytes);
84 void chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes,
88 bytes <= CHACHA_BLOCK_SIZE) {
89 chacha_doarm(dst, src, bytes, state, nrounds);
90 state[12] += DIV_ROUND_UP(bytes, CHACHA_BLOCK_SIZE);
95 unsigned int todo = min_t(unsigned int, bytes, SZ_4K);
101 bytes -= todo;
104 } while (bytes);