Skip to content

Commit

Permalink
crypto: hash - Fix digest size check for digest type
Browse files Browse the repository at this point in the history
The changeset ca786dc

	crypto: hash - Fixed digest size check

missed one spot for the digest type.  This patch corrects that
error.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Herbert Xu committed Aug 13, 2008
1 parent f176e63 commit dbaaba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dbaaba1

Please sign in to comment.