Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5944872yba; Thu, 11 Apr 2019 08:53:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzte+ypWCWdwZzEPexCu25/Z0p16/eOlpF5qtOr1+ky42+bOkfzOYcrfAIYsW6wlRr3WrK X-Received: by 2002:a17:902:8bca:: with SMTP id r10mr50939293plo.67.1554997998827; Thu, 11 Apr 2019 08:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554997998; cv=none; d=google.com; s=arc-20160816; b=lpwp14iKIR8kxq9G8UMrQxGgO7LUHLtCCAwubu1dkK1rYpBAWE+XmDfTAqe9Ho/4TL 2hNWDZfj34Ltgeiqzr4N9m0KJkFPwOeYGc8i4aoEdJu1uIYyyzyAQxBD66g0npZHQHgW EHgrDw56Du0Mf9gbMbxCufOMrk6XlNTONTWsSuiCgvigi2j/bwGq5DlAe5xAPVyS8a93 DYShX5Yw4wIpVJcdbdyE7PG7nZRIpW1Lj1fVCjm8YAFcxa402l+GfocSJ3S5aUnTuvFK 8fqm01PjE2o1I5kE6uUhQI4wJ7TaQzHr9fN1KO7T0kAQjSpA8SyEz5zKX9t/k9Db3Eeb qRXA== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=dUi86lKcM21zU06t2mLPrx74/nXZB1VhkFtUps7zhp4=; b=I/22JE+2/hDn2pWwzWp74/o8OL1VlOjKr8gcviK4aBPR7uB1FxyRLy03rqWicOcWob P9GbxohC7UkpzRRxw056jpzjfdS4h5r+xvvhh+JRuHiK49LGy17mA+4QjPDRIwivG2CR Wqj/9yRB8CR0VZ+TNZOoQZEkHx/HuR/+mcJbp4LjJM5I7bpGdzaj1s6/iAq7A8JnHV0j pa5Cu4ato2EpjPMSMHWMhKfPLpo+y23lCxgjoqyPubFxsEFyc2W55XJj9OWdlL8xTDeN MarGqQphM719D8tCkKDr3HwvQlhRiQru1zNdmK1z002zMYbE1J8T0TIpcPVRhycwAGeY oYRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 k132si17026294pgc.131.2019.04.11.08.53.02; Thu, 11 Apr 2019 08:53:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727039AbfDKPwI (ORCPT + 99 others); Thu, 11 Apr 2019 11:52:08 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:44818 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfDKPwF (ORCPT ); Thu, 11 Apr 2019 11:52:05 -0400 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 40CCC72CC58; Thu, 11 Apr 2019 18:52:02 +0300 (MSK) Received: from beacon.altlinux.org (unknown [185.6.174.98]) by imap.altlinux.org (Postfix) with ESMTPSA id DC3CD4A4A2A; Thu, 11 Apr 2019 18:52:01 +0300 (MSK) From: Vitaly Chikunov To: Herbert Xu , David Howells , Mimi Zohar , Dmitry Kasatkin , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 06/10] crypto: Kconfig - create Public-key cryptography section Date: Thu, 11 Apr 2019 18:51:18 +0300 Message-Id: <20190411155122.13245-7-vt@altlinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190411155122.13245-1-vt@altlinux.org> References: <20190411155122.13245-1-vt@altlinux.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Group RSA, DH, and ECDH into Public-key cryptography config section. Signed-off-by: Vitaly Chikunov --- crypto/Kconfig | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index 2022b9201e38..f328026dff75 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -113,29 +113,6 @@ config CRYPTO_ACOMP select CRYPTO_ALGAPI select CRYPTO_ACOMP2 -config CRYPTO_RSA - tristate "RSA algorithm" - select CRYPTO_AKCIPHER - select CRYPTO_MANAGER - select MPILIB - select ASN1 - help - Generic implementation of the RSA public key algorithm. - -config CRYPTO_DH - tristate "Diffie-Hellman algorithm" - select CRYPTO_KPP - select MPILIB - help - Generic implementation of the Diffie-Hellman algorithm. - -config CRYPTO_ECDH - tristate "ECDH algorithm" - select CRYPTO_KPP - select CRYPTO_RNG_DEFAULT - help - Generic implementation of the ECDH algorithm - config CRYPTO_MANAGER tristate "Cryptographic algorithm manager" select CRYPTO_MANAGER2 @@ -253,6 +230,31 @@ config CRYPTO_GLUE_HELPER_X86 config CRYPTO_ENGINE tristate +comment "Public-key cryptography" + +config CRYPTO_RSA + tristate "RSA algorithm" + select CRYPTO_AKCIPHER + select CRYPTO_MANAGER + select MPILIB + select ASN1 + help + Generic implementation of the RSA public key algorithm. + +config CRYPTO_DH + tristate "Diffie-Hellman algorithm" + select CRYPTO_KPP + select MPILIB + help + Generic implementation of the Diffie-Hellman algorithm. + +config CRYPTO_ECDH + tristate "ECDH algorithm" + select CRYPTO_KPP + select CRYPTO_RNG_DEFAULT + help + Generic implementation of the ECDH algorithm + comment "Authenticated Encryption with Associated Data" config CRYPTO_CCM -- 2.11.0