From: Herbert Xu Date: Mon, 11 May 2015 09:48:08 +0000 (+0800) Subject: crypto: picoxcell - Use crypto_aead_set_reqsize helper X-Git-Tag: v5.15~15621^2~193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9611ef63c27709f57639ab49fe3977c5947038a5;p=platform%2Fkernel%2Flinux-starfive.git 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 --- diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c index 135817f..eb2a0ca 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; }