aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-03-04 00:28:38 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2014-03-10 08:17:10 -0400
commit822be00fe67105a90e536df52d1e4d688f34b5b2 (patch)
treef7e4844d1c560c621af5cba54aa36ea57c257e83 /include/crypto
parentd9e79726193346569af7953369a638ee2275ade5 (diff)
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>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/algapi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index e73c19e90e38..d9d14a0f0653 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -100,9 +100,12 @@ struct blkcipher_walk {
100 void *page; 100 void *page;
101 u8 *buffer; 101 u8 *buffer;
102 u8 *iv; 102 u8 *iv;
103 unsigned int ivsize;
103 104
104 int flags; 105 int flags;
105 unsigned int blocksize; 106 unsigned int walk_blocksize;
107 unsigned int cipher_blocksize;
108 unsigned int alignmask;
106}; 109};
107 110
108struct ablkcipher_walk { 111struct ablkcipher_walk {