]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: scatterwalk - Check for same address in map_and_copy
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 May 2015 07:11:12 +0000 (15:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2015 03:25:55 +0000 (11:25 +0800)
commitd6d199468d7ded01c4e3033b4573e03f54531c80
tree9a17d96184852eb0910c4960625567eebccc1439
parentaca3222ea2ec7ad60f0475b2397b45abcc115696
crypto: scatterwalk - Check for same address in map_and_copy

This patch adds a check for in scatterwalk_map_and_copy to avoid
copying from the same address to the same address.  This is going
to be used for IV copying in AEAD IV generators.

There is no provision for partial overlaps.

This patch also uses the new scatterwalk_ffwd instead of doing
it by hand in scatterwalk_map_and_copy.

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