summaryrefslogtreecommitdiff
path: root/crypto/echainiv.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-27 09:37:34 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-28 06:23:18 +0300
commit9d03aee125d73908ddbe9c1b96338c9b69e1abc0 (patch)
tree10a99478e53ccebdb11e9fecfa9b4646aa4a9122 /crypto/echainiv.c
parentd97de47ca1d160acdf29f0b4eadf2ae831bd5254 (diff)
downloadlinux-9d03aee125d73908ddbe9c1b96338c9b69e1abc0.tar.xz
crypto: echainiv - Fix IV size in context size calculation
This patch fixes a bug in the context size calculation where we were still referring to the old cra_aead. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/echainiv.c')
-rw-r--r--crypto/echainiv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/echainiv.c b/crypto/echainiv.c
index 0f79fc668ad4..62a817faec8c 100644
--- a/crypto/echainiv.c
+++ b/crypto/echainiv.c
@@ -280,7 +280,7 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
inst->alg.base.cra_alignmask |= __alignof__(u32) - 1;
inst->alg.base.cra_ctxsize = sizeof(struct echainiv_ctx);
- inst->alg.base.cra_ctxsize += inst->alg.base.cra_aead.ivsize;
+ inst->alg.base.cra_ctxsize += inst->alg.ivsize;
done:
err = aead_register_instance(tmpl, inst);