提交 dbaaba1d 编写于 作者: H Herbert Xu

crypto: hash - Fix digest size check for digest type

The changeset ca786dc7

	crypto: hash - Fixed digest size check

missed one spot for the digest type.  This patch corrects that
error.
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 f176e632
......@@ -225,7 +225,7 @@ int crypto_init_digest_ops_async(struct crypto_tfm *tfm)
struct ahash_tfm *crt = &tfm->crt_ahash;
struct digest_alg *dalg = &tfm->__crt_alg->cra_digest;
if (dalg->dia_digestsize > crypto_tfm_alg_blocksize(tfm))
if (dalg->dia_digestsize > PAGE_SIZE / 8)
return -EINVAL;
crt->init = digest_async_init;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册