crypto: scatterwalk - Add no-copy support to copychunks
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 12 Jul 2016 05:17:55 +0000 (13:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 18 Jul 2016 09:35:48 +0000 (17:35 +0800)
commit85eccddee401ae81067e763516889780b5545160
tree2ed2c98edfbe965640dd75a73bdabce37e4479c7
parent5506f53c7cc17c4ad5e69e5512a35faf77182986
crypto: scatterwalk - Add no-copy support to copychunks

The function ablkcipher_done_slow is pretty much identical to
scatterwalk_copychunks except that it doesn't actually copy as
the processing hasn't been completed yet.

This patch allows scatterwalk_copychunks to be used in this case
by specifying out == 2.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scatterwalk.c