Lines Matching refs:resid

65 	size_t resid, todo, inlen, outlen;  in ossl_chacha20()  local
79 resid = crp->crp_payload_length; in ossl_chacha20()
89 while (resid >= CHACHA_BLK_SIZE) { in ossl_chacha20()
103 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20()
139 resid -= todo; in ossl_chacha20()
142 if (resid > 0) { in ossl_chacha20()
144 crypto_cursor_copydata(&cc_in, resid, block); in ossl_chacha20()
146 crypto_cursor_copyback(&cc_out, resid, block); in ossl_chacha20()
167 size_t resid, todo, inlen, outlen; in ossl_chacha20_poly1305_encrypt() local
207 resid = crp->crp_payload_length; in ossl_chacha20_poly1305_encrypt()
217 while (resid >= CHACHA_BLK_SIZE) { in ossl_chacha20_poly1305_encrypt()
231 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20_poly1305_encrypt()
268 resid -= todo; in ossl_chacha20_poly1305_encrypt()
271 if (resid > 0) { in ossl_chacha20_poly1305_encrypt()
273 crypto_cursor_copydata(&cc_in, resid, block); in ossl_chacha20_poly1305_encrypt()
275 crypto_cursor_copyback(&cc_out, resid, block); in ossl_chacha20_poly1305_encrypt()
278 todo = roundup2(resid, 16); in ossl_chacha20_poly1305_encrypt()
279 memset(block + resid, 0, todo - resid); in ossl_chacha20_poly1305_encrypt()
313 size_t resid, todo, inlen, outlen; in ossl_chacha20_poly1305_decrypt() local
376 resid = crp->crp_payload_length; in ossl_chacha20_poly1305_decrypt()
386 while (resid >= CHACHA_BLK_SIZE) { in ossl_chacha20_poly1305_decrypt()
400 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20_poly1305_decrypt()
436 resid -= todo; in ossl_chacha20_poly1305_decrypt()
439 if (resid > 0) { in ossl_chacha20_poly1305_decrypt()
441 crypto_cursor_copydata(&cc_in, resid, block); in ossl_chacha20_poly1305_decrypt()
443 crypto_cursor_copyback(&cc_out, resid, block); in ossl_chacha20_poly1305_decrypt()