Lines Matching refs:outblk
109 unsigned char *outblk; in swcr_encdec() local
165 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
178 outblk = blk; 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()
197 if (outblk == blk) { in swcr_encdec()
199 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
203 outblk += todo; in swcr_encdec()
215 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
221 outblk = blk; in swcr_encdec()
223 exf->encrypt_last(ctx, inblk, outblk, in swcr_encdec()
226 exf->decrypt_last(ctx, inblk, outblk, in swcr_encdec()
409 u_char *outblk; in swcr_gcm() local
486 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_gcm()
496 outblk = blk; in swcr_gcm()
503 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_gcm()
504 exf->update(ctx, outblk, todo); in swcr_gcm()
506 if (outblk == blk) { in swcr_gcm()
508 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_gcm()
512 outblk += todo; in swcr_gcm()
568 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_gcm()
575 outblk = blk; in swcr_gcm()
582 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_gcm()
592 if (outblk == blk) { in swcr_gcm()
594 outblk = crypto_cursor_segment(&cc_out, in swcr_gcm()
599 outblk += todo; in swcr_gcm()
743 u_char *outblk; in swcr_ccm() local
816 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_ccm()
826 outblk = blk; in swcr_ccm()
834 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_ccm()
836 if (outblk == blk) { in swcr_ccm()
838 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_ccm()
842 outblk += todo; in swcr_ccm()
903 outblk = crypto_cursor_segment(&cc_out, in swcr_ccm()
912 outblk = blk; in swcr_ccm()
919 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_ccm()
929 if (outblk == blk) { in swcr_ccm()
931 outblk = crypto_cursor_segment(&cc_out, in swcr_ccm()
936 outblk += todo; in swcr_ccm()
968 u_char *outblk; in swcr_chacha20_poly1305() local
1025 outblk = crypto_cursor_segment(&cc_out, in swcr_chacha20_poly1305()
1035 outblk = blk; 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()
1053 if (outblk == blk) { in swcr_chacha20_poly1305()
1055 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_chacha20_poly1305()
1059 outblk += todo; in swcr_chacha20_poly1305()
1108 outblk = crypto_cursor_segment(&cc_out, in swcr_chacha20_poly1305()
1116 outblk = blk; in swcr_chacha20_poly1305()
1123 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_chacha20_poly1305()
1133 if (outblk == blk) { in swcr_chacha20_poly1305()
1135 outblk = crypto_cursor_segment(&cc_out, in swcr_chacha20_poly1305()
1140 outblk += todo; in swcr_chacha20_poly1305()