[CRYPTO] scatterwalk: Add scatterwalk_map_and_copy
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Aug 2007 08:31:34 +0000 (16:31 +0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:42 +0000 (16:55 -0700)
commit5fa0fea27461f5ff7fad07687618db08272e9502
tree4e1fe825e9e45e0d4dab028b8188fe1ceff1f768
parente962a653f3146330d99aefa5adadeaed60bc9bb5
[CRYPTO] scatterwalk: Add scatterwalk_map_and_copy

This patch adds the function scatterwalk_map_and_copy which reads or
writes a chunk of data from a scatterlist at a given offset.  It will
be used by authenc which would read/write the authentication data at
the end of the cipher/plain text.

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