diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-27 14:37:34 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-28 11:23:18 +0800 |
commit | c30bee79f02af12a7560cada0e4c7f34595e60ba (patch) | |
tree | 5d9f6c3321b61cf45f1f8b856df31144eb38d045 /crypto | |
parent | 8878c89d9b3214301b10e619de7bad9129ab326d (diff) | |
download | linux-crypto-c30bee79f02af12a7560cada0e4c7f34595e60ba.tar.gz linux-crypto-c30bee79f02af12a7560cada0e4c7f34595e60ba.zip |
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 '')
-rw-r--r-- | crypto/echainiv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/echainiv.c b/crypto/echainiv.c index 0f79fc66..62a817fa 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); |