diff options
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 025c9aea24ed..d63d5d96feec 100644 --- a/crypto/digest.c +++ b/crypto/digest.c | |||
@@ -141,7 +141,7 @@ int crypto_init_digest_ops(struct crypto_tfm *tfm) | |||
141 | struct hash_tfm *ops = &tfm->crt_hash; | 141 | struct hash_tfm *ops = &tfm->crt_hash; |
142 | struct digest_alg *dalg = &tfm->__crt_alg->cra_digest; | 142 | struct digest_alg *dalg = &tfm->__crt_alg->cra_digest; |
143 | 143 | ||
144 | if (dalg->dia_digestsize > crypto_tfm_alg_blocksize(tfm)) | 144 | if (dalg->dia_digestsize > PAGE_SIZE / 8) |
145 | return -EINVAL; | 145 | return -EINVAL; |
146 | 146 | ||
147 | ops->init = init; | 147 | ops->init = init; |