projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a2b4d
)
crypto: ixp4xx - Use crypto_aead_set_reqsize helper
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 11 May 2015 09:48:06 +0000
(17:48 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 13 May 2015 02:31:43 +0000
(10:31 +0800)
This patch uses the crypto_aead_set_reqsize helper to avoid directly
touching the internals of aead.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ixp4xx_crypto.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/ixp4xx_crypto.c
b/drivers/crypto/ixp4xx_crypto.c
index a8875b48759ec434755d3907cd3a96fc0eec0a2a..46cd6966dc45e09cd91d9fabed1bc9ac9fe3cb80 100644
(file)
--- a/
drivers/crypto/ixp4xx_crypto.c
+++ b/
drivers/crypto/ixp4xx_crypto.c
@@
-575,7
+575,8
@@
static int init_tfm_ablk(struct crypto_tfm *tfm)
static int init_tfm_aead(struct crypto_tfm *tfm)
{
- tfm->crt_aead.reqsize = sizeof(struct aead_ctx);
+ crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
+ sizeof(struct aead_ctx));
return init_tfm(tfm);
}