crypto: api - Increase MAX_ALGAPI_ALIGNMASK to 127
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Nov 2022 04:36:39 +0000 (12:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Dec 2022 10:12:40 +0000 (18:12 +0800)
commit1c799571976da15e055f32a0e244697500e97f64
treeff0c437be4abe6c484137fc9eb46273285015582
parent12658ac5e612214023c26f0689e6bbe8bbea0871
crypto: api - Increase MAX_ALGAPI_ALIGNMASK to 127

Previously we limited the maximum alignment mask to 63.  This
is mostly due to stack usage for shash.  This patch introduces
a separate limit for shash algorithms and increases the general
limit to 127 which is the value that we need for DMA allocations
on arm64.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/shash.c
include/crypto/algapi.h