Lines Matching refs:length
260 for (sl = src_len; sl > 0 && sg_miter_next(&miter); sl -= miter.length) { in chacha20poly1305_crypt_sg_inplace()
262 size_t length = min_t(size_t, sl, miter.length); in chacha20poly1305_crypt_sg_inplace() local
265 poly1305_update(&poly1305_state, addr, length); in chacha20poly1305_crypt_sg_inplace()
268 size_t l = min(length, CHACHA_BLOCK_SIZE - partial); in chacha20poly1305_crypt_sg_inplace()
274 length -= l; in chacha20poly1305_crypt_sg_inplace()
277 if (likely(length >= CHACHA_BLOCK_SIZE || length == sl)) { in chacha20poly1305_crypt_sg_inplace()
278 size_t l = length; in chacha20poly1305_crypt_sg_inplace()
280 if (unlikely(length < sl)) in chacha20poly1305_crypt_sg_inplace()
284 length -= l; in chacha20poly1305_crypt_sg_inplace()
287 if (unlikely(length > 0)) { in chacha20poly1305_crypt_sg_inplace()
290 crypto_xor(addr, b.chacha_stream, length); in chacha20poly1305_crypt_sg_inplace()
291 partial = length; in chacha20poly1305_crypt_sg_inplace()
296 min_t(size_t, sl, miter.length)); in chacha20poly1305_crypt_sg_inplace()
309 miter.addr + miter.length + sl); in chacha20poly1305_crypt_sg_inplace()
314 miter.addr + miter.length + sl, in chacha20poly1305_crypt_sg_inplace()