Commit 9697b328 authored by Herbert Xu's avatar Herbert Xu

crypto: hash - Remove maximum statesize limit

Remove the HASH_MAX_STATESIZE limit now that it is unused.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent acc03d89
...@@ -569,8 +569,7 @@ int hash_prepare_alg(struct hash_alg_common *alg) ...@@ -569,8 +569,7 @@ int hash_prepare_alg(struct hash_alg_common *alg)
struct crypto_istat_hash *istat = hash_get_stat(alg); struct crypto_istat_hash *istat = hash_get_stat(alg);
struct crypto_alg *base = &alg->base; struct crypto_alg *base = &alg->base;
if (alg->digestsize > HASH_MAX_DIGESTSIZE || if (alg->digestsize > HASH_MAX_DIGESTSIZE)
alg->statesize > HASH_MAX_STATESIZE)
return -EINVAL; return -EINVAL;
base->cra_flags &= ~CRYPTO_ALG_TYPE_MASK; base->cra_flags &= ~CRYPTO_ALG_TYPE_MASK;
......
...@@ -183,8 +183,6 @@ struct shash_desc { ...@@ -183,8 +183,6 @@ struct shash_desc {
*/ */
#define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360) #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360)
#define HASH_MAX_STATESIZE 512
#define SHASH_DESC_ON_STACK(shash, ctx) \ #define SHASH_DESC_ON_STACK(shash, ctx) \
char __##shash##_desc[sizeof(struct shash_desc) + HASH_MAX_DESCSIZE] \ char __##shash##_desc[sizeof(struct shash_desc) + HASH_MAX_DESCSIZE] \
__aligned(__alignof__(struct shash_desc)); \ __aligned(__alignof__(struct shash_desc)); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment