Message ID | 20230324145812.315334-1-j-choudhary@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp716966vqo; Fri, 24 Mar 2023 08:36:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bH5mh7cc9lVzznkZdiYwI4srmVJ4k+4mqU2G3rnTsEF4Okg/9gvEoozk4ZlWtFzQCS/MQz X-Received: by 2002:a17:906:5010:b0:92a:77dd:f6f with SMTP id s16-20020a170906501000b0092a77dd0f6fmr3515551ejj.73.1679672165920; Fri, 24 Mar 2023 08:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679672165; cv=none; d=google.com; s=arc-20160816; b=t0/FkOFiGZ99MQy7XXOsHSuVfa9fYF2uZDRGV5dO0s4UGBjqOey3G6rE2lqE8CeFdK oqcF6PJBAcDOx79MaqYx42hu+BSHCTIYdkLUek4Zeo1nJ4EUVj8EJrxeI1l4kNqcJCP1 fqK+saySPFK18NdkpaOHI/ifuyugBAKFX1WwbN4mEniX5Eye8w/E1NLGVroMtChdtIii 6jy6C46vqFHUb+A5gdNxZzbNNwDFGePv2nV3B0srjFQ3XsAi9nOfKcTY2hT9W/XyeNI0 kZIoJ91LguEW7VHG/juMcxRkoN5gmjUBSBlYa8DK1Mxp89KxkxGZeWYxUr1eAe+kvtAs sVmg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SxlMSUhJO9WvqXT836dUKCf+DlIHIJFQWl2hhIJh0zg=; b=g4e6UYOuQsI5dtkjE8wUjO1+nDtLwsyxrHjw1CaotZz6M0KRxctJk0sE+7ysMMlPpZ Gzq0HUbrl0EhBoPZh7ttEKW0At63XZ25OKsNVh5+uY5qneuh+KbMTK/P+VDfGd4CUn7q betvAep63Qlvllsbozho2ErppGuZgUmk5/8cckqaJ/arf0UBAbZ4KqV5kzXlI6XYJ8xU QSpRtfFn/AEnwejGCdYBUy2yjuUI3fwu3WkfLN51Sw39jY8vaIDMmj3HHrau2jWzgEoc LWUhOlreyzslts79B+LfpEpnyiuO3LU41OXpuWcnwP8gtE6uOlnJ4QjxmeTX6sEBmThj JFpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LaPfjb6w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a17090685c300b009307dae45d9si19595391ejy.876.2023.03.24.08.35.31; Fri, 24 Mar 2023 08:36:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LaPfjb6w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232163AbjCXO6e (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 10:58:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232310AbjCXO63 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 10:58:29 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9052955A3; Fri, 24 Mar 2023 07:58:23 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32OEwDGW075637; Fri, 24 Mar 2023 09:58:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679669893; bh=SxlMSUhJO9WvqXT836dUKCf+DlIHIJFQWl2hhIJh0zg=; h=From:To:CC:Subject:Date; b=LaPfjb6wfL54YiHw0IGawnfygNFamakQMXlCqZ1kz/lLMYiO0X0b4XNQvALtOVPv9 8dyioILe5CPtShcn77U9cqhT+PYsVH/alhIUgyco0/IFhnb07Bpj0ODeunOYNYctLL pcBYkhW/EvIFLboyZcqFL28KPtif4Vxl9cRuknYs= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32OEwDwb019624 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 09:58:13 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 24 Mar 2023 09:58:13 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 24 Mar 2023 09:58:13 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32OEwC1l093848; Fri, 24 Mar 2023 09:58:12 -0500 From: Jayesh Choudhary <j-choudhary@ti.com> To: <herbert@gondor.apana.org.au>, <davem@davemloft.net> CC: <j-keerthy@ti.com>, <kristo@kernel.org>, <linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <j-choudhary@ti.com> Subject: [PATCH] crypto: sa2ul - Add CRYPTO_DES to CRYPTO_DEV_SA2UL Date: Fri, 24 Mar 2023 20:28:12 +0530 Message-ID: <20230324145812.315334-1-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761263921409877900?= X-GMAIL-MSGID: =?utf-8?q?1761263921409877900?= |
Series |
crypto: sa2ul - Add CRYPTO_DES to CRYPTO_DEV_SA2UL
|
|
Commit Message
Jayesh Choudhary
March 24, 2023, 2:58 p.m. UTC
From: Suman Anna <s-anna@ti.com> The SA2UL Crypto driver provides support for couple of DES3 algos "cbc(des3_ede)" and "ecb(des3_ede)", and enabling the crypto selftest throws the following errors (as seen on K3 J721E SoCs): saul-crypto 4e00000.crypto: Error allocating fallback algo cbc(des3_ede) alg: skcipher: failed to allocate transform for cbc-des3-sa2ul: -2 saul-crypto 4e00000.crypto: Error allocating fallback algo ecb(des3_ede) alg: skcipher: failed to allocate transform for ecb-des3-sa2ul: -2 Fix this by selecting CRYPTO_DES which was missed while adding base driver support. Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver") Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> --- drivers/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On Fri, Mar 24, 2023 at 08:28:12PM +0530, Jayesh Choudhary wrote: > From: Suman Anna <s-anna@ti.com> > > The SA2UL Crypto driver provides support for couple of > DES3 algos "cbc(des3_ede)" and "ecb(des3_ede)", and enabling > the crypto selftest throws the following errors (as seen on > K3 J721E SoCs): > saul-crypto 4e00000.crypto: Error allocating fallback algo cbc(des3_ede) > alg: skcipher: failed to allocate transform for cbc-des3-sa2ul: -2 > saul-crypto 4e00000.crypto: Error allocating fallback algo ecb(des3_ede) > alg: skcipher: failed to allocate transform for ecb-des3-sa2ul: -2 > > Fix this by selecting CRYPTO_DES which was missed while > adding base driver support. > > Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver") > Signed-off-by: Suman Anna <s-anna@ti.com> > Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> > --- > drivers/crypto/Kconfig | 1 + > 1 file changed, 1 insertion(+) Patch applied. Thanks.
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 3b2516d1433f..20222e321a43 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -810,6 +810,7 @@ config CRYPTO_DEV_SA2UL select CRYPTO_AES select CRYPTO_ALGAPI select CRYPTO_AUTHENC + select CRYPTO_DES select CRYPTO_SHA1 select CRYPTO_SHA256 select CRYPTO_SHA512