diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-03-28 05:57:09 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-04-06 10:18:53 +0200 |
commit | 9697b328d11152d7b918ee82438d4283d4edb563 (patch) | |
tree | 6c1058d7ad365639d02eaa5ac7e64b17e79e3e6e /crypto | |
parent | crypto: algif_hash - Allocate hash state with kmalloc (diff) | |
download | linux-9697b328d11152d7b918ee82438d4283d4edb563.tar.xz linux-9697b328d11152d7b918ee82438d4283d4edb563.zip |
crypto: hash - Remove maximum statesize limit
Remove the HASH_MAX_STATESIZE limit now that it is unused.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/shash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index dcc6a7170ce4..4cefa614dbbd 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -569,8 +569,7 @@ int hash_prepare_alg(struct hash_alg_common *alg) struct crypto_istat_hash *istat = hash_get_stat(alg); struct crypto_alg *base = &alg->base; - if (alg->digestsize > HASH_MAX_DIGESTSIZE || - alg->statesize > HASH_MAX_STATESIZE) + if (alg->digestsize > HASH_MAX_DIGESTSIZE) return -EINVAL; base->cra_flags &= ~CRYPTO_ALG_TYPE_MASK; |