diff options
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r-- | crypto/ahash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index a64c143165b1..78aaf2158c43 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c | |||
@@ -550,8 +550,8 @@ static int ahash_prepare_alg(struct ahash_alg *alg) | |||
550 | { | 550 | { |
551 | struct crypto_alg *base = &alg->halg.base; | 551 | struct crypto_alg *base = &alg->halg.base; |
552 | 552 | ||
553 | if (alg->halg.digestsize > PAGE_SIZE / 8 || | 553 | if (alg->halg.digestsize > HASH_MAX_DIGESTSIZE || |
554 | alg->halg.statesize > PAGE_SIZE / 8 || | 554 | alg->halg.statesize > HASH_MAX_STATESIZE || |
555 | alg->halg.statesize == 0) | 555 | alg->halg.statesize == 0) |
556 | return -EINVAL; | 556 | return -EINVAL; |
557 | 557 | ||