diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-27 14:37:39 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-28 11:23:19 +0800 |
commit | de11adabfc09b7975e2f076133c3579125f3c348 (patch) | |
tree | c7fd1433e89b7680c230243c739d1e1cea09f51a /crypto/seqiv.c | |
parent | f9d782cf18d51ea38e2c46268267ed7d3451561a (diff) | |
download | linux-crypto-de11adabfc09b7975e2f076133c3579125f3c348.tar.gz linux-crypto-de11adabfc09b7975e2f076133c3579125f3c348.zip |
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 '')
-rw-r--r-- | crypto/seqiv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/seqiv.c b/crypto/seqiv.c index 9c4490b2..c0dba8f2 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); |