From patchwork Tue Oct 22 14:28:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 177203 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4945113ill; Tue, 22 Oct 2019 07:29:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyspTWKvbK4K+qNCinWoI1HaieWg3QIzn/h4TIzxB1Q5QsKh7yQvJsGA28nIAQAPamG7DdQ X-Received: by 2002:aa7:c612:: with SMTP id h18mr31666082edq.245.1571754576189; Tue, 22 Oct 2019 07:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571754576; cv=none; d=google.com; s=arc-20160816; b=ul+3mCfrTZUv4TiKcO3xiwycuLJBN3sUPEoTwlMQO1hqArMml0Ov2jYbK78rUIZlU2 uL3VneHUv+u38qp1paZ7cgCpK/PtEYPnWS7+XoQynga/Y9U0B1yNJrE2Pwb6ulJbsnWh j4+MkUYFJPRgPjIXwusDHqVh/MAmor6+XPZWuyfD0UPTPkggNS+pyO8lPHCbrWg8Du2U vQfShx2v5sqKKsN1+5LFxWlkeRK03mcOrigMW1OhN4mb0DfM4v3KD2hLltLMSQPBNGZ1 skHYdSqYNB8FCEw6qgEXLSJigdvf5atHCjlgNquH25zUCi4Yz7/fxi8U5HOLq7Cw/bzC D2+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=IWYQF0+zD52M3xHBVrnrccjYNrkf93oSssMeobXvkHM=; b=qdOnlNCImCXkWsBNRgEGYq8SSr1IbTT32Ip0O6qL9CeeHTbQdxFFXKwN+3GCR0O26t 3RMhJy2SKJSDZd2zv5VA71toG8ztzykSXyBs/iQ3ytJfGbbsUOl+Ea0cRSRBuub9UhMV 8/Mgf57SGIHI7KTm9p7cgrFZxc0Byquzq67zGLMM0BL81iPknNOe5Vh11RE6Wgmmcb6g WIZbbTpFCs3o8NAF3VEpPhWSlKhwVry9fWhGdbUexPoT410TWxNzZ2qK3L+Iu8SoG2f7 Zhh3DnHOQR754s3iPO90hu2rfimS/74ENo3pBKXWj8v4AUa5p6qU+2eXrZJdt5HXkaFC aUpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si9922307eda.192.2019.10.22.07.29.36; Tue, 22 Oct 2019 07:29:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731898AbfJVO3f (ORCPT + 3 others); Tue, 22 Oct 2019 10:29:35 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:49051 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727582AbfJVO3f (ORCPT ); Tue, 22 Oct 2019 10:29:35 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1M4aA4-1iLGzz0HRu-001liB; Tue, 22 Oct 2019 16:29:17 +0200 From: Arnd Bergmann To: Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Antoine Tenart , Pascal van Leeuwen , Ard Biesheuvel , Pascal van Leeuwen , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: inside-secure - select CONFIG_CRYPTO_SM3 Date: Tue, 22 Oct 2019 16:28:58 +0200 Message-Id: <20191022142914.1803322-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:00l9iabADIFv0wAIPdDsoqreZmhnf5ZQlT3ow6IK35a8pvNICt8 XVH66v2tQRNqX6ON0AMdv5CU/eW/AltE68a3R3WzliJTlaum9Q2wYfV6Td0gNvLDoproGUf y1Yi8OzafJ8edAWmw2mwJbccaUOg/WB99qxKQo+CvDotisUWUwMVOnkpQnTvFFwrKnWkPWz qS4lH5QEcfOo0mXYiXrAA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:wALEfJkSU58=:Q1pqyhJ7LK+r/v38AXJ3AR NCGwe02DvJxpbujy8KHCT7xkrDMXgNhbHpPbSsDP7OzMKmH/fCtp/1VJXDoEvNMTEZ28nJwE5 hn31CZMhee5FrRmoQHHzgT4XL5I8EywBclsM0D6gUprTjSvrcQboHUbsX6UwHVTOHOr+oLp5m SQk9Q7eY6FU9fUaXfY/mon9c9vUCGNzRrNORvS+VAz65QJxYCJk9+C8Nk9B1HdQ9+lWROq5Vv vHtI2K7nYV1vGHJZ2ZUeDNMxq4FhFljwx58bnSJkkYqQ62c2pn5SitgWNlMmpOA7zIWHkvbL7 o0y8xhc3FkrMcFVjlvfBVQOzcWZcg5b3N+ck/e3H3E8dP7Dj3Bj3gSzzfLfDosn/pftERc4Bo 8c6JppWHpu6u8VLvIzvVbskv1UbiInrv4WfOmT5XDBP8l8a4qEymOKW9emWHHYChIu2StMiSi EmCXgYSfyFQXmzqeYesCYNWXFM21VOt5kwwz8+y3YViBXVtVOz27O/vSaOJDaqRi/mTQxvsch RHtkfGrhAth85dTMRufU9YwYUCtwgtptTKYUtt0MRtCDCZMFW0EGoczXahATVSwFYDyaCo2SA My7H0hKTEBKx8ZNSKYXM2RDPxVgIeWcNOg4avOESo12r0cnRLtBYSIvv72AYE7GpdBew+1E4Z M9rFvW1pUm0r8PrM4tO1tNjhZNDaJc/7V+hEzpcKp8BTzurAkRIWVcbkWZB4jBS2jQ9oQ/moU iBz/BxsSYpsJCJ1PU/jLRxCeh5mUqLLv76bNly4KhL01tnO1yZ+Ul/kHA5YcT1zua50tfMieP N0fHQ1Omw36fowds5aO2roCPx3co4+krap3w0bpf+8bQkxE009Ciibw65Mr4Q9f21C8bd+sFw kqSj0lPUFKBsfEVDWYEg== Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Without this symbol, the safexcel driver causes a link error: drivers/crypto/inside-secure/safexcel_hash.o: In function `safexcel_ahash_final': safexcel_hash.c:(.text+0x3c4): undefined reference to `sm3_zero_message_hash' Fixes: 0f2bc13181ce ("crypto: inside-secure - Added support for basic SM3 ahash") Signed-off-by: Arnd Bergmann --- drivers/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 357e230769c8..1ca8d9a15f2a 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -753,6 +753,7 @@ config CRYPTO_DEV_SAFEXCEL select CRYPTO_SHA512 select CRYPTO_CHACHA20POLY1305 select CRYPTO_SHA3 + select CRYPTO_SM3 help This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic engines designed by Inside Secure. It currently accelerates DES, 3DES and