crypto: remove direct blkcipher_walk dependency on transform
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 4 Mar 2014 05:28:38 +0000 (13:28 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 18 Jun 2014 19:21:22 +0000 (20:21 +0100)
commitf668a8ec9fd9b1b0d49b77563ff7000f60eb788b
tree76792dc62b7891591fba8a4917b9aa5224dcce4c
parent86fac535b5d2c1272b4991fa1e11a7fca7a26d10
crypto: remove direct blkcipher_walk dependency on transform

In order to allow other uses of the blkcipher walk API than the blkcipher
algos themselves, this patch copies some of the transform data members to the
walk struct so the transform is only accessed at walk init time.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 822be00fe67105a90e536df52d1e4d688f34b5b2)
Signed-off-by: Mark Brown <broonie@linaro.org>
crypto/blkcipher.c
include/crypto/algapi.h