summaryrefslogtreecommitdiff
path: root/crypto/seqiv.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-27 09:37:39 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-28 06:23:19 +0300
commitccdb8a038451e5f8d62c786591902f08308be524 (patch)
treeef98dc0d2f627b2a35b84d5186ce1bd4695a347a /crypto/seqiv.c
parent661cfd0e5ed22cfd89a09c5f371d8fcb7d302547 (diff)
downloadlinux-ccdb8a038451e5f8d62c786591902f08308be524.tar.xz
crypto: seqiv - 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/seqiv.c')
-rw-r--r--crypto/seqiv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/seqiv.c b/crypto/seqiv.c
index 9c4490b25256..c0dba8f2f468 100644
--- a/crypto/seqiv.c
+++ b/crypto/seqiv.c
@@ -812,7 +812,7 @@ static int seqniv_create(struct crypto_template *tmpl, struct rtattr **tb)
inst->alg.base.cra_alignmask |= __alignof__(u32) - 1;
inst->alg.base.cra_ctxsize = sizeof(struct seqiv_aead_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);