From: Herbert Xu Subject: [PATCH 4/4] crypto: api - Extend algorithm name limit to 128 bytes Date: Thu, 06 Apr 2017 16:16:11 +0800 Message-ID: References: <20170406081509.GB30557@gondor.apana.org.au> To: Alexander Sverdlin , "David S. Miller" , linux-crypto@vger.kernel.org, netdev@vger.kernel.org Return-path: Received: from orcrist.hmeau.com ([104.223.48.154]:37968 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751301AbdDFIQd (ORCPT ); Thu, 6 Apr 2017 04:16:33 -0400 Sender: linux-crypto-owner@vger.kernel.org List-ID: 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 --- include/linux/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index c0b0cf3..84da997 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