Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1718071pxb; Fri, 24 Sep 2021 10:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhzxMfp6bbfp1LpETMRJ3T05WYiiPWQ/icVZRxKDrVhdFCtYH55UthIJndJjgNywhfPb0T X-Received: by 2002:a05:6e02:b41:: with SMTP id f1mr9439863ilu.311.1632503949206; Fri, 24 Sep 2021 10:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632503949; cv=none; d=google.com; s=arc-20160816; b=uBt07LCwvrEiiy20b5oxCuvVQMaCWOsGisc5/x4ddjN4JPIiWRj+gbQa9yBmhBlTNP qMJepDaea6Y3MxcSwSJhbwtSQcxwq3h+lKgQBg2b7BTIg3M53yd2yWw6gMnHhKFD6hg4 6f0B8T9qcLn28/UkLNJo3uS/rSr020oSsFmsZqXqELtXRhC333zEcQciPHAsA131xOHv T9opxB2wDAZQGZr176nzia3DyqTOG1vn7pjdbeao/eGhNzGDrdpwIRChDtNECTd+N/IN H+Obmi8nE8cvR62xkHvZuED1ibKbVZDMPxpM+GqXUz0+64R8RCMfc6yOwwhz2K5WbEq8 VIdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=W8mxPrDb6xetCYcDz99RTUbVx+PimKXoQrUgXibivOY=; b=SjIQurXWKLvuqfuNERm4nzngdtKK/7BTOjgS1VeFHukBmVFbQq7yOa9qqbA1WF2k0G up2PXZN0pKcErcbRALYeHQjmtr3FMI4wbs9gi7V2Ak9dZHNRI5WQmdfWzyJHv9+0JGpV DG0EXckE1LWY6JI12cCQbST8kl/dIRnO2v5XqjGsetsl7ePSYOatO9uu5VWZpqQWUF7C xLgS3m6NJswdRpdGivCCKb1V7qwNoYfvWsWUKnRF0wdeOhr1Y4oSgPVuxEMkh/HcFL2K jpYxtSk7s7M1FhxjWiqgF7prZ8Jeflyn7cMOYuFp+KAmfAK6Q6imrXLHv8IxUjKU2Fdl 4sIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qNUxDga8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si11122709ilu.181.2021.09.24.10.18.55; Fri, 24 Sep 2021 10:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qNUxDga8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344465AbhIXMxG (ORCPT + 99 others); Fri, 24 Sep 2021 08:53:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:46134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344641AbhIXMvG (ORCPT ); Fri, 24 Sep 2021 08:51:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 404D161107; Fri, 24 Sep 2021 12:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632487728; bh=jrjvXwCNyzrf+6GLumuw2fpsKIqRhFKljhQcag2ywzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qNUxDga8mPIF2RBfz3R/ukuXyhCvPwK//UGcDvFrdkLv3Sp/wFmHMaUIBzaMfDZLf 1Bh2F2aKR133225IsJcyL93nUuYTalwG/ErbdT0IhNgi0klZi++QEVMYssApZV2BDX apVzF59FKn6eGmcABsIvnRtRFfyZk8n1xiwmel6Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Horia=20Geant=C4=83?= , Christophe Leroy , Herbert Xu , "Nobuhiro Iwamatsu (CIP)" Subject: [PATCH 4.19 05/34] crypto: talitos - fix max key size for sha384 and sha512 Date: Fri, 24 Sep 2021 14:43:59 +0200 Message-Id: <20210924124330.141564530@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124329.965218583@linuxfoundation.org> References: <20210924124329.965218583@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy commit 192125ed5ce62afba24312d8e7a0314577565b4a upstream. Below commit came with a typo in the CONFIG_ symbol, leading to a permanently reduced max key size regarless of the driver capabilities. Reported-by: Horia Geantă Fixes: b8fbdc2bc4e7 ("crypto: talitos - reduce max key size for SEC1") Signed-off-by: Christophe Leroy Reviewed-by: Horia Geantă Signed-off-by: Herbert Xu Signed-off-by: Nobuhiro Iwamatsu (CIP) Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/talitos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -853,7 +853,7 @@ static void talitos_unregister_rng(struc * HMAC_SNOOP_NO_AFEA (HSNA) instead of type IPSEC_ESP */ #define TALITOS_CRA_PRIORITY_AEAD_HSNA (TALITOS_CRA_PRIORITY - 1) -#ifdef CONFIG_CRYPTO_DEV_TALITOS_SEC2 +#ifdef CONFIG_CRYPTO_DEV_TALITOS2 #define TALITOS_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + SHA512_BLOCK_SIZE) #else #define TALITOS_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + SHA256_BLOCK_SIZE)