diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-03 21:19:43 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-13 20:08:38 +1000 |
commit | dbaaba1d0abf6871c7db6e3d15a46206bc386db1 (patch) | |
tree | 249bf2a08db97b6270b794cb2eb60842bd4d61ec /crypto/digest.c | |
parent | f176e632efad33aeb2d3c5ddfa86861c0d60553c (diff) | |
download | kernel_samsung_smdk4412-dbaaba1d0abf6871c7db6e3d15a46206bc386db1.zip kernel_samsung_smdk4412-dbaaba1d0abf6871c7db6e3d15a46206bc386db1.tar.gz kernel_samsung_smdk4412-dbaaba1d0abf6871c7db6e3d15a46206bc386db1.tar.bz2 |
crypto: hash - Fix digest size check for digest type
The changeset ca786dc738f4f583b57b1bba7a335b5e8233f4b0
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>
Diffstat (limited to 'crypto/digest.c')
-rw-r--r-- | crypto/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/digest.c b/crypto/digest.c index ac09194..5d3f130 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -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; |