Lines Matching refs:inlen
65 size_t resid, todo, inlen, outlen; in ossl_chacha20() local
82 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20()
90 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20()
93 inlen = CHACHA_BLK_SIZE; in ossl_chacha20()
103 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20()
133 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20()
137 inlen -= todo; in ossl_chacha20()
167 size_t resid, todo, inlen, outlen; in ossl_chacha20_poly1305_encrypt() local
210 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20_poly1305_encrypt()
218 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20_poly1305_encrypt()
221 inlen = CHACHA_BLK_SIZE; in ossl_chacha20_poly1305_encrypt()
231 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20_poly1305_encrypt()
262 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20_poly1305_encrypt()
266 inlen -= todo; in ossl_chacha20_poly1305_encrypt()
313 size_t resid, todo, inlen, outlen; in ossl_chacha20_poly1305_decrypt() local
379 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20_poly1305_decrypt()
387 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20_poly1305_decrypt()
390 inlen = CHACHA_BLK_SIZE; in ossl_chacha20_poly1305_decrypt()
400 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20_poly1305_decrypt()
430 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20_poly1305_decrypt()
434 inlen -= todo; in ossl_chacha20_poly1305_decrypt()