提交 0d6669e2 编写于 作者: H Herbert Xu

crypto: cryptd - Use crypto_ahash_set_reqsize

This patch makes cryptd use crypto_ahash_set_reqsize to avoid
accessing crypto_ahash directly.
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 fc00127f
...@@ -353,8 +353,9 @@ static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) ...@@ -353,8 +353,9 @@ static int cryptd_hash_init_tfm(struct crypto_tfm *tfm)
return PTR_ERR(hash); return PTR_ERR(hash);
ctx->child = hash; ctx->child = hash;
tfm->crt_ahash.reqsize = sizeof(struct cryptd_hash_request_ctx) + crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
crypto_shash_descsize(hash); sizeof(struct cryptd_hash_request_ctx) +
crypto_shash_descsize(hash));
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册