OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d97de47
)
crypto: echainiv - Fix IV size in context size calculation
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 27 May 2015 06:37:34 +0000
(14:37 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 28 May 2015 03:23:18 +0000
(11:23 +0800)
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>
crypto/echainiv.c
patch
|
blob
|
history
diff --git
a/crypto/echainiv.c
b/crypto/echainiv.c
index
0f79fc6
..
62a817f
100644
(file)
--- 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);