Lines Matching full:todo

105 	size_t inlen, outlen, todo;  in swcr_encdec()  local
161 for (resid = crp->crp_payload_length; resid >= blksz; resid -= todo) { in swcr_encdec()
182 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), blksz); in swcr_encdec()
185 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec()
187 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec()
192 crypto_cursor_advance(&cc_in, todo); in swcr_encdec()
193 inlen -= todo; in swcr_encdec()
194 inblk += todo; in swcr_encdec()
201 crypto_cursor_advance(&cc_out, todo); in swcr_encdec()
202 outlen -= todo; in swcr_encdec()
203 outblk += todo; in swcr_encdec()
410 size_t inlen, outlen, todo; in swcr_gcm() local
482 for (resid = crp->crp_payload_length; resid >= blksz; resid -= todo) { in swcr_gcm()
500 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_gcm()
503 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_gcm()
504 exf->update(ctx, outblk, todo); in swcr_gcm()
510 crypto_cursor_advance(&cc_out, todo); in swcr_gcm()
511 outlen -= todo; in swcr_gcm()
512 outblk += todo; in swcr_gcm()
515 todo = rounddown2(MIN(resid, inlen), blksz); in swcr_gcm()
516 exf->update(ctx, inblk, todo); in swcr_gcm()
522 crypto_cursor_advance(&cc_in, todo); in swcr_gcm()
523 inlen -= todo; in swcr_gcm()
524 inblk += todo; in swcr_gcm()
564 resid -= todo) { in swcr_gcm()
579 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_gcm()
582 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_gcm()
587 crypto_cursor_advance(&cc_in, todo); in swcr_gcm()
588 inlen -= todo; in swcr_gcm()
589 inblk += todo; in swcr_gcm()
597 crypto_cursor_advance(&cc_out, todo); in swcr_gcm()
598 outlen -= todo; in swcr_gcm()
599 outblk += todo; in swcr_gcm()
744 size_t inlen, outlen, todo; in swcr_ccm() local
812 for (resid = crp->crp_payload_length; resid >= blksz; resid -= todo) { in swcr_ccm()
830 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_ccm()
833 exf->update(ctx, inblk, todo); in swcr_ccm()
834 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_ccm()
840 crypto_cursor_advance(&cc_out, todo); in swcr_ccm()
841 outlen -= todo; in swcr_ccm()
842 outblk += todo; in swcr_ccm()
853 todo = blksz; in swcr_ccm()
855 exf->update(ctx, blk, todo); in swcr_ccm()
861 crypto_cursor_advance(&cc_in, todo); in swcr_ccm()
862 inlen -= todo; in swcr_ccm()
863 inblk += todo; in swcr_ccm()
899 resid -= todo) { in swcr_ccm()
916 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_ccm()
919 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_ccm()
924 crypto_cursor_advance(&cc_in, todo); in swcr_ccm()
925 inlen -= todo; in swcr_ccm()
926 inblk += todo; in swcr_ccm()
934 crypto_cursor_advance(&cc_out, todo); in swcr_ccm()
935 outlen -= todo; in swcr_ccm()
936 outblk += todo; in swcr_ccm()
969 size_t inlen, outlen, todo; in swcr_chacha20_poly1305() local
1021 resid -= todo) { in swcr_chacha20_poly1305()
1039 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_chacha20_poly1305()
1042 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_chacha20_poly1305()
1043 exf->update(ctx, outblk, todo); in swcr_chacha20_poly1305()
1048 crypto_cursor_advance(&cc_in, todo); in swcr_chacha20_poly1305()
1049 inlen -= todo; in swcr_chacha20_poly1305()
1050 inblk += todo; in swcr_chacha20_poly1305()
1057 crypto_cursor_advance(&cc_out, todo); in swcr_chacha20_poly1305()
1058 outlen -= todo; in swcr_chacha20_poly1305()
1059 outblk += todo; in swcr_chacha20_poly1305()
1104 resid -= todo) { in swcr_chacha20_poly1305()
1120 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_chacha20_poly1305()
1123 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_chacha20_poly1305()
1128 crypto_cursor_advance(&cc_in, todo); in swcr_chacha20_poly1305()
1129 inlen -= todo; in swcr_chacha20_poly1305()
1130 inblk += todo; in swcr_chacha20_poly1305()
1138 crypto_cursor_advance(&cc_out, todo); in swcr_chacha20_poly1305()
1139 outlen -= todo; in swcr_chacha20_poly1305()
1140 outblk += todo; in swcr_chacha20_poly1305()