crypto: api - Extend algorithm name limit to 128 bytes
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Apr 2017 08:16:11 +0000 (16:16 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Apr 2017 11:17:27 +0000 (19:17 +0800)
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 <alexander.sverdlin@nokia.com>
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>
include/linux/crypto.h

index c0b0cf3d2d2fac2ec58ac9f0b39f7fd30b552ffc..84da9978e9516a591fea2c1ad33af4c7db98a7b5 100644 (file)
 /*
  * 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