From patchwork Mon Jul 31 21:10:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 109052 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp670536qge; Mon, 31 Jul 2017 14:11:26 -0700 (PDT) X-Received: by 10.84.214.151 with SMTP id j23mr18926071pli.322.1501535486422; Mon, 31 Jul 2017 14:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501535486; cv=none; d=google.com; s=arc-20160816; b=MW2ZdpA7a8wszLj5lUsEY88MwfIvoC0LpHU0xufRI7FxCrS0xIgFCFNspiufqhUfZF 1Hi/POKFnlFt+b1ERaYQRSCVWuepLNt5DX9w/yFUi/RtHlocPpN8XcutuXHAkkC8RSrd X2Hc37XKFpTlJqgnM74yzGUL6bBWWXa6fkzu4osrxkc35rWYx04RiyzqDbRizscQLnHt O/GlXuOSiDVhgYpxBLXkx/eTWZ0e0k3znnBJTfomD0vE1ljL3rFuEzLB9lpnokbesct4 nAoSt8MlichmadAoad2r5SGESUK5wu2mrLduQS1tcq8nSIwmpdoY8ko7R4EpENpdjgsM UiIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IB/lZZAW3rfM3SFgnzasaLtKvxYDF/qQuE9nmbuTqaA=; b=gsaUN4W0EVTrh9AuCsCOTYG3AE4545ue3JyvQnXDuB6xZ4SSBv1czDmCm+SQu5CK+q TpHCl6eF6Zck0ERqabzGpd7b8DyLb2DJo1YslY2ZoHDV8n1s3N98HrGv72GJA4+XXt0C nNY4e3Pihk8IfW5Ic5S014eWj9Hag3x/5oh7uxMD+Zn33hEtJV9lSZiCEo/QCcJWg5pb VjX4SkNnIndBKZ1q8dXcOoD0ocGyaY9MOLuzdwLOONWWVZZ18eoyGDvMPVuEljTUplLM zN5YsuaWuCTNNHde598DDA+nxv2lfBpG3nOR9q9+Op5f7ZcotyrutvkTHXYwTFggqLNg ++fg== 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 z2si1081441pgb.188.2017.07.31.14.11.26; Mon, 31 Jul 2017 14:11:26 -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 S1751535AbdGaVLY (ORCPT + 1 other); Mon, 31 Jul 2017 17:11:24 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:53773 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbdGaVLY (ORCPT ); Mon, 31 Jul 2017 17:11:24 -0400 Received: from wuerfel.lan ([78.43.238.10]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0M4TFs-1dm5YG3nTg-00yecG; Mon, 31 Jul 2017 23:11:09 +0200 From: Arnd Bergmann To: Tom Lendacky , Gary Hook , Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Brijesh Singh , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: ccp - select CONFIG_CRYPTO_RSA Date: Mon, 31 Jul 2017 23:10:57 +0200 Message-Id: <20170731211104.2012741-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:V46LrTPbzvo+OvWEG0HEoNJMRgH6ziMX5RXv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List: linux-crypto@vger.kernel.org Without the base RSA code, we run into a link error: ERROR: "rsa_parse_pub_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined! ERROR: "rsa_parse_priv_key" [drivers/crypto/ccp/ccp-crypto.ko] undefined! Like the other drivers implementing RSA in hardware, this can be avoided by always enabling the base support when we build CCP. Fixes: ceeec0afd684 ("crypto: ccp - Add support for RSA on the CCP") Signed-off-by: Arnd Bergmann --- drivers/crypto/ccp/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig index 15b63fd3d180..6d626606b9c5 100644 --- a/drivers/crypto/ccp/Kconfig +++ b/drivers/crypto/ccp/Kconfig @@ -27,6 +27,7 @@ config CRYPTO_DEV_CCP_CRYPTO select CRYPTO_HASH select CRYPTO_BLKCIPHER select CRYPTO_AUTHENC + select CRYPTO_RSA help Support for using the cryptographic API with the AMD Cryptographic Coprocessor. This module supports offload of SHA and AES algorithms.