]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: user - Prepare for CRYPTO_MAX_ALG_NAME expansion
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Apr 2017 08:16:08 +0000 (16:16 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Apr 2017 11:17:26 +0000 (19:17 +0800)
commit4473710df1f8779c59b33737eeaa151596907761
tree1c2a0a8e17befe7dc53385d20808300af58d599e
parentca3bff70ab320a9132c5524c495455526df4b078
crypto: user - Prepare for CRYPTO_MAX_ALG_NAME expansion

This patch hard-codes CRYPTO_MAX_NAME in the user-space API to
64, which is the current value of CRYPTO_MAX_ALG_NAME.  This patch
also replaces all remaining occurences of CRYPTO_MAX_ALG_NAME
in the user-space API with CRYPTO_MAX_NAME.

This way the user-space API will not be modified when we raise
the value of CRYPTO_MAX_ALG_NAME.

Furthermore, the code has been updated to handle names longer than
the user-space API.  They will be truncated.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
crypto/crypto_user.c
include/uapi/linux/cryptouser.h