Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4498868rwb; Tue, 6 Sep 2022 08:19:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4d2wjrh+IOzW5AiIQTn3Y20O8GlWIBtvrRQNsXOX7IKHewFo9jptQGjcLxywM7p4afUeL1 X-Received: by 2002:a62:b50a:0:b0:536:3a64:3492 with SMTP id y10-20020a62b50a000000b005363a643492mr55420445pfe.52.1662477574518; Tue, 06 Sep 2022 08:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477574; cv=none; d=google.com; s=arc-20160816; b=NbKc+PBcMAiFZV84IhI0vVlklbcgXFsPUzqCuQoZ1NXi7p0kkzphe2coOyR52RssMm Cgv0oMoZKeI0uvDoaXGEujfSAPvbyNGJQfwD05uoUR1eh1a8QW3fZi9+QT0EQ1/ScbYl AoHtmbIsl4XCDEymMZamX5vHOf9aTizVI2x5e8epd/WrM2l0vugMEB70S4HKcvOHmeBF U6hDge5pVl/1WOkmF+mbjb8CqpshAHx16Qlx7/vU8NwiJBZKZxJuG0qEDesVTf70YpMs rODctVKQwovxGekB7OS1dT9oMpusM1SGSztwGt1NobohnuH+0u5rpsEtaPA59I1eK7Pd CXvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:to:subject:from:cc:references :in-reply-to:content-transfer-encoding:mime-version:dkim-signature; bh=qDvrOZcu1fnavOwjoUMnV93kwuI5yTrcVzJaNVPiG9E=; b=J63A2aj79fP99QdNPF1fhutHWMZPsNbPCOIrd9YFUsQENfbAS3+2KtZH5ZHlcoH6bK tbFFamfKAhSG1j9+R9yI7/O844rIC9w2kV3YS3wAJyNeFE6O6c4Wu+2zJqayZ2jshMge iAHBzm7485AuVNeUE4JmYxA94j4ST+T6cKhVtk6s8tZXG1/c+cCksV4Iu6d/qJfvk8GR W7SnjTDOlR/aoGGEnTJVFi0ukKwxzOFuFUSfFGpRG5G885uN7pH/bXXDAFrE+HQ+Et55 xUsX6y7kPj7JS6yDqmnFLmMNgnRLIzXxROqAG5xx637u5X2J/xD2nM6473kuSf6HmI4N MoTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LVD9GRTl; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 13-20020a630a0d000000b0041be4774a55si10718034pgk.800.2022.09.06.08.19.08; Tue, 06 Sep 2022 08:19:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@kernel.org header.s=k20201202 header.b=LVD9GRTl; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240202AbiIFOrY (ORCPT + 99 others); Tue, 6 Sep 2022 10:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbiIFOqv (ORCPT ); Tue, 6 Sep 2022 10:46:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FCFF9E2F4 for ; Tue, 6 Sep 2022 07:05:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C97F26155D for ; Tue, 6 Sep 2022 14:05:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1617C433D6; Tue, 6 Sep 2022 14:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662473136; bh=drS0mLtx6beSy7EjFtb0nRfwc3YlIt+GhmVaLJivPbU=; h=In-Reply-To:References:Cc:From:Subject:To:Date:From; b=LVD9GRTlcZBAVk7G7RKd8aOKygr6rotS9QjCA0CcCGqk9pKm7zgCQSohOj2AtOuVE 2KWkka1MDpn9GAyFQDWqWTN1W1aJey1q+rhTWCMhCpsldDHpLmZWuY8Oh1coblKrKq vOk6xaQNEZ1wMW75MqT/3kT+a9hRxPPIrgym3Q2OCrydMe9xZ8tSicILxL3GzxTmb+ 3yVb5OVup4fkDrofZE862D0nUH0YnfjMoiINKoSNkA9b/qwCPHyXdi5qFSsoa5D6Zq dJ/X6vlMvhGHmLvDEOw3/GBz2a8AImc6wxK1FcA3ZDts+Zsk1s+l1xfTVurfpTcQXo MzMM8SNa2S0Hw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <60cb9b954bb079b1f12379821a64faff00bb368e.1662432407.git.pliem@maxlinear.com> References: <60cb9b954bb079b1f12379821a64faff00bb368e.1662432407.git.pliem@maxlinear.com> Cc: linux-crypto@vger.kernel.org, linux-lgm-soc@maxlinear.com, Peter Harliman Liem From: Antoine Tenart Subject: Re: [PATCH v2 2/2] crypto: inside-secure - Select CRYPTO_AES config To: Peter Harliman Liem , herbert@gondor.apana.org.au Message-ID: <166247313358.3585.5988889047992659412@kwain> Date: Tue, 06 Sep 2022 16:05:33 +0200 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-crypto@vger.kernel.org Quoting Peter Harliman Liem (2022-09-06 04:51:50) > CRYPTO_AES is needed for aes-related algo (e.g. > safexcel-gcm-aes, safexcel-xcbc-aes, safexcel-cmac-aes). > Without it, we observe failures when allocating transform > for those algo. >=20 > Fixes: 363a90c2d517 ("crypto: safexcel/aes - switch to library version of= key expansion routine") The above commit explicitly switched crypto drivers to use the AES library instead of the generic AES cipher one, which seems like a good move. What are the issues you're encountering and why the AES lib makes the driver to fail? > Signed-off-by: Peter Harliman Liem > --- > v2: > Add fixes tag >=20 > drivers/crypto/Kconfig | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig > index 3e6aa319920b..b12d222e49a1 100644 > --- a/drivers/crypto/Kconfig > +++ b/drivers/crypto/Kconfig > @@ -740,6 +740,7 @@ config CRYPTO_DEV_SAFEXCEL > select CRYPTO_SHA512 > select CRYPTO_CHACHA20POLY1305 > select CRYPTO_SHA3 > + select CRYPTO_AES > help > This driver interfaces with the SafeXcel EIP-97 and EIP-197 cry= ptographic > engines designed by Inside Secure. It currently accelerates DES= , 3DES and > --=20 > 2.17.1 >=20