Lines Matching refs:outblk

115 	unsigned char *outblk;  in swcr_encdec()  local
165 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
187 outblk = blk; in swcr_encdec()
195 exf->encrypt(sw->sw_kschedule, inblk, outblk); in swcr_encdec()
197 exf->decrypt(sw->sw_kschedule, inblk, outblk); in swcr_encdec()
201 outblk[i] = inblk[i] ^ ivp[i]; in swcr_encdec()
203 exf->encrypt(sw->sw_kschedule, outblk, outblk); in swcr_encdec()
209 memcpy(iv, outblk, blks); in swcr_encdec()
219 exf->decrypt(sw->sw_kschedule, inblk, outblk); in swcr_encdec()
223 outblk[i] ^= ivp[i]; in swcr_encdec()
238 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
242 outblk += blks; in swcr_encdec()
259 outblk = crypto_cursor_segment(&cc_out, &outlen); in swcr_encdec()
265 outblk = blk; in swcr_encdec()
267 exf->encrypt_last(sw->sw_kschedule, inblk, outblk, in swcr_encdec()
270 exf->decrypt_last(sw->sw_kschedule, inblk, outblk, in swcr_encdec()
468 u_char *outblk; in swcr_gcm() local
555 outblk = crypto_cursor_segment(&cc_out, &len); in swcr_gcm()
557 outblk = blk; in swcr_gcm()
558 exf->encrypt(swe->sw_kschedule, inblk, outblk); in swcr_gcm()
559 axf->Update(&ctx, outblk, blksz); in swcr_gcm()
560 if (outblk == blk) in swcr_gcm()
613 outblk = crypto_cursor_segment(&cc_out, &len); in swcr_gcm()
615 outblk = blk; in swcr_gcm()
616 exf->decrypt(swe->sw_kschedule, inblk, outblk); in swcr_gcm()
617 if (outblk == blk) in swcr_gcm()
758 u_char *outblk; in swcr_ccm() local
840 outblk = crypto_cursor_segment(&cc_out, &len); in swcr_ccm()
842 outblk = blk; in swcr_ccm()
844 exf->encrypt(swe->sw_kschedule, inblk, outblk); in swcr_ccm()
845 if (outblk == blk) in swcr_ccm()
904 outblk = crypto_cursor_segment(&cc_out, &len); in swcr_ccm()
906 outblk = blk; in swcr_ccm()
907 exf->decrypt(swe->sw_kschedule, inblk, outblk); in swcr_ccm()
908 if (outblk == blk) in swcr_ccm()
938 u_char *outblk; in swcr_chacha20_poly1305() local
1001 outblk = crypto_cursor_segment(&cc_out, &len); in swcr_chacha20_poly1305()
1003 outblk = blk; in swcr_chacha20_poly1305()
1004 exf->encrypt(swe->sw_kschedule, inblk, outblk); in swcr_chacha20_poly1305()
1005 axf->Update(&ctx, outblk, blksz); in swcr_chacha20_poly1305()
1006 if (outblk == blk) in swcr_chacha20_poly1305()
1062 outblk = crypto_cursor_segment(&cc_out, &len); in swcr_chacha20_poly1305()
1064 outblk = blk; in swcr_chacha20_poly1305()
1065 exf->decrypt(swe->sw_kschedule, inblk, outblk); in swcr_chacha20_poly1305()
1066 if (outblk == blk) in swcr_chacha20_poly1305()