Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp662412imb; Fri, 1 Mar 2019 10:30:37 -0800 (PST) X-Google-Smtp-Source: APXvYqw573P8oOs6m+EnI2ikHEbsHdKNkD0xYZoriLTvnDCwWQZlYttXMedzmnJ1WohOdk/eUYpM X-Received: by 2002:a17:902:a5c9:: with SMTP id t9mr6688011plq.196.1551465037671; Fri, 01 Mar 2019 10:30:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551465037; cv=none; d=google.com; s=arc-20160816; b=cVw10Cy4MYVXm8fMrTSHVnqMnBjuf1yxM7usKVotI6YL7V6Dar/4Cj/OvE3nUjQC8W xfsbugdD0cXaV077WO292oyyYXcXAwR6k96nJppjt8krRPK7Qe2GlOd1tStMhq6hq3PX oGbJrq21/nxmfDUiw26OxG2QTlxDDeWTBi8AOquSlggU5hl6t9de4HxYJtI1A7DWFcrM vvarj6FbnVHBWabW1EN6y1/cEweypbt8YQSZ98WVWGxw3hSRqSrvCArKY30yas257Mu8 AhbZ4k1D4myL3axrmuJTS0wrrqotA289r4yeSN2KezzJNy4/0EoYPNwNaE/yUnuH0gBn x51w== 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=0xM2e47Bu5AU0lpWrwrkL7QAo1wy0WacSVNFyy/JmLQ=; b=UwKINYn3Lb+SkY3orKeLi0Gecsocax1cQgq9n0rorUjSSd1IFZF8Fwgl8oe9KMIfbp tPRNYFPPak02EBYkwQwRL/KiuprXqGfeOaBVXzxHHcpcOPUbjD7Vm5KrACPXHU73kqdM FcE02wOW8qnr8DBIKmi5y9qaBXMfqKiZFaXAiHvILqe9qsnXy5A4pn3wGTzX5P7SjcWJ E6+Ckj3pT8hAeCx1yoPg/XaIw/xsDJrQchwQIKLb36UCXBH0YPjziVvUDXzoJ8W/htjR NnjhxFNI3vgVW1nuhA16wckG3cCvudUTiCVyjJ0ciFCJty3A2mGlppBsD/C6IOgD/3Mt si3Q== 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 5si9838924pgb.585.2019.03.01.10.30.22; Fri, 01 Mar 2019 10:30:37 -0800 (PST) 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 S2389932AbfCASAY (ORCPT + 99 others); Fri, 1 Mar 2019 13:00:24 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:40344 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388293AbfCAR7e (ORCPT ); Fri, 1 Mar 2019 12:59:34 -0500 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id CA76272CCBD; Fri, 1 Mar 2019 20:59:30 +0300 (MSK) Received: from beacon.altlinux.org (unknown [185.6.174.98]) by imap.altlinux.org (Postfix) with ESMTPSA id 1D2664A4AE7; Fri, 1 Mar 2019 20:59:30 +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 v7 07/11] crypto: Kconfig - create Public-key cryptography section Date: Fri, 1 Mar 2019 20:59:14 +0300 Message-Id: <20190301175918.29694-8-vt@altlinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190301175918.29694-1-vt@altlinux.org> References: <20190301175918.29694-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 bbab6bf33519..370cbdca87a7 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