Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3170319imc; Sat, 23 Feb 2019 22:10:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IZsiK+7S30gx2E9ETY2PGJJVTVKk8sdFlca4SkujH6T3PshVQ9XgA3Qvs24cnrYjnRG5ZbH X-Received: by 2002:a63:ee05:: with SMTP id e5mr10989069pgi.83.1550988659086; Sat, 23 Feb 2019 22:10:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550988659; cv=none; d=google.com; s=arc-20160816; b=CVgXalJnS5K0SMNktsprQiveeoyzb4g1fjoOFhrltpiFOQr9LY+ZJlzuDAHXj/LD4D W50krzXAdNPhsRrxX4E23K0wF3jhr2VEB5AJYo7LtVmQ2MwkAGU3htdbw+oA9d0gmIV1 fFTTO5hvtgXj9BaJ9PAdojI0lqExQRGB1NnTkOlTVOda/jApHyXJxrAXrvIaU1rnrQKZ wWNWPD/3zNI0SrJuZe+fAMbHf9gMGiVTXrP3oYcl+ICVaeN7dOl9Bs2EORkjQ6mO/EBc 3sDVCOo/ThVxCRFX71CBvq0+7Z2SfN+xLzTcfgyB94KaACAACMeLEaD2qDyyogUEREh1 gwVg== 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=OSAcEgBY/xpp58ZP1wZdafihwhHIXOGrHdkemHt9EK6GG9B64SciXHPuLQbA7jdjM8 QuX4KF2pKYDTLsUcC75zT9c638bGMtxVcGDB9vI1KL2TD4d2Y3o4oK7HTJkWvGQjhyca 5Kl1520F9XHmeuUZlU91HnmO/Co5k5o3YDxPWiyi/H2notPZiOsjDiACnuh2fGQJ4DlY 1ObRbQEEguerNNKyAAm6jKbx9ZDTVPZcR+6EjEOP20KMhDZBoz0ndsirpNIqiTo36iaB 16pjpruHdLy99qd3GywaGVMMrJE07CEqYVaaztuELfDqXJW/GA7KkVh5O7Ah21rI75Id 9glQ== 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 k70si5223367pgd.74.2019.02.23.22.10.04; Sat, 23 Feb 2019 22:10:59 -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 S1728187AbfBXGJN (ORCPT + 99 others); Sun, 24 Feb 2019 01:09:13 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:43868 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbfBXGJJ (ORCPT ); Sun, 24 Feb 2019 01:09:09 -0500 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 25E9272CCAE; Sun, 24 Feb 2019 09:09:06 +0300 (MSK) Received: from beacon.altlinux.org (unknown [185.6.174.98]) by imap.altlinux.org (Postfix) with ESMTPSA id F12104A4AE7; Sun, 24 Feb 2019 09:09:05 +0300 (MSK) From: Vitaly Chikunov To: Herbert Xu , David Howells , Mimi Zohar , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 06/10] crypto: Kconfig - create Public-key cryptography section Date: Sun, 24 Feb 2019 09:08:24 +0300 Message-Id: <20190224060828.2527-7-vt@altlinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190224060828.2527-1-vt@altlinux.org> References: <20190224060828.2527-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