Lines Matching refs:outblk
110 unsigned char *outblk; in swcr_encdec() local
166 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
179 outblk = blk; in swcr_encdec()
186 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec()
188 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec()
198 if (outblk == blk) { in swcr_encdec()
200 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
204 outblk += todo; in swcr_encdec()
216 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
222 outblk = blk; in swcr_encdec()
224 exf->encrypt_last(ctx, inblk, outblk, in swcr_encdec()
227 exf->decrypt_last(ctx, inblk, outblk, in swcr_encdec()
410 u_char *outblk; in swcr_gcm() local
487 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_gcm()
497 outblk = blk; in swcr_gcm()
504 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_gcm()
505 exf->update(ctx, outblk, todo); in swcr_gcm()
507 if (outblk == blk) { in swcr_gcm()
509 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_gcm()
513 outblk += todo; in swcr_gcm()
569 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_gcm()
576 outblk = blk; in swcr_gcm()
583 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_gcm()
593 if (outblk == blk) { in swcr_gcm()
595 outblk = crypto_cursor_segment(&cc_out, in swcr_gcm()
600 outblk += todo; in swcr_gcm()
744 u_char *outblk; in swcr_ccm() local
817 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_ccm()
827 outblk = blk; in swcr_ccm()
835 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_ccm()
837 if (outblk == blk) { in swcr_ccm()
839 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_ccm()
843 outblk += todo; in swcr_ccm()
904 outblk = crypto_cursor_segment(&cc_out, in swcr_ccm()
913 outblk = blk; in swcr_ccm()
920 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_ccm()
930 if (outblk == blk) { in swcr_ccm()
932 outblk = crypto_cursor_segment(&cc_out, in swcr_ccm()
937 outblk += todo; in swcr_ccm()
969 u_char *outblk; in swcr_chacha20_poly1305() local
1026 outblk = crypto_cursor_segment(&cc_out, in swcr_chacha20_poly1305()
1036 outblk = blk; in swcr_chacha20_poly1305()
1043 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_chacha20_poly1305()
1044 exf->update(ctx, outblk, todo); in swcr_chacha20_poly1305()
1054 if (outblk == blk) { in swcr_chacha20_poly1305()
1056 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_chacha20_poly1305()
1060 outblk += todo; in swcr_chacha20_poly1305()
1109 outblk = crypto_cursor_segment(&cc_out, in swcr_chacha20_poly1305()
1117 outblk = blk; in swcr_chacha20_poly1305()
1124 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_chacha20_poly1305()
1134 if (outblk == blk) { in swcr_chacha20_poly1305()
1136 outblk = crypto_cursor_segment(&cc_out, in swcr_chacha20_poly1305()
1141 outblk += todo; in swcr_chacha20_poly1305()