From: Herbert Xu Date: Thu, 6 Apr 2017 08:16:11 +0000 (+0800) Subject: crypto: api - Extend algorithm name limit to 128 bytes X-Git-Tag: Ubuntu-4.12.0-11.12~1226^2~28 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f437a3f477cce402dbec6537b29e9e33962c9f73;p=mirror_ubuntu-artful-kernel.git crypto: api - Extend algorithm name limit to 128 bytes With the new explicit IV generators, we may now exceed the 64-byte length limit on the algorithm name, e.g., with echainiv(authencesn(hmac(sha256-generic),cbc(des3_ede-generic))) This patch extends the length limit to 128 bytes. Reported-by: Alexander Sverdlin Signed-off-by: Herbert Xu Acked-by: Alexander Sverdlin Tested-by: Alexander Sverdlin --- diff --git a/include/linux/crypto.h b/include/linux/crypto.h index c0b0cf3d2d2f..84da9978e951 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h @@ -123,7 +123,7 @@ /* * Miscellaneous stuff. */ -#define CRYPTO_MAX_ALG_NAME 64 +#define CRYPTO_MAX_ALG_NAME 128 /* * The macro CRYPTO_MINALIGN_ATTR (along with the void * type in the actual