summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/picoxcell_crypto.c
diff options
context:
space:
mode:
authorHerbert Xu2015-05-11 11:48:08 +0200
committerHerbert Xu2015-05-13 04:31:44 +0200
commit9611ef63c27709f57639ab49fe3977c5947038a5 (patch)
tree42d580bf31bf6df9221220f5e58ec8484639959d /drivers/crypto/picoxcell_crypto.c
parentcrypto: ixp4xx - Use crypto_aead_set_reqsize helper (diff)
downloadkernel-qcow2-linux-9611ef63c27709f57639ab49fe3977c5947038a5.tar.gz
kernel-qcow2-linux-9611ef63c27709f57639ab49fe3977c5947038a5.tar.xz
kernel-qcow2-linux-9611ef63c27709f57639ab49fe3977c5947038a5.zip
crypto: picoxcell - Use crypto_aead_set_reqsize helper
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>
Diffstat (limited to 'drivers/crypto/picoxcell_crypto.c')
-rw-r--r--drivers/crypto/picoxcell_crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c
index 135817fd7b2d..eb2a0ca49eda 100644
--- a/drivers/crypto/picoxcell_crypto.c
+++ b/drivers/crypto/picoxcell_crypto.c
@@ -790,7 +790,8 @@ static int spacc_aead_cra_init(struct crypto_tfm *tfm)
get_random_bytes(ctx->salt, sizeof(ctx->salt));
- tfm->crt_aead.reqsize = sizeof(struct spacc_req);
+ crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
+ sizeof(struct spacc_req));
return 0;
}