Lines Matching refs:cc_in

107 	struct crypto_buffer_cursor cc_in, cc_out;  in swcr_encdec()  local
144 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_encdec()
145 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_encdec()
150 cc_out = cc_in; in swcr_encdec()
163 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_encdec()
173 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_encdec()
190 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_encdec()
192 crypto_cursor_advance(&cc_in, todo); in swcr_encdec()
214 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_encdec()
217 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_encdec()
407 struct crypto_buffer_cursor cc_in, cc_out; in swcr_gcm() local
450 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm()
451 crypto_cursor_advance(&cc_in, crp->crp_aad_start); in swcr_gcm()
454 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_gcm()
457 crypto_cursor_advance(&cc_in, inlen); in swcr_gcm()
460 crypto_cursor_copydata(&cc_in, inlen, blk); in swcr_gcm()
467 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_gcm()
473 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm()
474 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_gcm()
479 cc_out = cc_in; in swcr_gcm()
484 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_gcm()
489 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_gcm()
520 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_gcm()
522 crypto_cursor_advance(&cc_in, todo); in swcr_gcm()
528 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_gcm()
559 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm()
560 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_gcm()
566 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_gcm()
570 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_gcm()
585 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_gcm()
587 crypto_cursor_advance(&cc_in, todo); in swcr_gcm()
603 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_gcm()
741 struct crypto_buffer_cursor cc_in, cc_out; in swcr_ccm() local
803 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_ccm()
804 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_ccm()
809 cc_out = cc_in; in swcr_ccm()
814 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_ccm()
819 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_ccm()
859 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_ccm()
861 crypto_cursor_advance(&cc_in, todo); in swcr_ccm()
867 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_ccm()
894 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_ccm()
895 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_ccm()
901 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_ccm()
907 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_ccm()
922 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_ccm()
924 crypto_cursor_advance(&cc_in, todo); in swcr_ccm()
940 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_ccm()
966 struct crypto_buffer_cursor cc_in, cc_out; in swcr_chacha20_poly1305() local
1010 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_chacha20_poly1305()
1011 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_chacha20_poly1305()
1016 cc_out = cc_in; in swcr_chacha20_poly1305()
1023 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_chacha20_poly1305()
1029 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_chacha20_poly1305()
1046 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_chacha20_poly1305()
1048 crypto_cursor_advance(&cc_in, todo); in swcr_chacha20_poly1305()
1063 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_chacha20_poly1305()
1099 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_chacha20_poly1305()
1100 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_chacha20_poly1305()
1106 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_chacha20_poly1305()
1111 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_chacha20_poly1305()
1126 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_chacha20_poly1305()
1128 crypto_cursor_advance(&cc_in, todo); in swcr_chacha20_poly1305()
1144 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_chacha20_poly1305()