Commit 529a0b62 authored by Herbert Xu's avatar Herbert Xu

crypto: cryptd - 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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2c221ad3
...@@ -729,7 +729,8 @@ static int cryptd_aead_init_tfm(struct crypto_tfm *tfm) ...@@ -729,7 +729,8 @@ static int cryptd_aead_init_tfm(struct crypto_tfm *tfm)
crypto_aead_set_flags(cipher, CRYPTO_TFM_REQ_MAY_SLEEP); crypto_aead_set_flags(cipher, CRYPTO_TFM_REQ_MAY_SLEEP);
ctx->child = cipher; ctx->child = cipher;
tfm->crt_aead.reqsize = sizeof(struct cryptd_aead_request_ctx); crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
sizeof(struct cryptd_aead_request_ctx));
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment