diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-21 15:10:59 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-22 11:25:50 +0800 |
commit | fc42bcba97bae738f905b83741134a63af7e6c02 (patch) | |
tree | 8ace4b3690395cd811f3cd63a96b77e066e4cb5f /include | |
parent | 66d948e732f665c905678d810833d4f0a5071537 (diff) | |
download | linux-stable-fc42bcba97bae738f905b83741134a63af7e6c02.tar.gz linux-stable-fc42bcba97bae738f905b83741134a63af7e6c02.tar.bz2 linux-stable-fc42bcba97bae738f905b83741134a63af7e6c02.zip |
crypto: scatterwalk - Add scatterwalk_ffwd helper
This patch adds the scatterwalk_ffwd helper which can create an
SG list that starts in the middle of an existing SG list. The
new list may either be part of the existing list or be a chain
that latches onto part of the existing list.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/scatterwalk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h index 20e4226a2e14..96670e7e7c14 100644 --- a/include/crypto/scatterwalk.h +++ b/include/crypto/scatterwalk.h @@ -102,4 +102,8 @@ void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg, int scatterwalk_bytes_sglen(struct scatterlist *sg, int num_bytes); +struct scatterlist *scatterwalk_ffwd(struct scatterlist dst[2], + struct scatterlist *src, + unsigned int len); + #endif /* _CRYPTO_SCATTERWALK_H */ |